| commit | 94c78224015bfb461a124b994a78c37f8c2a3e34 | [log] [tgz] |
|---|---|---|
| author | Christian Göttsche <cgzones@googlemail.com> | Sat Jan 20 11:51:20 2024 +0100 |
| committer | BenBE <BenBE@geshi.org> | Thu Jan 25 10:03:26 2024 +0100 |
| tree | 56bec236e69248302b79a9548cf1aa4aaf323775 | |
| parent | 207db2e8f8874de7b8cfe43fa5ce7cb7c06b5097 [diff] |
Explicitly check sscanf(3) and fscanf(3) return values Compare the return value of sscanf(3) and fscanf(3) explicitly against the expected number of parsed items and avoid implicit boolean conversion. Such an implicit conversion would treat EOF (-1) the same as at least one item parsed successfully. Reported by CodeQL.