diff options
author | Ryan Libby <rlibby@FreeBSD.org> | 2024-07-07 23:46:58 +0000 |
---|---|---|
committer | Ryan Libby <rlibby@FreeBSD.org> | 2024-07-07 23:46:58 +0000 |
commit | 39bda097c03780e26e6a25ff59a3e8e77c77563f (patch) | |
tree | 9496b7ffb0d75ed8917aa938ea3fcd0b30c1c781 /contrib/llvm-project/llvm/include/llvm/ExecutionEngine/Orc/(public-mirror) | |
parent | f7f9a033f3ec755c8f1657103ba083294eb155d4 (diff) | |
download | src-main.tar.gz src-main.zip |
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/include/llvm/ExecutionEngine/Orc/(public-mirror)')
0 files changed, 0 insertions, 0 deletions