summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2023-11-14 23:35:31 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2023-11-14 23:35:31 -0500
commit86d11b0e20c09e0a91cd2aa57b115000274e2ac5 (patch)
treeec23a36c6dc37c3b1de18168aec677fe6883261f /lib
parent2e6ef8aaba6b709ce91164401fa1c12668510360 (diff)
parent77618db346455129424fadbbaec596a09feaf3bb (diff)
Merge tag 'zstd-linus-v6.7-rc2' of https://github.com/terrelln/linux
Pull Zstd fix from Nick Terrell: "Only a single line change to fix a benign UBSAN warning" * tag 'zstd-linus-v6.7-rc2' of https://github.com/terrelln/linux: zstd: Fix array-index-out-of-bounds UBSAN warning
Diffstat (limited to 'lib')
-rw-r--r--lib/zstd/common/fse_decompress.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/zstd/common/fse_decompress.c b/lib/zstd/common/fse_decompress.c
index a0d06095be83..8dcb8ca39767 100644
--- a/lib/zstd/common/fse_decompress.c
+++ b/lib/zstd/common/fse_decompress.c
@@ -312,7 +312,7 @@ size_t FSE_decompress_wksp(void* dst, size_t dstCapacity, const void* cSrc, size
typedef struct {
short ncount[FSE_MAX_SYMBOL_VALUE + 1];
- FSE_DTable dtable[1]; /* Dynamically sized */
+ FSE_DTable dtable[]; /* Dynamically sized */
} FSE_DecompressWksp;