[llvm-commits] [poolalloc] r133329 - /poolalloc/trunk/runtime/DynamicTypeChecks/TypeRuntime.c
Arushi Aggarwal
aggarwa4 at illinois.edu
Fri Jun 17 18:27:46 PDT 2011
Author: aggarwa4
Date: Fri Jun 17 20:27:46 2011
New Revision: 133329
URL: http://llvm.org/viewvc/llvm-project?rev=133329&view=rev
Log:
The function might be called with a null value, e.g.
from getenv
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=133329&r1=133328&r2=133329&view=diff
==============================================================================
--- poolalloc/trunk/runtime/DynamicTypeChecks/TypeRuntime.c (original)
+++ poolalloc/trunk/runtime/DynamicTypeChecks/TypeRuntime.c Fri Jun 17 20:27:46 2011
@@ -265,6 +265,8 @@
}
void trackgetcwd(void *ptr, uint32_t tag) {
+ if(!ptr)
+ return;
trackInitInst(ptr, strlen(ptr) + 1, tag);
}
More information about the llvm-commits
mailing list