Files
splinter/tools
lotherk 4507a3c57c i18n: a catalogue text is data, never a printf format
The interview note built its buffer with the translation as the format
string:
  snprintf(note, sizeof(note), sp_td("interview.saved", ...))
A '%' in a translation would be read as a conversion - clformat-security named it. The text goes through "%s" now.

tools/check_i18n.py grew the guard that keeps the shape out: a sp_t()/
sp_td() call may be the format only when arguments follow it; with none
behind it the conversions are unintended.

  clang -Wformat-security: 1 -> no warning at that call
  check_i18n with the bug restored: fires, rc=1
  check_i18n with the fix: ok (229 keys, 3 catalogues)
  make check: all tests passed, rc=0
2026-11-22 23:49:55 +00:00
..