Opened 21 months ago

Closed 21 months ago

Last modified 2 months 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 Changed 21 months ago by hiroh

  • Resolution set to fixed
  • Status changed from new to closed

comment:2 Changed 2 months ago by cehoyos

  • Keywords vorbis added
  • Version changed from unspecified to git-master
Note: See TracTickets for help on using tickets.