Blender Git Commit Log

Git Commits -> Revision b1b4e00

Revision b1b4e00 by Bastien Montagne (master)
October 1, 2019, 18:08 (GMT)
Fix T70315: Blender exit with code `-6` with message `Attempt to free NULL pointer`.

This is not actually fixing the real issue here, PackedFile structs are
never supposed to have a NULL pointer - and in that monster .blend file,
the pointer is not NULL, but the actual data chunk has been lost
somehow, so it gets NULL during read process.

Very unlikely we ever know how such corrupted .blend was created though
(there's probably a fair chance that this is not even due to a bug in
Blender, but rather a glitch in filesystem or something).

So for now, ensure at read time that we get a coherent state (i.e.
remove any read PackedFile that would have a NULL data field), and add a
few asserts in relevant code to check we never get NULL data pointer
here.

Commit Details:

Full Hash: b1b4e0007663f3430754d522e888b8dedfc850f9
Parent Commit: 8dd9172
Lines Changed: +15, -2

2 Modified Paths:

/source/blender/blenkernel/intern/packedFile.c (+9, -2) (Diff)
/source/blender/blenloader/intern/readfile.c (+6, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021