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
the header is a variable on the stack, the memset call with size of SWF_HDR_MIN_SIZE + rect_size_bytes will easily exceeds the bound, leads to buffer overflow.
The parser needs to decompress the flash file first when it's compressed flash(CWS/ZWS) and proceed the parse logic IMHO.
Cheers.
The text was updated successfully, but these errors were encountered:
Hi,
When I play with r2 and the swf plugin, it crashes with a buffer overflow.
Checking the code, turns out a simple stack buffer overflow.
the
header
is a variable on the stack, the memset call with size ofSWF_HDR_MIN_SIZE + rect_size_bytes
will easily exceeds the bound, leads to buffer overflow.The parser needs to decompress the flash file first when it's compressed flash(CWS/ZWS) and proceed the parse logic IMHO.
Cheers.
The text was updated successfully, but these errors were encountered: