mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-11 07:11:39 +00:00
cache1d.c: cover up preceding assertion failure by bumping size of lzwrawbuf[].
It's hard to call this a fix, since ideally, buffer sizes like these would be only as large as needed in the worst case. git-svn-id: https://svn.eduke32.com/eduke32@3880 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
d02ab6699d
commit
6f6fbf0f04
1 changed files with 3 additions and 2 deletions
|
@ -1386,8 +1386,9 @@ failure:
|
||||||
#define LZWSIZE 16384 //Watch out for shorts!
|
#define LZWSIZE 16384 //Watch out for shorts!
|
||||||
#define LZWSIZEPAD (LZWSIZE+(LZWSIZE>>4))
|
#define LZWSIZEPAD (LZWSIZE+(LZWSIZE>>4))
|
||||||
|
|
||||||
// lzwrawbuf LZWSIZE+1: see (*) below
|
// lzwrawbuf LZWSIZE+1 (formerly): see (*) below
|
||||||
static char lzwtmpbuf[LZWSIZEPAD], lzwrawbuf[LZWSIZE+1], lzwcompbuf[LZWSIZEPAD];
|
// XXX: lzwrawbuf size increased again :-/
|
||||||
|
static char lzwtmpbuf[LZWSIZEPAD], lzwrawbuf[LZWSIZEPAD], lzwcompbuf[LZWSIZEPAD];
|
||||||
static int16_t lzwbuf2[LZWSIZEPAD], lzwbuf3[LZWSIZEPAD];
|
static int16_t lzwbuf2[LZWSIZEPAD], lzwbuf3[LZWSIZEPAD];
|
||||||
|
|
||||||
static int32_t lzwcompress(const char *lzwinbuf, int32_t uncompleng, char *lzwoutbuf);
|
static int32_t lzwcompress(const char *lzwinbuf, int32_t uncompleng, char *lzwoutbuf);
|
||||||
|
|
Loading…
Reference in a new issue