also that might have been bad for security. who knows.

This commit is contained in:
Arisotura 2020-02-15 17:26:48 +01:00
parent e40d414c56
commit 3a4947fbbe
1 changed files with 6 additions and 0 deletions

View File

@ -95,6 +95,12 @@ void ParseTextCode(char* text, u32* code, int len) // or whatever this should be
if (nout & 1)
{
printf("AR: code was missing one word??\n");
if (nout >= len)
{
// OH SHIT SHIT SHIT SHIT
printf("AR: code too long!\n");
return;
}
*code++ = 0;
}
}