Specifying an incomplete do-while statement without the while (...); part makes the compiler misinterpret further code, which may cause a crash due to calling fgets() with an invalid file handle ((FILE *)0xFFFFFFFF).
Minimal complete verifiable example (MCVE):
main()
{
do {}
}
Workspace Information:
Compiler version: 3.10.10
Command line arguments provided (or sampctl version):
Issue description:
Specifying an incomplete
do-while
statement without thewhile (...);
part makes the compiler misinterpret further code, which may cause a crash due to callingfgets()
with an invalid file handle ((FILE *)0xFFFFFFFF
).Minimal complete verifiable example (MCVE):
Workspace Information: