pawn-lang / compiler

Pawn compiler for SA-MP with bug fixes and new features - runs on Windows, Linux, macOS
Other
306 stars 72 forks source link

Crash from an incomplete `do-while` statement #678

Open Daniel-Cortez opened 3 years ago

Daniel-Cortez commented 3 years ago

Issue description:

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:

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity.