You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
496 B
15 lines
496 B
2 months ago
|
--- brotli-1.0.9/c/dec/bit_reader.h.RHEL-32153-kBrotliBitMask-bounds 2020-08-27 16:12:55.000000000 +0200
|
||
|
+++ brotli-1.0.9/c/dec/bit_reader.h 2024-09-11 12:42:29.143308077 +0200
|
||
|
@@ -28,8 +28,10 @@ static BROTLI_INLINE uint32_t BitMask(ui
|
||
|
/* Masking with this expression turns to a single
|
||
|
"Unsigned Bit Field Extract" UBFX instruction on ARM. */
|
||
|
return ~((0xFFFFFFFFu) << n);
|
||
|
- } else {
|
||
|
+ } else if (n < 33) {
|
||
|
return kBrotliBitMask[n];
|
||
|
+ } else {
|
||
|
+ return 0;
|
||
|
}
|
||
|
}
|
||
|
|