Skip to content

bjoentegaard freezing if invalid parameters has been supplied #444

Description

@eirnym

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions