| Index: third_party/libwebp/utils/bit_reader_inl.h
|
| diff --git a/third_party/libwebp/utils/bit_reader_inl.h b/third_party/libwebp/utils/bit_reader_inl.h
|
| index 81427c6259b2ef1612a03463553e039ea78d5ad1..37215702d4f1a24370eb8448f6802705c1a0a7fe 100644
|
| --- a/third_party/libwebp/utils/bit_reader_inl.h
|
| +++ b/third_party/libwebp/utils/bit_reader_inl.h
|
| @@ -46,7 +46,7 @@ typedef uint8_t lbit_t;
|
| #endif
|
|
|
| extern const uint8_t kVP8Log2Range[128];
|
| -extern const range_t kVP8NewRange[128];
|
| +extern const uint8_t kVP8NewRange[128];
|
|
|
| // special case for the tail byte-reading
|
| void VP8LoadFinalBytes(VP8BitReader* const br);
|
| @@ -58,7 +58,7 @@ void VP8LoadFinalBytes(VP8BitReader* const br);
|
| static WEBP_INLINE void VP8LoadNewBytes(VP8BitReader* const br) {
|
| assert(br != NULL && br->buf_ != NULL);
|
| // Read 'BITS' bits at a time if possible.
|
| - if (br->buf_ + sizeof(lbit_t) <= br->buf_end_) {
|
| + if (br->buf_ < br->buf_max_) {
|
| // convert memory type to register type (with some zero'ing!)
|
| bit_t bits;
|
| #if defined(WEBP_FORCE_ALIGNED)
|
|
|