Updates:
Owner:
pascal.m...@gmail.comComment #1 on issue 381 by
pascal.m...@gmail.com: Excessive allocation (7271)
https://bugs.chromium.org/p/webp/issues/detail?id=381#c1thanks for the report and sample.
I can indeed see the big allocation when using PRINT_MEM_INFO:
-------
> dwebp clusterfuzz-testcase-minimized-encoder_webp_fuzzer-6683760943693824
Mem: 368 (+368)
Mem: 12184 (+11816)
Mem: 12752 (+568)
Mem: 13872 (+1120)
Mem: 12752 (-1120)
Mem: 13152 (+400)
Mem: 1336 (-11816)
Mem: 768 (-568)
Mem: 1792 (+1024)
Mem: 1392 (-400)
Mem: 15264 (+13872)
Mem: 15832 (+568)
Mem: 19000 (+3168)
Mem: 20584 (+1584)
Mem: 19000 (-1584)
Mem: 15832 (-3168)
Mem: 17880 (+2048)
Mem: 18220 (+340)
Mem: 4348 (-13872)
Mem: 3780 (-568)
Mem: 1732 (-2048)
Mem: 1311770308 (+1311768576)
Mem: 1348994756 (+37224448)
Mem: 1349004068 (+9312)
Mem: 1348994756 (-9312)
Mem: 1348994416 (-340)
Mem: 37225840 (-1311768576)
Mem: 1392 (-37224448)
Mem: 368 (-1024)
Mem: 0 (-368)
Decoding of clusterfuzz-testcase-minimized-encoder_webp_fuzzer-6683760943693824 failed.
Status: 3(BITSTREAM_ERROR)
MEMORY INFO:
num calls to: malloc = 10
calloc = 5
free = 15
total_mem: 0
total_mem allocated: 1349039212
high-water mark: 1349004068
-----
Although large, this allocation seems within spec bounds. That's probably an oversight. I'll investigate further, regarding how this could be mitigated.