Page MenuHome

Fix crash in BLI_gzopen when file cannot be opened
ClosedPublic

Authored by Robert Guetzkow (rjg) on Nov 16 2020, 1:07 PM.

Details

Summary

This patch fixes T81271. 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.

Diff Detail

Repository
rB Blender

Event Timeline

Robert Guetzkow (rjg) requested review of this revision.Nov 16 2020, 1:07 PM
Robert Guetzkow (rjg) created this revision.
This revision is now accepted and ready to land.Nov 16 2020, 1:09 PM