mirror of
https://github.com/daveallie/crosspoint-reader.git
synced 2025-12-19 15:47:40 +03:00
## Problem Three `fopen()` calls in ZipFile.cpp did not check for NULL before using the file handle. If files cannot be opened, `fseek`/`fread`/`fclose` receive NULL and crash. ## Fix Added NULL checks with appropriate error logging and early returns for all three locations: - `getDataOffset()` - `readFileToMemory()` - `readFileToStream()` ## Testing - Builds successfully with `pio run` - Affects: `lib/ZipFile/ZipFile.cpp` |
||
|---|---|---|
| .. | ||
| ZipFile.cpp | ||
| ZipFile.h | ||