Skip to content

Commit

Permalink
also that might have been bad for security. who knows.
Browse files Browse the repository at this point in the history
  • Loading branch information
Arisotura committed Feb 15, 2020
1 parent e40d414 commit 3a4947f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/AREngine.cpp
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit 3a4947f

Please sign in to comment.