Files
codex-security/plugins
e2673d7f13 fix(threat-model): count only CR and LF as assessment line breaks (#2147)
* fix(threat-model): count only CR and LF as assessment line breaks

The explorer validated evidence line ranges against
assessment.splitlines(), which also breaks lines at form feeds and
Unicode line separators. An assessment containing one of those shifted
the numbering, so a correct range was rejected and a wrong one accepted.
Split only on CR, LF and CRLF, like the finding source excerpts do.

* refactor(threat-model): validate evidence against assessment bytes

* test(explorer): cover Unicode separators in assessment evidence ranges

---------

Co-authored-by: Michael D'Angelo <269034524+mldangelo-oai@users.noreply.github.com>
Co-authored-by: Michael D'Angelo <mdangelo@openai.com>
2026-10-30 11:35:42 -07:00
..