diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-04-27 19:46:58 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-04-27 19:46:58 +0400 |
commit | c80d0f1f8547b4b39f7aeb1b67f141cc3faedb97 (patch) | |
tree | 3569f0304376dcbbb98c48600cf822a3ba82523d /intern/guardedalloc | |
parent | 91197621dcb6a9265d0b58eeb7908b0fb234ab4b (diff) |
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.
Diffstat (limited to 'intern/guardedalloc')
-rw-r--r-- | intern/guardedalloc/intern/mallocn.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |