Skip to content

Crash from an incomplete do-while statement #678

Open
@Daniel-Cortez

Description

@Daniel-Cortez

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:

  • Compiler version: 3.10.10
  • Command line arguments provided (or sampctl version):
  • Operating System:

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions