Opened 6 weeks ago

Closed 4 weeks 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: unspecified Keywords:
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 (1)

comment:1 Changed 4 weeks ago by hiroh

  • Resolution set to fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.