Commit 083d9ba4 authored by Nir Ben David's avatar Nir Ben David Committed by Michael Niedermayer

golomb: Fix overread in get_ur_golomb_jpegls()

Fixes Ticket600
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent a14708d4
......@@ -302,6 +302,8 @@ static inline int get_ur_golomb_jpegls(GetBitContext *gb, int k, int limit, int
}else{
int i;
for(i=0; SHOW_UBITS(re, gb, 1) == 0; i++){
if (get_bits_left(gb)<=0)
return -1;
LAST_SKIP_BITS(re, gb, 1);
UPDATE_CACHE(re, gb);
}
......
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