Commit ce2a16c9 authored by Nikias Bassen's avatar Nikias Bassen

bplist: prevent segmentation fault in plist_from_bin()

parent a6101728
...@@ -655,6 +655,9 @@ void plist_from_bin(const char *plist_bin, uint32_t length, plist_t * plist) ...@@ -655,6 +655,9 @@ void plist_from_bin(const char *plist_bin, uint32_t length, plist_t * plist)
{ {
plist_data_t data = plist_get_data(nodeslist[i]); plist_data_t data = plist_get_data(nodeslist[i]);
if (!data) {
break;
}
switch (data->type) switch (data->type)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment