Opened 4 years ago

Closed 4 years ago

Last modified 2 years ago

#6743 closed defect (fixed)

ffmpeg-3.4/libavcodec/vorbis.c:74]: (style) Array index 'i' is used before limits check.

Reported by: dcb Owned by:
Priority: normal Component: avcodec
Version: git-master Keywords: vorbis
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

for (i = p; (bits[i] == 0) && (i < num); ++i)

;

Suggest sanity check array index before use, not after

Change History (2)

comment:1 by Hirokazu Honda, 4 years ago

Resolution: fixed
Status: newclosed

comment:2 by Carl Eugen Hoyos, 2 years ago

Keywords: vorbis added
Version: unspecifiedgit-master
Note: See TracTickets for help on using tickets.