Browse Source

avcodec/jpeglsdec: assert that overflows end at exactly x=w

If that ever was untrue, there would be a bug in the code

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.7
Michael Niedermayer 10 years ago
parent
commit
6d3f17838d
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      libavcodec/jpeglsdec.c

+ 1
- 0
libavcodec/jpeglsdec.c View File

@@ -280,6 +280,7 @@ static inline void ls_decode_line(JLSState *state, MJpegDecodeContext *s,

if (x >= w) {
av_log(NULL, AV_LOG_ERROR, "run overflow\n");
av_assert0(x <= w);
return;
}



Loading…
Cancel
Save