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
Use case :
-> Send random stuff to executable, wait for it...... crash!
$ FreeMyCode ùaekmkf anefjia cjdqsicoParser should be tuned to avoid such crashes
Crash occurs :
-> parser should have told FreeMyCode to abort execution before.
Possible solution :
Check inputs BEFORE trying to access it.
-> Parser should return an error (false) as soon as it detects an error in CLI