summaryrefslogtreecommitdiffstats
path: root/fuzz/xplist-crashes/crash-155c60d5c4b2778110fb4a633caa7d64eb9b99c1
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2017-02-01 18:50:00 +0100
committerGravatar Nikias Bassen2017-02-01 18:50:00 +0100
commite9895752a396c4acb8c2b4ba525c13329d4e9fab (patch)
treef64ce60a28630090708384d68f95a9d9d3be915d /fuzz/xplist-crashes/crash-155c60d5c4b2778110fb4a633caa7d64eb9b99c1
parentcf9836196cbabd6d40e8c1c8018417ef31df5f46 (diff)
downloadlibplist-e9895752a396c4acb8c2b4ba525c13329d4e9fab.tar.gz
libplist-e9895752a396c4acb8c2b4ba525c13329d4e9fab.tar.bz2
bplist: Avoid heap buffer allocation when parsing array/dict/string/data node sizes > 14
The sizes where effectively parsed by calling parse_uint_node() which allocates a node_t (along with plist_data_t) that is immediately freed after retrieving the integer value it holds. This commit changes the code to directly operate on the binary stream to 'just' read the size instead, reducing the memory footprint further.
Diffstat (limited to 'fuzz/xplist-crashes/crash-155c60d5c4b2778110fb4a633caa7d64eb9b99c1')
0 files changed, 0 insertions, 0 deletions