Fix use-after-free with include in linker scripts

Fixes #510, and further proves that you *really* should not entrust memory
ownership management to humans :P
This commit is contained in:
ISSOtm
2020-04-13 02:36:07 +02:00
parent 023a3c037f
commit 2220f19fa7
3 changed files with 11 additions and 6 deletions

View File

@@ -25,7 +25,7 @@
#include "version.h"
bool isDmgMode; /* -d */
char const *linkerScriptName; /* -l */
char *linkerScriptName; /* -l */
char const *mapFileName; /* -m */
char const *symFileName; /* -n */
char const *overlayFileName; /* -O */