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

bjoentegaard freezing if invalid parameters has been supplied #444

Open
eirnym opened this issue Feb 5, 2024 · 0 comments
Open

bjoentegaard freezing if invalid parameters has been supplied #444

eirnym opened this issue Feb 5, 2024 · 0 comments

Comments

@eirnym
Copy link

eirnym commented Feb 5, 2024

Hi,

bjoentegaard app freezez if invalid parameters has been supplied.

getopt documetation states following

     The getopt() function returns the next known option character in optstring.  If getopt() encounters a character not found in optstring or if it detects a
     missing option argument, it returns ‘?’ (question mark).  If optstring has a leading ‘:’ then a missing option argument causes ‘:’ to be returned instead of
     ‘?’.  In either case, the variable optopt is set to the character that caused the error.  The getopt() function returns -1 when the argument list is
     exhausted.

This means that application won't know that parameters were invalid.

I suspect, that other applications in this repository should be audited as well.

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

No branches or pull requests

1 participant