[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Swftools-common] Report a null pointer dereference error when newest sw
From: |
123yangke321 |
Subject: |
[Swftools-common] Report a null pointer dereference error when newest swfdump processing malformed swf files using -D option |
Date: |
Mon, 04 May 2015 20:35:26 +0800 |
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 (address@hidden, address@hidden) 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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Swftools-common] Report a null pointer dereference error when newest swfdump processing malformed swf files using -D option,
123yangke321 <=