[llvm-commits] CVS: llvm/test/Programs/MultiSource/McCat-08-main/object.c
Chris Lattner
lattner at cs.uiuc.edu
Wed Aug 13 15:43:01 PDT 2003
Changes in directory llvm/test/Programs/MultiSource/McCat-08-main:
object.c updated: 1.2 -> 1.3
---
Log message:
Fix a bug where the test would read uninitialized memory, causing some of the
JIT's to crash.
---
Diffs of the changes:
Index: llvm/test/Programs/MultiSource/McCat-08-main/object.c
diff -u llvm/test/Programs/MultiSource/McCat-08-main/object.c:1.2 llvm/test/Programs/MultiSource/McCat-08-main/object.c:1.3
--- llvm/test/Programs/MultiSource/McCat-08-main/object.c:1.2 Mon May 12 15:06:55 2003
+++ llvm/test/Programs/MultiSource/McCat-08-main/object.c Wed Aug 13 15:42:47 2003
@@ -23,7 +23,7 @@
Oalloc(char name[57])
{
ObjPtr o=NULL;
- o = (ObjPtr) malloc(sizeof(object));
+ o = (ObjPtr) calloc(sizeof(object), 1);
strcpy(o->Name,name);
o->Color.R = 1;
o->Color.G = 1;
More information about the llvm-commits
mailing list