Skip to content

Input is not robust (Command Line Interface) #8

@bebenlebricolo

Description

@bebenlebricolo

Use case :
-> Send random stuff to executable, wait for it...... crash!

$ FreeMyCode ùaekmkf anefjia cjdqsico

Parser should be tuned to avoid such crashes
Crash occurs :

  • Input is filled with crap (parser)
  • All arguments are not filled (3 of them are filled )
  • logger tries to access to logfile (which is empty at this time)
    -> parser should have told FreeMyCode to abort execution before.

Possible solution :
Check inputs BEFORE trying to access it.

  • Inputs are already checked, but in the FreeMyCode.cpp scope, not in the parser's scope
    -> Parser should return an error (false) as soon as it detects an error in CLI

Metadata

Metadata

Labels

bugSomething isn't workinginvalidThis doesn't seem right

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions