diff options
author | Nikias Bassen | 2017-02-01 18:50:00 +0100 |
---|---|---|
committer | Nikias Bassen | 2017-02-01 18:50:00 +0100 |
commit | e9895752a396c4acb8c2b4ba525c13329d4e9fab (patch) | |
tree | f64ce60a28630090708384d68f95a9d9d3be915d /test | |
parent | cf9836196cbabd6d40e8c1c8018417ef31df5f46 (diff) | |
download | libplist-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 'test')
0 files changed, 0 insertions, 0 deletions