mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-20 13:23:51 -07:00
coverity 71844 - fix untrusted value. fgets could have nulled the pointer.
This commit is contained in:
parent
1ec34e00b6
commit
8842421422
1 changed files with 2 additions and 0 deletions
|
@ -160,6 +160,8 @@ check_script:
|
||||||
if (!fgets(script_cmd_buf, sizeof(script_cmd_buf), current_cmdscriptfile())) {
|
if (!fgets(script_cmd_buf, sizeof(script_cmd_buf), current_cmdscriptfile())) {
|
||||||
if (!pop_cmdscriptfile())
|
if (!pop_cmdscriptfile())
|
||||||
break;
|
break;
|
||||||
|
if (script_cmd_buf == NULL)
|
||||||
|
break;
|
||||||
goto check_script;
|
goto check_script;
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue