#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
_______________________________________________
FFmpeg-trac mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/ffmpeg-trac

Reply via email to