mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 541828: crash in BuildFileList (r=tglek)
This commit is contained in:
parent
083f8dfa3d
commit
b1dfdbc219
@ -538,6 +538,8 @@ nsresult nsZipArchive::BuildFileList()
|
||||
|
||||
//-- Read the central directory headers
|
||||
buf = startp + centralOffset;
|
||||
if (endp - buf < sizeof(PRUint32))
|
||||
return NS_ERROR_FILE_CORRUPTED;
|
||||
PRUint32 sig = xtolong(buf);
|
||||
while (sig == CENTRALSIG) {
|
||||
// Make sure there is enough data available.
|
||||
|
Loading…
Reference in New Issue
Block a user