mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-26 15:50:00 -06:00
also that might have been bad for security. who knows.
This commit is contained in:
@ -95,6 +95,12 @@ void ParseTextCode(char* text, u32* code, int len) // or whatever this should be
|
|||||||
if (nout & 1)
|
if (nout & 1)
|
||||||
{
|
{
|
||||||
printf("AR: code was missing one word??\n");
|
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;
|
*code++ = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user