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

Don’t try to read a path that wasn’t supplied in the command line options. #6

Merged
merged 1 commit into from Apr 12, 2021
Merged

Don’t try to read a path that wasn’t supplied in the command line options. #6

merged 1 commit into from Apr 12, 2021

Conversation

SylvainBoilard
Copy link
Contributor

Hi,

When the options "-cfg" or "-data" are provided at the end of the command line without a path, M.A.R.S. segfaults and dies.

Attached patch fixes the problem by preventing an off-by-one access to argv[] and display a non-fatal error message in these cases.

Best wishes,

Sylvain Boilard

jwrdegoede pushed a commit to jwrdegoede/M.A.R.S. that referenced this pull request Jan 2, 2016
@eXpl0it3r eXpl0it3r added the bug label Apr 12, 2021
@eXpl0it3r eXpl0it3r merged commit 4bb63c1 into thelaui:master Apr 12, 2021
@eXpl0it3r
Copy link
Collaborator

Thanks for the fix!

@SylvainBoilard SylvainBoilard deleted the fix_for_options branch April 13, 2021 21:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Repository Reactivation
Merged / Applied
Development

Successfully merging this pull request may close these issues.

None yet

2 participants