summaryrefslogtreecommitdiffstats
path: root/contrib/llvm/lib/ExecutionEngine/Orc/IndirectionUtils.cpp
diff options
context:
space:
mode:
authoruqs <uqs@FreeBSD.org>2016-01-05 10:25:22 +0000
committeruqs <uqs@FreeBSD.org>2016-01-05 10:25:22 +0000
commitf24014c87e3098c543d76a3f4b3dd49993afbc5e (patch)
tree0b55b1a55715b03c278e3a39f78232434ea0b594 /contrib/llvm/lib/ExecutionEngine/Orc/IndirectionUtils.cpp
parent2f4ee1992847ca3ce549bd0fdc545a1d505226dd (diff)
downloadFreeBSD-src-f24014c87e3098c543d76a3f4b3dd49993afbc5e.zip
FreeBSD-src-f24014c87e3098c543d76a3f4b3dd49993afbc5e.tar.gz
Fix undefined behavior when using asmc_fan_getstring()
It was returning a pointer to stack-allocated memory, so make the allocation at the caller instead. Found by: clang static analyzer Coverity: CID 1245774 Reviewed by: ed, rpaulo Review URL: https://reviews.freebsd.org/D4740
Diffstat (limited to 'contrib/llvm/lib/ExecutionEngine/Orc/IndirectionUtils.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud