summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2023-11-15 05:35:31 +0100
committerLinus Torvalds <torvalds@linux-foundation.org>2023-11-15 05:35:31 +0100
commit86d11b0e20c09e0a91cd2aa57b115000274e2ac5 (patch)
treeec23a36c6dc37c3b1de18168aec677fe6883261f /lib
parentRemove myself as maintainer of GFS2 (diff)
parentzstd: Fix array-index-out-of-bounds UBSAN warning (diff)
downloadlinux-86d11b0e20c09e0a91cd2aa57b115000274e2ac5.tar.xz
linux-86d11b0e20c09e0a91cd2aa57b115000274e2ac5.zip
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;