aboutsummaryrefslogtreecommitdiff
path: root/contrib/llvm-project/llvm/lib/Transforms/Scalar/(public-mirror)
diff options
context:
space:
mode:
authorRyan Libby <rlibby@FreeBSD.org>2024-07-07 23:46:58 +0000
committerRyan Libby <rlibby@FreeBSD.org>2024-07-07 23:46:58 +0000
commit39bda097c03780e26e6a25ff59a3e8e77c77563f (patch)
tree9496b7ffb0d75ed8917aa938ea3fcd0b30c1c781 /contrib/llvm-project/llvm/lib/Transforms/Scalar/(public-mirror)
parentf7f9a033f3ec755c8f1657103ba083294eb155d4 (diff)
downloadsrc-main.tar.gz
src-main.zip
pci: propagate vpd read errorHEADmain
On read error, we would return -1, but not handle it, causing a zero size malloc of value, and then we wouldd unconditionally write value[-1 + 1] = '\0'. This should be harmless in terms of buffer overflow because we should get a minimum non-zero size allocation from malloc, but it also effectively swallowed the error. Reported by: GCC -Wstringop-overflow Reviewed by: kib, se Differential Revision: https://reviews.freebsd.org/D45895
Diffstat (limited to 'contrib/llvm-project/llvm/lib/Transforms/Scalar/(public-mirror)')
0 files changed, 0 insertions, 0 deletions