Opened 4 years ago

Closed 4 years ago

#4627 closed defect (fixed)

jpeg2000: crash

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

Description

(gdb) r -i crash.jp2 -f null -
Starting program: D:\MinGW\msys\1.0\ffmpeg\ffmpeg_g.exe -i crash.jp2 -f null -
[New Thread 2840.0x624]
[...]
[jpeg2000 @ 068d5ec0] prc 1 -1 outside limits 20 322
[jpeg2000 @ 068d5ec0] prc 1 -1 outside limits 20 490
[jpeg2000 @ 068d5ec0] prc 0 -1 outside limits 20 322
    Last message repeated 6 times
[jpeg2000 @ 068d5ec0] prc 1 -1 outside limits 20 322
[jpeg2000 @ 068d5ec0] prc 1 -1 outside limits 20 490
[jpeg2000 @ 068d5ec0] prc 0 -1 outside limits 20 322
    Last message repeated 6 times
[jpeg2000 @ 068d5ec0] prc 1 -1 outside limits 20 322
[jpeg2000 @ 068d5ec0] prc 1 -1 outside limits 20 490
[jpeg2000 @ 068d5ec0] prc 0 -1 outside limits 20 322
    Last message repeated 6 times
[jpeg2000 @ 068d5ec0] prc 1 -1 outside limits 20 322
[jpeg2000 @ 068d5ec0] prc 1 -1 outside limits 20 490
[jpeg2000 @ 068d5ec0] prc 0 -1 outside limits 20 322
    Last message repeated 6 times
[jpeg2000 @ 068d5ec0] prc 1 -1 outside limits 20 322
[jpeg2000 @ 068d5ec0] prc 1 -1 outside limits 20 490
[jpeg2000 @ 068d5ec0] prc 0 -1 outside limits 20 322
    Last message repeated 6 times
[jpeg2000 @ 068d5ec0] prc 1 -1 outside limits 20 322
[jpeg2000 @ 068d5ec0] prc 1 -1 outside limits 20 490
[jpeg2000 @ 068d5ec0] prc 0 -1 outside limits 20 322
    Last message repeated 6 times
[jpeg2000 @ 068d5ec0] prc 1 -1 outside limits 20 322
[jpeg2000 @ 068d5ec0] prc 1 -1 outside limits 20 490
[jpeg2000 @ 068d5ec0] prc 0 -1 outside limits 20 322
    Last message repeated 6 times
[jpeg2000 @ 068d5ec0] prc 1 -1 outside limits 20 322
[jpeg2000 @ 068d5ec0] prc 1 -1 outside limits 20 490
[jpeg2000 @ 068d5ec0] prc 0 -1 outside limits 20 322
    Last message repeated 6 times
[jpeg2000 @ 068d5ec0] prc 1 -1 outside limits 20 322
[jpeg2000 @ 068d5ec0] prc 1 -1 outside limits 20 490
[jpeg2000 @ 068d5ec0] prc 0 -1 outside limits 20 322
    Last message repeated 6 times
[jpeg2000 @ 068d5ec0] prc 1 -1 outside limits 20 322
[jpeg2000 @ 068d5ec0] prc 1 -1 outside limits 20 490
[jpeg2000 @ 068d5ec0] prc 0 -1 outside limits 20 322
    Last message repeated 6 times
[jpeg2000 @ 068d5ec0] prc 1 -1 outside limits 20 322
[jpeg2000 @ 068d5ec0] prc 1 -1 outside limits 20 490
[jpeg2000 @ 068d5ec0] prc 0 -1 outside limits 20 322
    Last message repeated 6 times
[jpeg2000 @ 068d5ec0] prc 1 -1 outside limits 20 322
[jpeg2000 @ 068d5ec0] prc 1 -1 outside limits 20 490
[jpeg2000 @ 068d5ec0] prc 0 -1 outside limits 20 322
    Last message repeated 6 times
[jpeg2000 @ 068d5ec0] prc 1 -1 outside limits 20 322
[jpeg2000 @ 068d5ec0] prc 1 -1 outside limits 20 490
[jpeg2000 @ 068d5ec0] prc 0 -1 outside limits 20 322
    Last message repeated 6 times
[jpeg2000 @ 068d5ec0] prc 1 -1 outside limits 20 322
[jpeg2000 @ 068d5ec0] prc 1 -1 outside limits 20 490
[jpeg2000 @ 068d5ec0] prc 0 -1 outside limits 20 322
    Last message repeated 6 times
[jpeg2000 @ 068d5ec0] prc 1 -1 outside limits 20 322
[jpeg2000 @ 068d5ec0] prc 1 -1 outside limits 20 490
[jpeg2000 @ 068d5ec0] prc 0 -1 outside limits 20 322
    Last message repeated 6 times
[jpeg2000 @ 068d5ec0] prc 1 -1 outside limits 20 322
[jpeg2000 @ 068d5ec0] prc 1 -1 outside limits 20 490
[jpeg2000 @ 068d5ec0] prc 0 -1 outside limits 20 322
    Last message repeated 6 times
[jpeg2000 @ 068d5ec0] prc 1 -1 outside limits 20 322
[jpeg2000 @ 068d5ec0] prc 1 -1 outside limits 20 490
[jpeg2000 @ 068d5ec0] prc 0 -1 outside limits 20 322
    Last message repeated 6 times
[jpeg2000 @ 068d5ec0] prc 1 -1 outside limits 20 322
[jpeg2000 @ 068d5ec0] prc 1 -1 outside limits 20 490
[jpeg2000 @ 068d5ec0] prc 0 -1 outside limits 20 322
    Last message repeated 6 times
[jpeg2000 @ 068d5ec0] prc 1 -1 outside limits 20 322
[jpeg2000 @ 068d5ec0] prc 1 -1 outside limits 20 490
[jpeg2000 @ 068d5ec0] prc 0 -1 outside limits 20 322
    Last message repeated 6 times
[jpeg2000 @ 068d5ec0] prc 1 -1 outside limits 20 322
[jpeg2000 @ 068d5ec0] prc 1 -1 outside limits 20 490
[jpeg2000 @ 068d5ec0] prc 0 -1 outside limits 20 322
    Last message repeated 6 times
[jpeg2000 @ 068d5ec0] prc 1 -1 outside limits 20 322
[jpeg2000 @ 068d5ec0] prc 1 -1 outside limits 20 490
[jpeg2000 @ 068d5ec0] prc 0 -1 outside limits 20 322
    Last message repeated 6 times
[jpeg2000 @ 068d5ec0] prc 1 -1 outside limits 20 322
[jpeg2000 @ 068d5ec0] prc 1 -1 outside limits 20 490
[jpeg2000 @ 068d5ec0] prc 0 -1 outside limits 20 322
    Last message repeated 6 times
[jpeg2000 @ 068d5ec0] prc 1 -1 outside limits 20 322
[jpeg2000 @ 068d5ec0] prc 1 -1 outside limits 20 490
[jpeg2000 @ 068d5ec0] prc 0 -1 outside limits 20 322
    Last message repeated 6 times
[jpeg2000 @ 068d5ec0] prc 1 -1 outside limits 20 322
[jpeg2000 @ 068d5ec0] prc 1 -1 outside limits 20 490
[jpeg2000 @ 068d5ec0] prc 0 -1 outside limits 20 322
    Last message repeated 6 times
[jpeg2000 @ 068d5ec0] prc 1 -1 outside limits 20 322
[jpeg2000 @ 068d5ec0] prc 1 -1 outside limits 20 490
[jpeg2000 @ 068d5ec0] prc 0 -1 outside limits 20 322
    Last message repeated 6 times
[jpeg2000 @ 068d5ec0] prc 1 -1 outside limits 20 322
[jpeg2000 @ 068d5ec0] prc 1 -1 outside limits 20 490
[jpeg2000 @ 068d5ec0] prc 0 -1 outside limits 20 322
    Last message repeated 6 times
[jpeg2000 @ 068d5ec0] prc 1 -1 outside limits 20 322
[jpeg2000 @ 068d5ec0] prc 1 -1 outside limits 20 490
[jpeg2000 @ 068d5ec0] prc 0 -1 outside limits 20 322
    Last message repeated 6 times
[jpeg2000 @ 068d5ec0] prc 1 -1 outside limits 20 322
[jpeg2000 @ 068d5ec0] prc 1 -1 outside limits 20 490
[jpeg2000 @ 068d5ec0] prc 0 -1 outside limits 20 322
    Last message repeated 6 times
[jpeg2000 @ 068d5ec0] prc 1 -1 outside limits 20 322
[jpeg2000 @ 068d5ec0] prc 1 -1 outside limits 20 490
[jpeg2000 @ 068d5ec0] prc 0 -1 outside limits 20 322
    Last message repeated 6 times
[jpeg2000 @ 068d5ec0] prc 1 -1 outside limits 20 322
[jpeg2000 @ 068d5ec0] prc 1 -1 outside limits 20 490
[jpeg2000 @ 068d5ec0] prc 0 -1 outside limits 20 322
    Last message repeated 6 times
[jpeg2000 @ 068d5ec0] prc 1 -1 outside limits 20 322
[jpeg2000 @ 068d5ec0] prc 1 -1 outside limits 20 490
[jpeg2000 @ 068d5ec0] prc 0 -1 outside limits 20 322
    Last message repeated 6 times
[jpeg2000 @ 068d5ec0] prc 1 -1 outside limits 20 322
[jpeg2000 @ 068d5ec0] prc 1 -1 outside limits 20 490
[jpeg2000 @ 068d5ec0] prc 0 -1 outside limits 20 322
    Last message repeated 6 times
[jpeg2000 @ 068d5ec0] prc 1 -1 outside limits 20 322
[jpeg2000 @ 068d5ec0] prc 1 -1 outside limits 20 490
[jpeg2000 @ 068d5ec0] prc 0 -1 outside limits 20 322
    Last message repeated 6 times
[jpeg2000 @ 068d5ec0] prc 1 -1 outside limits 20 322
[jpeg2000 @ 068d5ec0] prc 1 -1 outside limits 20 490
[jpeg2000 @ 068d5ec0] prc 0 -1 outside limits 20 322
    Last message repeated 6 times
[jpeg2000 @ 068d5ec0] prc 1 -1 outside limits 20 322
[jpeg2000 @ 068d5ec0] prc 1 -1 outside limits 20 490
[jpeg2000 @ 068d5ec0] prc 0 -1 outside limits 20 322
    Last message repeated 6 times
[jpeg2000 @ 068d5ec0] prc 1 -1 outside limits 20 322
[jpeg2000 @ 068d5ec0] prc 1 -1 outside limits 20 490
[jpeg2000 @ 068d5ec0] prc 0 -1 outside limits 20 322
    Last message repeated 6 times
[jpeg2000 @ 068d5ec0] prc 1 -1 outside limits 20 322
[jpeg2000 @ 068d5ec0] prc 1 -1 outside limits 20 490
[jpeg2000 @ 068d5ec0] prc 0 -1 outside limits 20 322
    Last message repeated 6 times
[jpeg2000 @ 068d5ec0] prc 1 -1 outside limits 20 322
[jpeg2000 @ 068d5ec0] prc 1 -1 outside limits 20 490
[jpeg2000 @ 068d5ec0] prc 0 -1 outside limits 20 322
    Last message repeated 6 times
[jpeg2000 @ 068d5ec0] prc 1 -1 outside limits 20 322
[jpeg2000 @ 068d5ec0] prc 1 -1 outside limits 20 490
[jpeg2000 @ 068d5ec0] prc 0 -1 outside limits 20 322
    Last message repeated 6 times
[jpeg2000 @ 068d5ec0] prc 1 -1 outside limits 20 322
[jpeg2000 @ 068d5ec0] prc 1 -1 outside limits 20 490
[jpeg2000 @ 068d5ec0] prc 0 -1 outside limits 20 322
    Last message repeated 6 times
[jpeg2000 @ 068d5ec0] prc 1 -1 outside limits 20 322
[jpeg2000 @ 068d5ec0] prc 1 -1 outside limits 20 490
[jpeg2000 @ 068d5ec0] prc 0 -1 outside limits 20 322
    Last message repeated 6 times
[jpeg2000 @ 068d5ec0] prc 1 -1 outside limits 20 322
[jpeg2000 @ 068d5ec0] prc 1 -1 outside limits 20 490
[jpeg2000 @ 068d5ec0] prc 0 -1 outside limits 20 322
    Last message repeated 6 times
[jpeg2000 @ 068d5ec0] prc 1 -1 outside limits 20 322
[jpeg2000 @ 068d5ec0] prc 1 -1 outside limits 20 490
[jpeg2000 @ 068d5ec0] prc 0 -1 outside limits 20 322
    Last message repeated 6 times
[jpeg2000 @ 068d5ec0] prc 1 -1 outside limits 20 322
[jpeg2000 @ 068d5ec0] prc 1 -1 outside limits 20 490
[jpeg2000 @ 068d5ec0] prc 0 -1 outside limits 20 322
    Last message repeated 6 times
[jpeg2000 @ 068d5ec0] prc 1 -1 outside limits 20 322
[jpeg2000 @ 068d5ec0] prc 1 -1 outside limits 20 490
[jpeg2000 @ 068d5ec0] prc 0 -1 outside limits 20 322
    Last message repeated 6 times
[jpeg2000 @ 068d5ec0] prc 1 -1 outside limits 20 322
[jpeg2000 @ 068d5ec0] prc 1 -1 outside limits 20 490
[jpeg2000 @ 068d5ec0] prc 0 -1 outside limits 20 322
    Last message repeated 6 times
[jpeg2000 @ 068d5ec0] prc 1 -1 outside limits 20 322
[jpeg2000 @ 068d5ec0] prc 1 -1 outside limits 20 490
[jpeg2000 @ 068d5ec0] prc 0 -1 outside limits 20 322
    Last message repeated 6 times
[jpeg2000 @ 068d5ec0] prc 1 -1 outside limits 20 322
[jpeg2000 @ 068d5ec0] prc 1 -1 outside limits 20 490
[jpeg2000 @ 068d5ec0] prc 0 -1 outside limits 20 322
    Last message repeated 6 times
[jpeg2000 @ 068d5ec0] prc 1 -1 outside limits 20 322
[jpeg2000 @ 068d5ec0] prc 1 -1 outside limits 20 490
[jpeg2000 @ 068d5ec0] prc 0 -1 outside limits 20 322
    Last message repeated 6 times
[jpeg2000 @ 068d5ec0] prc 1 -1 outside limits 20 322
[jpeg2000 @ 068d5ec0] prc 1 -1 outside limits 20 490
[jpeg2000 @ 068d5ec0] prc 0 -1 outside limits 20 322
    Last message repeated 6 times
[jpeg2000 @ 068d5ec0] prc 1 -1 outside limits 20 322
[jpeg2000 @ 068d5ec0] prc 1 -1 outside limits 20 490
[jpeg2000 @ 068d5ec0] prc 0 -1 outside limits 20 322
    Last message repeated 6 times
[jpeg2000 @ 068d5ec0] prc 1 -1 outside limits 20 322
[jpeg2000 @ 068d5ec0] prc 1 -1 outside limits 20 490
[jpeg2000 @ 068d5ec0] prc 0 -1 outside limits 20 322
    Last message repeated 6 times
[jpeg2000 @ 068d5ec0] prc 1 -1 outside limits 20 322
[jpeg2000 @ 068d5ec0] prc 1 -1 outside limits 20 490
[jpeg2000 @ 068d5ec0] prc 0 -1 outside limits 20 322
    Last message repeated 6 times
[jpeg2000 @ 068d5ec0] prc 1 -1 outside limits 20 322
[jpeg2000 @ 068d5ec0] prc 1 -1 outside limits 20 490
[jpeg2000 @ 068d5ec0] prc 0 -1 outside limits 20 322
    Last message repeated 6 times
[jpeg2000 @ 068d5ec0] prc 1 -1 outside limits 20 322
[jpeg2000 @ 068d5ec0] prc 1 -1 outside limits 20 490
[jpeg2000 @ 068d5ec0] prc 0 -1 outside limits 20 322
    Last message repeated 6 times
[jpeg2000 @ 068d5ec0] prc 1 -1 outside limits 20 322
[jpeg2000 @ 068d5ec0] prc 1 -1 outside limits 20 490
[jpeg2000 @ 068d5ec0] prc 0 -1 outside limits 20 322
    Last message repeated 6 times
[jpeg2000 @ 068d5ec0] prc 1 -1 outside limits 20 322
[jpeg2000 @ 068d5ec0] prc 1 -1 outside limits 20 490
[jpeg2000 @ 068d5ec0] prc 0 -1 outside limits 20 322
    Last message repeated 6 times
[jpeg2000 @ 068d5ec0] prc 1 -1 outside limits 20 322
[jpeg2000 @ 068d5ec0] prc 1 -1 outside limits 20 490
[jpeg2000 @ 068d5ec0] prc 0 -1 outside limits 20 322
    Last message repeated 6 times
[jpeg2000 @ 068d5ec0] prc 1 -1 outside limits 20 322
[jpeg2000 @ 068d5ec0] prc 1 -1 outside limits 20 490
[jpeg2000 @ 068d5ec0] prc 0 -1 outside limits 20 322
    Last message repeated 6 times
[jpeg2000 @ 068d5ec0] prc 1 -1 outside limits 20 322
[jpeg2000 @ 068d5ec0] prc 1 -1 outside limits 20 490
[jpeg2000 @ 068d5ec0] prc 0 -1 outside limits 20 322
    Last message repeated 6 times
[jpeg2000 @ 068d5ec0] prc 1 -1 outside limits 20 322
[jpeg2000 @ 068d5ec0] prc 1 -1 outside limits 20 490
[jpeg2000 @ 068d5ec0] prc 0 -1 outside limits 20 322
    Last message repeated 6 times
[jpeg2000 @ 068d5ec0] prc 1 -1 outside limits 20 322
[jpeg2000 @ 068d5ec0] prc 1 -1 outside limits 20 490
[jpeg2000 @ 068d5ec0] prc 0 -1 outside limits 20 322
    Last message repeated 6 times
[jpeg2000 @ 068d5ec0] prc 1 -1 outside limits 20 322
[jpeg2000 @ 068d5ec0] prc 1 -1 outside limits 20 490
[jpeg2000 @ 068d5ec0] prc 0 -1 outside limits 20 322
    Last message repeated 6 times
[jpeg2000 @ 068d5ec0] prc 1 -1 outside limits 20 322
[jpeg2000 @ 068d5ec0] prc 1 -1 outside limits 20 490
[jpeg2000 @ 068d5ec0] prc 0 -1 outside limits 20 322
    Last message repeated 6 times
[jpeg2000 @ 068d5ec0] prc 1 -1 outside limits 20 322
[jpeg2000 @ 068d5ec0] prc 1 -1 outside limits 20 490
[jpeg2000 @ 068d5ec0] prc 0 -1 outside limits 20 322
    Last message repeated 6 times
[jpeg2000 @ 068d5ec0] prc 1 -1 outside limits 20 322
[jpeg2000 @ 068d5ec0] prc 1 -1 outside limits 20 490
[jpeg2000 @ 068d5ec0] prc 0 -1 outside limits 20 322
    Last message repeated 6 times
[jpeg2000 @ 068d5ec0] prc 1 -1 outside limits 20 322
[jpeg2000 @ 068d5ec0] prc 1 -1 outside limits 20 490
[jpeg2000 @ 068d5ec0] prc 0 -1 outside limits 20 322
    Last message repeated 6 times
[jpeg2000 @ 068d5ec0] prc 1 -1 outside limits 20 322
[jpeg2000 @ 068d5ec0] prc 1 -1 outside limits 20 490
[jpeg2000 @ 068d5ec0] prc 0 -1 outside limits 20 322
    Last message repeated 6 times
[jpeg2000 @ 068d5ec0] prc 1 -1 outside limits 20 322
[jpeg2000 @ 068d5ec0] prc 1 -1 outside limits 20 490
[jpeg2000 @ 068d5ec0] prc 0 -1 outside limits 20 322
    Last message repeated 6 times
[jpeg2000 @ 068d5ec0] Progression order RPCL

Program received signal SIGSEGV, Segmentation fault.
0x006fb101 in jpeg2000_decode_packets (tile=0x68fce78, s=0x68e0020)
    at libavcodec/jpeg2000dec.c:1102
1102                            if (yc % (1 << (rlevel->log2_prec_height + reduc
edresno)))
(gdb) bt
#0  0x006fb101 in jpeg2000_decode_packets (tile=0x68fce78, s=0x68e0020)
    at libavcodec/jpeg2000dec.c:1102
#1  jpeg2000_read_bitstream_packets (s=0x68e0020)
    at libavcodec/jpeg2000dec.c:1795
#2  jpeg2000_decode_frame (avctx=0x68d5ec0, data=0x71f3020,
    got_frame=0x22fa9c, avpkt=0x22f768) at libavcodec/jpeg2000dec.c:1961
#3  0x00631a16 in avcodec_decode_video2 (avctx=0x68d5ec0, picture=0x71f3020,
    got_picture_ptr=0x22fa9c, avpkt=0x22f898) at libavcodec/utils.c:2388
#4  0x0041cfc5 in decode_video (got_output=<optimized out>,
    pkt=<optimized out>, ist=<optimized out>) at ffmpeg.c:1993
#5  process_input_packet (ist=0x70f6020, pkt=0x22fb60) at ffmpeg.c:2241
#6  0x0041fad6 in process_input (file_index=1) at ffmpeg.c:3762
#7  0x00e4f906 in transcode_step () at ffmpeg.c:3856
#8  transcode () at ffmpeg.c:3909
#9  main (argc=6, argv=<optimized out>) at ffmpeg.c:4091
(gdb)

Attachments (1)

crash.jp2 (109.0 KB) - added by ami_stuff 4 years ago.

Download all attachments as: .zip

Change History (3)

Changed 4 years ago by ami_stuff

comment:1 Changed 4 years ago by cehoyos

  • Component changed from undetermined to avcodec
  • Keywords crash j2k SIGSEGV added
  • Priority changed from normal to important
  • Version changed from unspecified to git-master

comment:2 Changed 4 years ago by cehoyos

  • Resolution set to fixed
  • Status changed from new to closed

Invalid reads were fixed by Michael in 5b0f55aab9d5802556e7b3a09c50b77a3220b658

Note: See TracTickets for help on using tickets.