mirror of
https://github.com/ptitSeb/Serious-Engine
synced 2024-11-22 10:20:26 +01:00
Fixed what appears to be an uninitialized memory access.
This appears to fix crashes in 64-bit Linux builds. Might all be luck, though.
This commit is contained in:
parent
67e940def8
commit
a0595204d4
|
@ -294,6 +294,7 @@ void lzrw1_compress(const UBYTE *p_src_first, ULONG src_len,UBYTE *p_dst_first,
|
||||||
UBYTE *p_dst_post=p_dst_first+src_len;
|
UBYTE *p_dst_post=p_dst_first+src_len;
|
||||||
const UBYTE *p_src_max1=p_src_post-ITEMMAX,*p_src_max16=p_src_post-16*ITEMMAX;
|
const UBYTE *p_src_max1=p_src_post-ITEMMAX,*p_src_max16=p_src_post-16*ITEMMAX;
|
||||||
const UBYTE *hash[4096];
|
const UBYTE *hash[4096];
|
||||||
|
memset(hash, 0, sizeof(hash));
|
||||||
UBYTE *p_control; UWORD control=0,control_bits=0;
|
UBYTE *p_control; UWORD control=0,control_bits=0;
|
||||||
*p_dst=FLAG_COMPRESS; p_dst+=FLAG_BYTES; p_control=p_dst; p_dst+=2;
|
*p_dst=FLAG_COMPRESS; p_dst+=FLAG_BYTES; p_control=p_dst; p_dst+=2;
|
||||||
while (TRUE)
|
while (TRUE)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user