diff options
-rw-r--r-- | libavcodec/jpeglsdec.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/jpeglsdec.c b/libavcodec/jpeglsdec.c index 09ddf07a96..97fc600721 100644 --- a/libavcodec/jpeglsdec.c +++ b/libavcodec/jpeglsdec.c @@ -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; } |