mirror of
https://github.com/webmproject/libwebp.git
synced 2024-11-20 04:18:26 +01:00
Merge "VPLBitReader bugfix: Catch error if bit_pos > LBITS too."
This commit is contained in:
commit
ebc9b1eedf
@ -179,7 +179,7 @@ void VP8LFillBitWindow(VP8LBitReader* const br) {
|
||||
}
|
||||
#endif
|
||||
ShiftBytes(br); // Slow path.
|
||||
if (br->pos_ == br->len_ && br->bit_pos_ == LBITS) {
|
||||
if (br->pos_ == br->len_ && br->bit_pos_ >= LBITS) {
|
||||
br->eos_ = 1;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user