Opened 14 years ago

Closed 14 years ago

#3548 closed defect (fixed)

newSFWBitmapFillStyle: not a valid Bitmap FillStyle: 0

Reported by: strk Owned by: aboudreault
Priority: normal Milestone:
Component: Output-SWF Version: svn-trunk (development)
Severity: normal Keywords:
Cc: dmorissette, assefa

Description

mapswf.c doesnt' check returns from libming functions and segfaults. See http://bugs.libming.org/show_bug.cgi?id=107

Attachments (1)

mapswf_bitmapFill.patch (1.2 KB ) - added by strk 14 years ago.

Download all attachments as: .zip

Change History (7)

comment:1 by strk, 14 years ago

newSWFBitmapFillStyle: not a valid Bitmap FillStyle: 0

Program received signal SIGSEGV, Segmentation fault. destroySWFFill (fill=0x0) at fill.c:65 65 destroySWFPosition(fill->position); (gdb) (gdb) backtrace #0 destroySWFFill (fill=0x0) at fill.c:65 #1 0x080fff6b in bitmap2shape (data=dwarf2_read_address: Corrupted DWARF expression. ) at mapswf.c:519 #2 0x0810046f in gdImage2Shape (img=0x2954c000, image=0x295462c0)

at mapswf.c:645

#3 0x08105ab6 in msDrawLabelCacheSWF (image=0x295462c0, map=0x29536000)

at mapswf.c:2576

#4 0x080b7c79 in msDrawLabelCache (image=0x295462c0, map=0x29536000)

at mapdraw.c:2666

#5 0x080ae242 in msDrawMap (map=0x29536000, querymap=0) at mapdraw.c:505 #6 0x08068bdf in msGenerateImages (mapserv=0x2952f1c0, bQueryMap=0,

bReturnOnError=1) at maptemplate.c:3933

#7 0x08056d3c in main (argc=3, argv=0xbfbfec44) at mapserv.c:1376 (gdb)

by strk, 14 years ago

Attachment: mapswf_bitmapFill.patch added

comment:2 by strk, 14 years ago

Please try the attached patch

comment:3 by strk, 14 years ago

FYI: you can also use git to try the patch:

$ git clone git://github.com/strk/mapserver.git
$ cd mapserver && ./autogen.sh && ./configure --with-ming && make

comment:4 by aboudreault, 14 years ago

Owner: changed from assefa to aboudreault

comment:5 by dmorissette, 14 years ago

Cc: dmorissette assefa added

comment:6 by aboudreault, 14 years ago

Resolution: fixed
Status: newclosed

Fixed and committed in r10519. Thanks strk!

Note: See TracTickets for help on using tickets.