[FFmpeg-trac] #4406(avcodec:new): h264 segfault

FFmpeg trac at avcodec.org
Sun Mar 29 19:32:15 CEST 2015


#4406: h264 segfault
---------------------------------+---------------------------------------
             Reporter:  kierank  |                     Type:  defect
               Status:  new      |                 Priority:  normal
            Component:  avcodec  |                  Version:  unspecified
             Keywords:           |               Blocked By:
             Blocking:           |  Reproduced by developer:  0
Analyzed by developer:  0        |
---------------------------------+---------------------------------------
 API segfault. No sample available.

 {{{
 (gdb) bt
 #0  0x0000000000554483 in decode_slice (avctx=0x7fffe4045560,
 arg=0x7ffff0262040) at libavcodec/h264_slice.c:2299
 #1  0x0000000000559467 in ff_h264_execute_decode_slices
 (h=h at entry=0x7ffff7f26040, context_count=context_count at entry=1) at
 libavcodec/h264_slice.c:2492
 #2  0x000000000051c722 in decode_nal_units (h=h at entry=0x7ffff7f26040,
 buf=buf at entry=0x7fffe421fd70 "P", buf_size=buf_size at entry=11160,
     parse_extradata=parse_extradata at entry=0) at libavcodec/h264.c:1686
 #3  0x000000000051d882 in h264_decode_frame (avctx=0x7fffe4045560,
 data=0x7fffe4045100, got_frame=0x7ffff23fcc3c, avpkt=0x7ffff23fcb30) at
 libavcodec/h264.c:1823
 #4  0x00000000005f5986 in avcodec_decode_video2 (avctx=0x7fffe4045560,
 picture=picture at entry=0x7fffe4045100,
 got_picture_ptr=got_picture_ptr at entry=0x7ffff23fcc3c,
     avpkt=avpkt at entry=0x7ffff23fcd20) at libavcodec/utils.c:2376
 }}}


 {{{
 (gdb) disassemble $pc-32,$pc+32
 Dump of assembler code from 0x554463 to 0x5544a3:
    0x0000000000554463 <decode_slice+19>:        lea    0xb348(%rdi),%esp
    0x0000000000554469 <decode_slice+25>:        push   %rbp
    0x000000000055446a <decode_slice+26>:        push   %rbx
    0x000000000055446b <decode_slice+27>:        sub    $0x18,%rsp
    0x000000000055446f <decode_slice+31>:        mov    (%rsi),%r14
    0x0000000000554472 <decode_slice+34>:        mov    0x57d8(%rsi),%ebx
    0x0000000000554478 <decode_slice+40>:        mov    %rdi,(%rsp)
    0x000000000055447c <decode_slice+44>:        mov    0x598(%r14),%rax
 => 0x0000000000554483 <decode_slice+51>:        mov    0x40(%rax),%ebp
    0x0000000000554486 <decode_slice+54>:        movslq 0x44(%rax),%rax
    0x000000000055448a <decode_slice+58>:        movslq %ebp,%rdx
    0x000000000055448d <decode_slice+61>:        mov    %rax,0x57c0(%rsi)
    0x0000000000554494 <decode_slice+68>:        mov    %ebp,%eax
    0x0000000000554496 <decode_slice+70>:        mov    %rdx,0x57b8(%rsi)
    0x000000000055449d <decode_slice+77>:        sar    $0x1f,%eax
    0x00000000005544a0 <decode_slice+80>:        xor    %eax,%ebp
    0x00000000005544a2 <decode_slice+82>:        sub    %eax,%ebp
 End of assembler dump.
 }}}


 {{{

 }}}

--
Ticket URL: <https://trac.ffmpeg.org/ticket/4406>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list