zstd: Fix array-index-out-of-bounds UBSAN warning
[platform/kernel/linux-starfive.git] / lib / zstd / common / fse_decompress.c
index a0d0609..8dcb8ca 100644 (file)
@@ -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;