diff options
Diffstat (limited to 'src/common/grfio.c')
-rw-r--r-- | src/common/grfio.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/common/grfio.c b/src/common/grfio.c index d226fb158..e95163569 100644 --- a/src/common/grfio.c +++ b/src/common/grfio.c @@ -645,6 +645,7 @@ static int grfio_entryread(const char *grfname, int gentry) aFree(rBuf); entrys = getlong(grf_header+0x26) - 7; + Assert_retr(4, entrys >= 0); // Get an entry for (entry = 0, ofs = 0; entry < entrys; ++entry) { |