]> git.xonotic.org Git - xonotic/gmqcc.git/commit
move more parser code to c++, fix crashes with gcc
authorWolfgang Bumiller <wry.git@bumiller.com>
Sun, 23 Jul 2017 08:06:51 +0000 (10:06 +0200)
committerWolfgang Bumiller <wry.git@bumiller.com>
Sun, 23 Jul 2017 08:11:31 +0000 (10:11 +0200)
commit047ecd426f4068566a2db97a894d00d98c66f345
tree8a986a2a854030d628ee783b6ec345be48289df0
parentfb3af2831b9a6e3156de2577bf71e34ccd5c1e4e
move more parser code to c++, fix crashes with gcc

we initialized the parser with malloc -> memset to zero ->
placement new. With gcc the latter caused the memset to be
optimized out, causing uninitialized value accesses.
gmqcc.h
main.cpp
parser.cpp
parser.h