[FFmpeg-trac] #6743(avcodec:new): ffmpeg-3.4/libavcodec/vorbis.c:74]: (style) Array index 'i' is used before limits check.

FFmpeg trac at avcodec.org
Tue Oct 17 12:17:54 EEST 2017


#6743: ffmpeg-3.4/libavcodec/vorbis.c:74]: (style) Array index 'i' is used before
limits check.
---------------------------------+---------------------------------------
             Reporter:  dcb      |                     Type:  defect
               Status:  new      |                 Priority:  normal
            Component:  avcodec  |                  Version:  unspecified
             Keywords:           |               Blocked By:
             Blocking:           |  Reproduced by developer:  0
Analyzed by developer:  0        |
---------------------------------+---------------------------------------
 for (i = p; (bits[i] == 0) && (i < num); ++i)
         ;

 Suggest sanity check array index before use, not after

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


More information about the FFmpeg-trac mailing list