diff options
author | Nick Terrell <[email protected]> | 2023-10-12 12:55:34 -0700 |
---|---|---|
committer | Nick Terrell <[email protected]> | 2023-11-14 17:12:52 -0800 |
commit | 77618db346455129424fadbbaec596a09feaf3bb (patch) | |
tree | 90a0583d90c88694f7198a73fd79d585d8213eae /lib/zstd/common/debug.c | |
parent | ffc253263a1375a65fa6c9f62a893e9767fbebfa (diff) |
zstd: Fix array-index-out-of-bounds UBSAN warning
Zstd used an array of length 1 to mean a flexible array for C89
compatibility. Switch to a C99 flexible array to fix the UBSAN warning.
Tested locally by booting the kernel and writing to and reading from a
BtrFS filesystem with zstd compression enabled. I was unable to reproduce
the issue before the fix, however it is a trivial change.
Link: https://lkml.kernel.org/r/[email protected]
Reported-by: [email protected]
Reported-by: Eric Biggers <[email protected]>
Reported-by: Kees Cook <[email protected]>
Signed-off-by: Nick Terrell <[email protected]>
Reviewed-by: Kees Cook <[email protected]>
Diffstat (limited to 'lib/zstd/common/debug.c')
0 files changed, 0 insertions, 0 deletions