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.
This commit is contained in:
Campbell Barton 2010-04-27 15:46:58 +00:00
parent 91197621dc
commit c80d0f1f85

@ -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;