diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2015-05-13 15:48:17 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-05-13 15:48:17 +0200 |
commit | 6d3f17838db93647f026338cb63103ce57f5d0e2 (patch) | |
tree | 1572d5fa97f3a1adea30f969d9b7c0118e2fa933 /libavcodec | |
parent | f8f155a18ac454e7ff3312e0e0c3a70eb4359143 (diff) | |
download | ffmpeg-6d3f17838db93647f026338cb63103ce57f5d0e2.tar.gz |
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>
Diffstat (limited to 'libavcodec')
-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; } |