commit | 4de8f6922a9be7d0a51a429e367283fd40031b26 | [log] [tgz] |
---|---|---|
author | DRC <information@libjpeg-turbo.org> | Fri Apr 16 16:34:12 2021 -0500 |
committer | DRC <information@libjpeg-turbo.org> | Fri Apr 16 16:34:12 2021 -0500 |
tree | 6bfa6dfb6940a422d32a9517180f322fcf7e7426 | |
parent | 785ec30eb4754e11c961de41047785c6ead07f7b [diff] |
jdhuff.h: Fix ASan regression caused by 8fa70367 The 0xFF is, in fact, necessary.
diff --git a/jdhuff.h b/jdhuff.h index 60d8e8b..cfa0b7f 100644 --- a/jdhuff.h +++ b/jdhuff.h
@@ -237,7 +237,7 @@ if (nb > 16) \ s = 0; \ else \ - s = htbl->pub->huffval[(int)(s + htbl->valoffset[nb])]; \ + s = htbl->pub->huffval[(int)(s + htbl->valoffset[nb]) & 0xFF]; \ } /* Out-of-line case for Huffman code fetching */