Xteink-X4-crosspoint-reader/lib/ZipFile
IFAKA c1d5f5d562
Add NULL checks after fopen() in ZipFile (#68)
## 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`
2025-12-19 23:28:43 +11:00
..
ZipFile.cpp Add NULL checks after fopen() in ZipFile (#68) 2025-12-19 23:28:43 +11:00
ZipFile.h Remove tinyxml2 dependency replace with expat parsers (#9) 2025-12-13 19:36:01 +11:00