diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2005-04-25 15:40:35 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2005-04-25 15:40:35 +0000 |
commit | 5fe8561bbe01106bdb8e30c9dbc53511744fcb80 (patch) | |
tree | a48555d91281bfeb9f3cda073a708d6374b9cf2d | |
parent | 0bc07503c8a124f5bafb04be64e4fd458c2a8a74 (diff) |
Make sure the target buffer is null terminated so we don't blow up
strcat when its called.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21533 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/Transforms/SimplifyLibCalls/2005-04-24-strcat.ll | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/Transforms/SimplifyLibCalls/2005-04-24-strcat.ll b/test/Transforms/SimplifyLibCalls/2005-04-24-strcat.ll index d6040603f0..7c78dd12dc 100644 --- a/test/Transforms/SimplifyLibCalls/2005-04-24-strcat.ll +++ b/test/Transforms/SimplifyLibCalls/2005-04-24-strcat.ll @@ -10,6 +10,7 @@ implementation ; Functions: int %main () { %target = alloca [1024 x sbyte] %arg1 = getelementptr [1024 x sbyte]* %target, int 0, int 0 + store sbyte 0, sbyte* %arg1 %arg2 = getelementptr [6 x sbyte]* %hello, int 0, int 0 %rslt = call sbyte* %strcat(sbyte* %arg1, sbyte* %arg2) ret int 0 |