libimobiledevice / libplist

A library to handle Apple Property List format in binary or XML
https://libimobiledevice.org
GNU Lesser General Public License v2.1
546 stars 305 forks source link

plist_form_bin crashes #45

Closed xdeng closed 10 years ago

xdeng commented 10 years ago

demo file http://xdeng.cn/file/InfoPlist.strings

plist_form_bin crashes in bplist.c 729 line

///////////////////////////////////// node_t* node = (nodet)nodeslist[i]; if (NODE_IS_ROOT(node)) { //if node = NULL crashes plist_free(node); } ///////////////////////////////////// Modified to nodet node = (node_t*)nodeslist[i]; if (node && NODE_IS_ROOT(node)) { plist_free(node); }

nikias commented 10 years ago

Fixed in git master.