1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2025-01-31 09:05:14 +01:00

Fixed header length check

This commit is contained in:
Martin Tůma 2023-03-16 20:58:28 +01:00
parent b3767e85e1
commit 07581f027b

View File

@ -217,7 +217,7 @@ bool RGNFile::load(Handle &hdl)
&& readUInt32(hdl, _base.size)))
return false;
if (hdrLen >= 0x68) {
if (hdrLen >= 0x71) {
if (!(readUInt32(hdl, _polygons.offset) && readUInt32(hdl, _polygons.size)
&& seek(hdl, _gmpOffset + 0x29) && readUInt32(hdl, _polygonsGblFlags)
&& readUInt32(hdl, _polygonsLclFlags[0])