Code scanning findings #1

closed gitbay-bot opened this on 2026-11-01 04:03 UTC

Discussion

gitbay-bot 2026-11-01 04:03 UTC

The scheduled code scan of main reported these findings. This issue is kept up to date as that changes, and closed once a scan reports none.

Opengrep OSS

  • c/guess.c:27 opt.opengrep-rules.c.lang.correctness.incorrect-use-ato-fn (warning): Avoid the 'ato*()' family of functions. Their use can lead to undefined behavior, integer overflows, and lack of appropriate error handling. Instead prefer the 'strtol*()' family of functions.
  • python/cat.py:10 opt.opengrep-rules.python.lang.best-practice.unspecified-open-encoding (warning): Missing 'encoding' parameter. 'open()' uses device locale encodings by default, corrupting files with special characters. Specify the encoding to ensure cross-platform support when opening files in te…

referenced in commit 9b2d2f2e13 by cmc: Use strtol in guess.c; open file as UTF-8 in cat.py

2026-11-01 05:48 UTC