]> granicus.if.org Git - clang/commit
[ubsan] Check the correct size when sanitizing array new.
authorRichard Smith <richard-llvm@metafoo.co.uk>
Wed, 23 Jan 2019 03:37:29 +0000 (03:37 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Wed, 23 Jan 2019 03:37:29 +0000 (03:37 +0000)
commit125802222ee9a90f861c231e986a7005e0622b0a
tree8a8323af6fb8be14f18451dcefbab32039815ef4
parent4566ed0d7c076ad061168f7c6cb5fa3a793614a8
[ubsan] Check the correct size when sanitizing array new.

We previously forgot to multiply the element size by the array bound.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@351924 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGExpr.cpp
lib/CodeGen/CGExprCXX.cpp
lib/CodeGen/CodeGenFunction.h
test/CodeGenCXX/catch-undef-behavior.cpp