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.
Hi,
bjoentegaardapp freezez if invalid parameters has been supplied.getoptdocumetation states followingThis means that application won't know that parameters were invalid.
I suspect, that other applications in this repository should be audited as well.