From c80d0f1f8547b4b39f7aeb1b67f141cc3faedb97 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Tue, 27 Apr 2010 15:46:58 +0000 Subject: fix for allocations over 2gig crashing blender (even on 64 bit systems) the memheader len would wrap to a negative number and when freeing it would write into the memheader. --- intern/guardedalloc/intern/mallocn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'intern/guardedalloc') diff --git a/intern/guardedalloc/intern/mallocn.c b/intern/guardedalloc/intern/mallocn.c index 94453e91912..624687735dc 100644 --- a/intern/guardedalloc/intern/mallocn.c +++ b/intern/guardedalloc/intern/mallocn.c @@ -82,7 +82,7 @@ typedef struct localListBase /* note: keep this struct aligned (e.g., irix/gcc) - Hos */ typedef struct MemHead { int tag1; - int len; + unsigned int len; struct MemHead *next,*prev; const char * name; const char * nextname; -- cgit v1.2.3