[linux] Backport fix for arry-index-out-of-bounds UBSAN warning
Backport the fix already in the kernel, and is fixed in the dev branch in a different way. https://lkml.kernel.org/r/20231012213428.1390905-1-nickrterrell@gmail.com
This commit is contained in:
@@ -237,7 +237,7 @@ FORCE_INLINE_TEMPLATE size_t FSE_decompress_usingDTable_generic(
|
|||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
short ncount[FSE_MAX_SYMBOL_VALUE + 1];
|
short ncount[FSE_MAX_SYMBOL_VALUE + 1];
|
||||||
FSE_DTable dtable[1]; /* Dynamically sized */
|
FSE_DTable dtable[]; /* Dynamically sized */
|
||||||
} FSE_DecompressWksp;
|
} FSE_DecompressWksp;
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user