From a3c4d675ba19df385be5d1e3966c61de7186da57 Mon Sep 17 00:00:00 2001 From: shennetsind Date: Sat, 17 Jan 2015 20:18:49 -0200 Subject: 27 Fixes Addressing out of bounds read/write, pointless null checks on already deferenced variables. Special Thanks to 4144 and Haruna! Signed-off-by: shennetsind --- src/common/grfio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/common') diff --git a/src/common/grfio.c b/src/common/grfio.c index eeda7e4b5..28e6c87f4 100644 --- a/src/common/grfio.c +++ b/src/common/grfio.c @@ -509,7 +509,7 @@ static bool isFullEncrypt(const char* fname) static int grfio_entryread(const char* grfname, int gentry) { long grf_size; - unsigned char grf_header[0x2e]; + unsigned char grf_header[0x2e] = { 0 }; int entry,entrys,ofs,grf_version; unsigned char *grf_filelist; -- cgit v1.2.3-70-g09d2