Closed gsnw closed 2 months ago
Fix issue #324
sscanf()
returns EOF
when used with an empty string as input. This can be given as option argument, e.g., using fping -t '' …
. Without the pull request, fping
does not catch this invalid option argument.
I have looked at the changes again, IMHO they are "obviously correct", so I'll just go ahead and merge this. @schweikert: Please let me know if this is OK.
Looks good to me as well. Thanks!
This pull request fix the codeql security CWE-253 alert
Incorrect return-value check for a 'scanf'-like function