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

Fix a segmentation fault caused by a negative argc #626

Merged
merged 1 commit into from
May 15, 2024

Conversation

gaalexandre
Copy link
Contributor

Problem:

  • With MinGW on windows and maybe on other platforms the cmd_line_args function sets cfg::largc to -1 and trigger a segmentation fault in parse.

Solution:

  • if argc < 0 then use 0 instead in parse.

Issue: #

Reviewers:
@

On some platforms the cmd_line_args function sets cfg::largc to -1 and
trigger a segmentation fault in parse.
@kris-jusiak kris-jusiak merged commit ed94a00 into boost-ext:master May 15, 2024
5 of 8 checks passed
@kris-jusiak
Copy link
Contributor

Thank you very much @gaalexandre

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants