Commit 6d3f1783 authored by Michael Niedermayer's avatar Michael Niedermayer

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: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent f8f155a1
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment