Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash from an incomplete do-while statement #678

Open
Daniel-Cortez opened this issue Sep 29, 2021 · 1 comment · May be fixed by #680
Open

Crash from an incomplete do-while statement #678

Daniel-Cortez opened this issue Sep 29, 2021 · 1 comment · May be fixed by #680

Comments

@Daniel-Cortez
Copy link
Contributor

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:
@Daniel-Cortez Daniel-Cortez linked a pull request Sep 30, 2021 that will close this issue
4 tasks
@YashasSamaga YashasSamaga linked a pull request Oct 8, 2021 that will close this issue
4 tasks
@stale
Copy link

stale bot commented Jan 9, 2022

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

@stale stale bot added the state: stale label Jan 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant