[libav-bugs] [Bug 722] New: segfault when decoding png rgba

bugzilla at libav.org bugzilla at libav.org
Thu Jul 31 23:14:36 CEST 2014


https://bugzilla.libav.org/show_bug.cgi?id=722

           Summary: segfault when decoding png rgba
           Product: Libav
           Version: git HEAD
          Platform: PPC
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: Normal
         Component: libavcodec
        AssignedTo: bugzilla at libav.org
        ReportedBy: vitto.giova at yahoo.it


I get a segfault in swscale in a normal png file.
Reproduced under OpenBSD and OSX on powerpc.

Here is the backtrace

Program received signal SIGSEGV, Segmentation fault.
0x01e9af40 in rgb24to32 (src=0x8303d000 '?' <repeats 200 times>..., 
    dst=0x82ef9fff <Address 0x82ef9fff out of bounds>, src_size=204960)
    at libswscale/rgb2rgb.c:164
164             dst[4 * i + 0] = 255;
(gdb) bt
#0  0x01e9af40 in rgb24to32 (src=0x8303d000 '?' <repeats 200 times>..., 
    dst=0x82ef9fff <Address 0x82ef9fff out of bounds>, src_size=204960)
    at libswscale/rgb2rgb.c:164
#1  0x01e770d0 in rgbToRgbWrapper (c=0x916a1000, src=Variable "src" is not
available.)
    at libswscale/swscale_unscaled.c:679
#2  0x01e7cd24 in sws_scale (c=Variable "c" is not available.)
    at libswscale/swscale_unscaled.c:1265
#3  0x0182c7fc in filter_frame (link=Variable "link" is not available.)
    at libavfilter/vf_scale.c:290
#4  0x0181c4e4 in ff_filter_frame (link=0x8cc49280, frame=0x8bc39200)
    at libavfilter/avfilter.c:785
#5  0x0181c4e4 in ff_filter_frame (link=0x8cc49200, frame=0x8bc39200)
    at libavfilter/avfilter.c:785
#6  0x0181f550 in request_frame (link=0x8cc49200)
    at libavfilter/buffersrc.c:431
#7  0x0181d050 in ff_request_frame (link=Variable "link" is not available.)
    at libavfilter/avfilter.c:249
#8  0x01820744 in request_frame (outlink=0x8cc49c00)
    at libavfilter/fifo.c:234
#9  0x0181d050 in ff_request_frame (link=Variable "link" is not available.)
    at libavfilter/avfilter.c:249
#10 0x0181f230 in av_buffersink_get_frame (ctx=Variable "ctx" is not
available.)
    at libavfilter/buffersink.c:69
#11 0x01811008 in poll_filter (ost=0x8c218a00)
    at avconv.c:663
#12 0x01816b84 in transcode ()
    at avconv.c:747
#13 0x01817550 in main (argc=Variable "argc" is not available.)
    at avconv.c:2646

-- 
Configure bugmail: https://bugzilla.libav.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.


More information about the libav-bugs mailing list