bebenlebricolo / bebenlebricolo/FreeMyCode

Input is not robust (Command Line Interface)

Open
#8 0 comments 0 reactions 1 assignee Claimed by @bebenlebricolo View on GitHub
bug invalid
Dominant language
C++
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.