libming/libming — Issue #4: In test/Font listswf is dumping core
Author: ehy
Created: 2011-12-07 15:02:45+00:00
State: open

OpenBSD 4.9 i386

Build succeeds; make check stops in test/Font, listswf segfault.

GDB:

#0 0x1c01507b in parseSWF_GLYPHENTRY (f=0x2f12b140, gerec=0x8acaa070, glyphbits=0, advancebits=9) at parser.c:245
245 gerec->GlyphIndex[0] = 0; /* for glyphbits == 0 */
(gdb) bt
#0 0x1c01507b in parseSWF_GLYPHENTRY (f=0x2f12b140, gerec=0x8acaa070, glyphbits=0, advancebits=9) at parser.c:245
#1 0x1c0153e8 in parseSWF_TEXTRECORD (f=0x2f12b140, brec=0x7f46d1e0, glyphbits=0, advancebits=9, level=1) at parser.c:302
#2 0x1c01cc23 in parseSWF_DEFINETEXT (f=0x2f12b140, length=28) at parser.c:2262
#3 0x1c00a99f in blockParse (f=0x2f12b140, length=28, header=SWF_DEFINETEXT) at blocktypes.c:145
#4 0x1c008aa5 in readMovie (f=0x2f12b140) at main.c:265
#5 0x1c008e89 in main (argc=2, argv=0xcfbe93c4) at main.c:350
(gdb) p gerec->GlyphIndex[0]
Cannot access memory at address 0x8a70a020
(gdb) p *gerec
$1 = {GlyphIndex = 0x8a70a020, GlyphAdvance = 0x0}