[FFmpeg-trac] #5500(avcodec:new): ff_h264_decode_nal crash on iOS 32/64 bit

FFmpeg trac at avcodec.org
Mon May 2 14:11:30 CEST 2016


#5500: ff_h264_decode_nal crash on iOS 32/64 bit
---------------------------------+--------------------------------------
             Reporter:  glip     |                     Type:  defect
               Status:  new      |                 Priority:  normal
            Component:  avcodec  |                  Version:  git-master
             Keywords:  h264     |               Blocked By:
             Blocking:           |  Reproduced by developer:  0
Analyzed by developer:  0        |
---------------------------------+--------------------------------------
 I'm using static linked ffmpeg in my app, while playing H.264 video files
 it crashes with EXE_BAD_ACCESS. It's hard to reproduce crash it happens
 randomly - might happen in a few hours, might in a couple minutes. Crash
 happens in h264.c, line 261 (first if in for)
 #if HAVE_FAST_64BIT
 for (i = 0; i + 1 < length; i += 9) {
 if (!((~AV_RN64A(src + i) & <-- crash
 (AV_RN64A(src + i) - 0x0100010001000101ULL)) &
 0x8000800080008080ULL))
 continue;
 FIND_FIRST_ZERO;
 STARTCODE_TEST;
 i -= 7;
 }
 #else

 ffmpeg version N-79632-g3ce1988 Copyright (c) 2000-2016 the FFmpeg
 developers
 built with Apple LLVM version 7.3.0 (clang-703.0.29)
 configuration: --prefix=build/macx64 --enable-gpl
 libavutil 55. 22.101 / 55. 22.101
 libavcodec 57. 38.100 / 57. 38.100
 libavformat 57. 34.103 / 57. 34.103
 libavdevice 57. 0.101 / 57. 0.101
 libavfilter 6. 44.100 / 6. 44.100
 libswscale 4. 1.100 / 4. 1.100
 libswresample 2. 0.101 / 2. 0.101
 libpostproc 54. 0.100 / 54. 0.100

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


More information about the FFmpeg-trac mailing list