[llvm-commits] [poolalloc] r132574 - /poolalloc/trunk/runtime/DynamicTypeChecks/TypeRuntime.c
Arushi Aggarwal
aggarwa4 at illinois.edu
Fri Jun 3 11:43:01 PDT 2011
Author: aggarwa4
Date: Fri Jun 3 13:43:01 2011
New Revision: 132574
URL: http://llvm.org/viewvc/llvm-project?rev=132574&view=rev
Log:
Make sure we copy type info for the Null terminator
as well.
Modified:
poolalloc/trunk/runtime/DynamicTypeChecks/TypeRuntime.c
Modified: poolalloc/trunk/runtime/DynamicTypeChecks/TypeRuntime.c
URL: http://llvm.org/viewvc/llvm-project/poolalloc/trunk/runtime/DynamicTypeChecks/TypeRuntime.c?rev=132574&r1=132573&r2=132574&view=diff
==============================================================================
--- poolalloc/trunk/runtime/DynamicTypeChecks/TypeRuntime.c (original)
+++ poolalloc/trunk/runtime/DynamicTypeChecks/TypeRuntime.c Fri Jun 3 13:43:01 2011
@@ -218,7 +218,7 @@
*/
void trackStrncpyInst(void *dst, void *src, uint64_t size, uint32_t tag) {
if(strlen(src) < size)
- size = strlen(src);
+ size = strlen(src) + 1;
copyTypeInfo(dst, src, size, tag);
}
More information about the llvm-commits
mailing list