rework input data handling.
commitb972ddf9256b5e91865f652cbee59bfd381d58f4
authorBenjamin Otte <otte@gnome.org>
Tue, 9 Oct 2007 13:19:45 +0000 (9 15:19 +0200)
committerBenjamin Otte <otte@gnome.org>
Tue, 9 Oct 2007 13:19:45 +0000 (9 15:19 +0200)
tree19aa2806627ff05fda35608cb1a4f1a20591b30c
parent16bd8fbd0c6263b6573af2d92ea8aa02ee1d7b8c
rework input data handling.

The code now creates a buffer for both compressed and uncompressed Flash files.
This is the first step in fixing the script engine buffer size limitation, which
triggered quite often for "protected" Flash files.

Most of the obfuscators or code protectors for Flash files do not try to
obfuscate the bytecodes, but instead just move the code to a different part of
the file and use a jump bytecode to get there.
One undocumented feature of Flash is that the script engine itself allows jumps
to every part of the Flash file, not limited to the currently executing script.
libswfdec/swfdec_swf_decoder.c
libswfdec/swfdec_swf_decoder.h