Hi,everybody When runing the command "swfdump -D malformed.swf" after
installing the swftools-0.9.2 I got an segment error.Here is the test file
"malformed.swf", error info and the stack backtrace:
==== Error: Real Filesize (505) doesn't match header Filesize (0) ====[HEADER]
File version: 0[HEADER] File size: 0[HEADER] Frame rate:
2.000000[HEADER] Frame count: 128[HEADER] Movie width:
0.00[HEADER] Movie height: 0.00GetU16() out of bounds: TagID = 4GetU16()
out of bounds: TagID = 4GetU16() out of bounds: TagID = 4[004] 0
PLACEOBJECT places id 0000 at depth 0000GetU16() out of bounds: TagID =
4GetU16() out of bounds: TagID = 4GetBits() out of bounds: TagID = 4, pos=0,
len=0
Program received signal SIGSEGV, Segmentation fault.0x080608e6 in swf_GetBits
(t=0x80ec008, nbits=1) at rfxswf.c:213213 for(i=-1;i<m;i++) {(gdb) bt#0
0x080608e6 in swf_GetBits (t=0x80ec008, nbits=1) at rfxswf.c:213#1 0x08061ee5
in swf_GetMatrix (t=t@entry=0x80ec008, m=m@entry=0xbfffea08) at
rfxswf.c:851#2 0x0804eb28 in handlePlaceObject (tag=0x80ec008,
prefix=0xbfffebfc ' ' <repeats 16 times>) at swfdump.c:816#3 0x0804b68a in
main (argc=3, argv=0xbfffedc4) at swfdump.c:1589(gdb) p t->data$6 = (U8 *) 0x0
It is a null pointer dereference error because the field "data" of TAG t is
0x0.
Any suggestion to fix this problem?
Best regards.
Sincerely,Ke Yang ---------------
SWFTools-common is a self-managed list. To subscribe/unsubscribe, or amend an
existing subscription, please kindly point your favourite web browser
at:<http://lists.nongnu.org/mailman/listinfo/swftools-common>