3da299538e
- Add deutex-nolimit.diff: raise limit for WAD directory reading OBS-URL: https://build.opensuse.org/request/show/508842 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/deutex?expand=0&rev=6
22 lines
766 B
Diff
22 lines
766 B
Diff
From: Jan Engelhardt <jengelh@inai.de>
|
|
Date: 2017-07-07 16:45:59.059496819 +0200
|
|
|
|
Permit reading of WADs with more than 4096 entries.
|
|
---
|
|
src/mkwad.c | 2 --
|
|
1 file changed, 2 deletions(-)
|
|
|
|
Index: deutex-4.4.902/src/mkwad.c
|
|
===================================================================
|
|
--- deutex-4.4.902.orig/src/mkwad.c
|
|
+++ deutex-4.4.902/src/mkwad.c
|
|
@@ -125,8 +125,6 @@ void WADRopenR(struct WADINFO *info, con
|
|
ntry = WADRreadLong(info);
|
|
if(ntry<=0)
|
|
ProgError("WR09", "%s: zero entries", fname (wadin));
|
|
- if(ntry>=0x2000)
|
|
- ProgError("WR11", "%s: too many entries", fname (wadin));
|
|
info->dirpos= dirpos= WADRreadLong(info);
|
|
if((dirpos<0)||(dirpos>0x10000000L))
|
|
ProgError("WR13", "%s: invalid directory offset %08lX",
|