Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#695 closed defect (fixed)

uncompressed (maybe broken) pictor image crashes ffmpeg

Reported by: ami_stuff Owned by:
Priority: important Component: avcodec
Version: git-master Keywords: pictor
Cc: Blocked By:
Blocking: Reproduced by developer: yes
Analyzed by developer: no

Description

GNU gdb (GDB) 7.2
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "mingw32".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from F:\MinGW\msys\1.0\ffmpeg-HEAD-d3bc75c/ffmpeg_g.exe...done.
(gdb) r -i z.pic
Starting program: F:\MinGW\msys\1.0\ffmpeg-HEAD-d3bc75c/ffmpeg_g.exe -i z.pic
[New Thread 3704.0xe40]
ffmpeg version 0.8.5.git-d3bc75c, Copyright (c) 2000-2011 the FFmpeg developers
  built on Nov  6 2011 18:11:47 with gcc 4.5.2
  configuration: --disable-ffplay --disable-ffserver --disable-asm --disable-yas
m --disable-shared --enable-static
  libavutil    51. 23. 0 / 51. 23. 0
  libavcodec   53. 28. 0 / 53. 28. 0
  libavformat  53. 19. 0 / 53. 19. 0
  libavdevice  53.  4. 0 / 53.  4. 0
  libavfilter   2. 47. 0 /  2. 47. 0
  libswscale    2.  1. 0 /  2.  1. 0

Program received signal SIGSEGV, Segmentation fault.
0x00000000 in ?? ()
(gdb) bt
#0  0x00000000 in ?? ()
#1  0x009a681e in av_log_default_callback (ptr=0x3ba1100, level=24,
    fmt=0xa4ea60 "uncompressed image\n", vl=0x22f6a8 "")
    at libavutil/log.c:109
#2  0x004fc8b4 in av_log_ask_for_sample (avc=0x3ba1100,
    msg=0xa4ea60 "uncompressed image\n") at libavcodec/utils.c:1341
#3  0x005cbf79 in decode_frame (avctx=0x3b9ef18, data=0x22f850,
    data_size=0x22fb04, avpkt=0x3ba12f0) at libavcodec/pictordec.c:231
#4  0x004f9bde in avcodec_decode_video2 (avctx=0x3b9ef18, picture=0x22f850,
    got_picture_ptr=0x22fb04, avpkt=0x3ba12f0) at libavcodec/utils.c:819
#5  0x004393d6 in try_decode_frame (ic=0x3b98af0, options=0x3ba0f90)
    at libavformat/utils.c:2230
#6  avformat_find_stream_info (ic=0x3b98af0, options=0x3ba0f90)
    at libavformat/utils.c:2535
#7  0x0040c5f8 in opt_input_file (o=0x22fda8, opt=0x3ba0cf4 "i",
    filename=<value optimized out>) at ffmpeg.c:3317
#8  0x0041114a in parse_option (optctx=0x22fda8, opt=<value optimized out>,
    arg=0x3ba0cf6 "z.pic", options=0xa0d2c0) at cmdutils.c:275
#9  0x004114f8 in parse_options (optctx=0x22fda8, argc=3,
    argv=<value optimized out>, options=0xa0d2c0,
    parse_arg_function=0x40e018 <opt_output_file>) at cmdutils.c:308
#10 0x0040f847 in main (argc=3, argv=<value optimized out>) at ffmpeg.c:4716
(gdb) disass $pc-32,$pc+32
Dump of assembler code from 0xffffffe0 to 0x20:
End of assembler dump.
(gdb) info all-registers
eax            0x0      0
ecx            0x40f8373        68125555
edx            0x22f6a8 2291368
ebx            0x22f24a 2290250
esp            0x22f21c 0x22f21c
ebp            0x18     0x18
esi            0x3ba1100        62525696
edi            0x4146ba8        68447144
eip            0x0      0
eflags         0x10246  [ PF ZF IF RF ]
cs             0x1b     27
ss             0x23     35
ds             0x23     35
es             0x23     35
fs             0x3b     59
gs             0x0      0
st0            0        (raw 0x00000000000000000000)
st1            0        (raw 0x00000000000000000000)
st2            0        (raw 0x00000000000000000000)
st3            -1       (raw 0xbfff8000000000000000)
st4            -1       (raw 0xbfff8000000000000000)
st5            9.9999999999999995e-021  (raw 0x3fbcbce5086492111aeb)
st6            1.4411518807585587e+017  (raw 0x40388000000000000000)
st7            3.6028797018963968e+018  (raw 0x403cc800000000000002)
fctrl          0xffff037f       -64641
fstat          0xffff0420       -64480
ftag           0xffffffff       -1
fiseg          0x0      0
fioff          0x0      0
foseg          0xffff0000       -65536
fooff          0x0      0
fop            0x0      0
xmm0           {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0},
  v16_int8 = {0x0 <repeats 16 times>}, v8_int16 = {0x0, 0x0, 0x0, 0x0, 0x0,
    0x0, 0x0, 0x0}, v4_int32 = {0x0, 0x0, 0x0, 0x0}, v2_int64 = {0x0, 0x0},
  uint128 = 0x00000000000000000000000000000000}
xmm1           {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0},
  v16_int8 = {0x0 <repeats 16 times>}, v8_int16 = {0x0, 0x0, 0x0, 0x0, 0x0,
    0x0, 0x0, 0x0}, v4_int32 = {0x0, 0x0, 0x0, 0x0}, v2_int64 = {0x0, 0x0},
  uint128 = 0x00000000000000000000000000000000}
xmm2           {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0},
  v16_int8 = {0x0 <repeats 16 times>}, v8_int16 = {0x0, 0x0, 0x0, 0x0, 0x0,
    0x0, 0x0, 0x0}, v4_int32 = {0x0, 0x0, 0x0, 0x0}, v2_int64 = {0x0, 0x0},
  uint128 = 0x00000000000000000000000000000000}
xmm3           {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0},
  v16_int8 = {0x0 <repeats 16 times>}, v8_int16 = {0x0, 0x0, 0x0, 0x0, 0x0,
    0x0, 0x0, 0x0}, v4_int32 = {0x0, 0x0, 0x0, 0x0}, v2_int64 = {0x0, 0x0},
  uint128 = 0x00000000000000000000000000000000}
xmm4           {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0},
  v16_int8 = {0x0 <repeats 16 times>}, v8_int16 = {0x0, 0x0, 0x0, 0x0, 0x0,
    0x0, 0x0, 0x0}, v4_int32 = {0x0, 0x0, 0x0, 0x0}, v2_int64 = {0x0, 0x0},
  uint128 = 0x00000000000000000000000000000000}
xmm5           {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0},
  v16_int8 = {0x0 <repeats 16 times>}, v8_int16 = {0x0, 0x0, 0x0, 0x0, 0x0,
    0x0, 0x0, 0x0}, v4_int32 = {0x0, 0x0, 0x0, 0x0}, v2_int64 = {0x0, 0x0},
  uint128 = 0x00000000000000000000000000000000}
xmm6           {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0},
  v16_int8 = {0x0 <repeats 16 times>}, v8_int16 = {0x0, 0x0, 0x0, 0x0, 0x0,
    0x0, 0x0, 0x0}, v4_int32 = {0x0, 0x0, 0x0, 0x0}, v2_int64 = {0x0, 0x0},
  uint128 = 0x00000000000000000000000000000000}
xmm7           {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0},
  v16_int8 = {0x0 <repeats 16 times>}, v8_int16 = {0x0, 0x0, 0x0, 0x0, 0x0,
    0x0, 0x0, 0x0}, v4_int32 = {0x0, 0x0, 0x0, 0x0}, v2_int64 = {0x0, 0x0},
  uint128 = 0x00000000000000000000000000000000}
mxcsr          0x1f80   [ IM DM ZM OM UM PM ]
mm0            {uint64 = 0x0, v2_int32 = {0x0, 0x0}, v4_int16 = {0x0, 0x0,
    0x0, 0x0}, v8_int8 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}}
mm1            {uint64 = 0x0, v2_int32 = {0x0, 0x0}, v4_int16 = {0x0, 0x0,
    0x0, 0x0}, v8_int8 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}}
mm2            {uint64 = 0x0, v2_int32 = {0x0, 0x0}, v4_int16 = {0x0, 0x0,
    0x0, 0x0}, v8_int8 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}}
mm3            {uint64 = 0x8000000000000000, v2_int32 = {0x0, 0x80000000},
  v4_int16 = {0x0, 0x0, 0x0, 0x8000}, v8_int8 = {0x0, 0x0, 0x0, 0x0, 0x0,
    0x0, 0x0, 0x80}}
mm4            {uint64 = 0x8000000000000000, v2_int32 = {0x0, 0x80000000},
  v4_int16 = {0x0, 0x0, 0x0, 0x8000}, v8_int8 = {0x0, 0x0, 0x0, 0x0, 0x0,
    0x0, 0x0, 0x80}}
mm5            {uint64 = 0xbce5086492111aeb, v2_int32 = {0x92111aeb,
    0xbce50864}, v4_int16 = {0x1aeb, 0x9211, 0x864, 0xbce5}, v8_int8 = {0xeb,
    0x1a, 0x11, 0x92, 0x64, 0x8, 0xe5, 0xbc}}
mm6            {uint64 = 0x8000000000000000, v2_int32 = {0x0, 0x80000000},
  v4_int16 = {0x0, 0x0, 0x0, 0x8000}, v8_int8 = {0x0, 0x0, 0x0, 0x0, 0x0,
    0x0, 0x0, 0x80}}
mm7            {uint64 = 0xc800000000000002, v2_int32 = {0x2, 0xc8000000},
  v4_int16 = {0x2, 0x0, 0x0, 0xc800}, v8_int8 = {0x2, 0x0, 0x0, 0x0, 0x0,
    0x0, 0x0, 0xc8}}

Attachments (1)

z.pic (314.8 KB) - added by ami_stuff 5 years ago.

Download all attachments as: .zip

Change History (5)

Changed 5 years ago by ami_stuff

comment:1 Changed 5 years ago by cehoyos

  • Component changed from undetermined to avcodec
  • Keywords pictor added
  • Priority changed from normal to important
  • Reproduced by developer set
  • Resolution set to fixed
  • Status changed from new to closed
  • Version changed from unspecified to git-master

Should be fixed, thank you for the sample.
Does any application show the picture?

comment:2 Changed 5 years ago by ami_stuff

Two programs on Amiga can decode the picture (one of them created it), but on PC I can't find any whcih will do the job. Maybe the problem is that uncompressed pictor images are not supported by them?

comment:3 Changed 5 years ago by pross

This image is too big for PC-Paint 3.1 (MS-DOS) to load.

comment:4 Changed 5 years ago by cehoyos

Decoding implemented by Peter Ross.

Note: See TracTickets for help on using tickets.