You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems there are potential memory leak in parserSWF_MORPHFILLSTYLES (parser.c:827) and parseSWF_SHAPE (parser.c:845) on the newest master branch 04aee52.
The memory allocated for FillSystyles is not freed after the program ends.
A similar issue happens in the function parseSWF_SHAPE.
These allocation sizes are accessible for the user and thus may lead to a huge amount of memory leak in frequent file transformation on the server.
This is the demo example and the traces reproducible on the master branch.
==85905==ERROR: LeakSanitizer: detected memory leaks
Direct leak of 50616 byte(s) in 1 object(s) allocated from:
#0 0x7ffa5f1537fa in __interceptor_calloc (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x987fa)
#1 0x458476 in parseSWF_MORPHFILLSTYLES ../../util/parser.c:827
Direct leak of 192 byte(s) in 2 object(s) allocated from:
#0 0x7ffa5f1537fa in __interceptor_calloc (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x987fa)
#1 0x458b59 in parseSWF_SHAPE ../../util/parser.c:845
Direct leak of 121 byte(s) in 6 object(s) allocated from:
#0 0x7ffa5f153662 in malloc (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x98662)
#1 0x48d62d in readBytes ../../util/read.c:252
Direct leak of 1 byte(s) in 1 object(s) allocated from:
#0 0x7ffa5f153662 in malloc (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x98662)
#1 0x458167 in parseSWF_MORPHLINESTYLES ../../util/parser.c:755
SUMMARY: AddressSanitizer: 50930 byte(s) leaked in 10 allocation(s).
Hi there.
It seems there are potential memory leak in parserSWF_MORPHFILLSTYLES (parser.c:827) and parseSWF_SHAPE (parser.c:845) on the newest master branch 04aee52.
The memory allocated for FillSystyles is not freed after the program ends.
A similar issue happens in the function parseSWF_SHAPE.
These allocation sizes are accessible for the user and thus may lead to a huge amount of memory leak in frequent file transformation on the server.
This is the demo example and the traces reproducible on the master branch.
Reproduce command:
POC:
parserSWF_MORPHFILLSTYLES_leaks.zip
The text was updated successfully, but these errors were encountered: