Fix out of bounds write caused by memset call missed when tilesiz was changed from vec2_t to vec2s_t

git-svn-id: https://svn.eduke32.com/eduke32@6337 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2017-07-08 01:48:01 +00:00
parent 2b7cd33fc2
commit cabb918c64

View file

@ -504,7 +504,7 @@ int32_t loadpics(const char *filename, int32_t askedsize)
{ {
Bstrncpyz(artfilename, filename, sizeof(artfilename)); Bstrncpyz(artfilename, filename, sizeof(artfilename));
Bmemset(&tilesiz[0], 0, sizeof(vec2_t) * MAXTILES); Bmemset(&tilesiz[0], 0, sizeof(vec2s_t) * MAXTILES);
Bmemset(picanm, 0, sizeof(picanm)); Bmemset(picanm, 0, sizeof(picanm));
// artsize = 0; // artsize = 0;