avoid crash in .bullet file reading on empty files (or file-not-found)
This commit is contained in:
@@ -108,6 +108,9 @@ bFile::~bFile()
|
||||
// ----------------------------------------------------- //
|
||||
void bFile::parseHeader()
|
||||
{
|
||||
if (!mFileLen || !mFileBuffer)
|
||||
return;
|
||||
|
||||
char *blenderBuf = mFileBuffer;
|
||||
char header[SIZEOFBLENDERHEADER+1] ;
|
||||
memcpy(header, blenderBuf, SIZEOFBLENDERHEADER);
|
||||
|
||||
Reference in New Issue
Block a user