Blender Git Commit Log

Git Commits -> Revision 8b815c7

Revision 8b815c7 by Robert Guetzkow (master)
November 16, 2020, 12:17 (GMT)
Fix T81271: Fix crash in BLI_gzopen on Windows

Previously the return value of `ufopen` wasn't checked and if it failed,
`NULL` was passed into `fclose()` which resulted in a crash. This patch
avoids this by returning from `BLI_gzopen` when the file cannot be created.

Reviewed By: sebbas, iss

Differential Revision: https://developer.blender.org/D9576

Commit Details:

Full Hash: 8b815c7ce565b707fca9e9793bbec9784856f0f9
Parent Commit: 7db42b8
Lines Changed: +6, -1

1 Modified Path:

/source/blender/blenlib/intern/fileops.c (+6, -1) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021