diff options
| author | 2026-10-05 11:44:56 +0900 | |
|---|---|---|
| committer | 2026-11-27 02:46:05 +0100 | |
| commit | 784d3d7069cfd9165013542bdc89c107cfc2af2e (patch) | |
| tree | 28f295f8db0fc95c6f9681635ed054f9c0250ff1 /src/limera1n.h | |
| parent | 72949d4ce836a815e4cf661a84f549924b407c24 (diff) | |
| download | idevicerestore-784d3d7069cfd9165013542bdc89c107cfc2af2e.tar.gz idevicerestore-784d3d7069cfd9165013542bdc89c107cfc2af2e.tar.bz2 | |
idevicerestore: Handle realloc() failure when reading gzip data
The loop that reads gzip compressed data grew its buffer with
bin = realloc(bin, bufsize), so on out-of-memory the buffer was
leaked and the next gzread() wrote through a NULL pointer.
Check the result and fail the same way as the gzread() error just
above.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'src/limera1n.h')
0 files changed, 0 insertions, 0 deletions
