Improved the CLI a bit. #18
9 new issues (0 max.) of at least minor severity.
Annotations
Check notice on line 64 in src/cli/main.c
codacy-production / Codacy Static Code Analysis
src/cli/main.c#L64
Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126).
Check failure on line 64 in src/cli/main.c
codacy-production / Codacy Static Code Analysis
src/cli/main.c#L64
The `strlen` family of functions does not handle strings that are not null terminated.
Check warning on line 75 in src/cli/main.c
codacy-production / Codacy Static Code Analysis
src/cli/main.c#L75
Usage of the `open` family of functions may hint at a potential Time Of Check Time Of Use (TOCTOU) vulnerability.
Check warning on line 78 in src/cli/main.c
codacy-production / Codacy Static Code Analysis
src/cli/main.c#L78
Avoid using user-controlled format strings passed into 'sprintf', 'printf' and 'vsprintf'. These functions put you at risk of buffer overflow vulnerabilities through the use of format string exploits.
Check warning on line 121 in src/cli/main.c
codacy-production / Codacy Static Code Analysis
src/cli/main.c#L121
Usage of the `open` family of functions may hint at a potential Time Of Check Time Of Use (TOCTOU) vulnerability.
Check notice on line 128 in src/cli/main.c
codacy-production / Codacy Static Code Analysis
src/cli/main.c#L128
Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126).
Check failure on line 128 in src/cli/main.c
codacy-production / Codacy Static Code Analysis
src/cli/main.c#L128
The `strlen` family of functions does not handle strings that are not null terminated.
Check notice on line 136 in src/cli/main.c
codacy-production / Codacy Static Code Analysis
src/cli/main.c#L136
Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126).
Check failure on line 136 in src/cli/main.c
codacy-production / Codacy Static Code Analysis
src/cli/main.c#L136
The `strlen` family of functions does not handle strings that are not null terminated.