Files
Nim/lib
cui 9261d36def fixes #25674; parsecfg: bound-check CR/LF pair in replace() (#25675)
Fixes bug #25674.

`replace` read `s[i+1]` for a CRLF pair without ensuring `i+1 <
s.len()`, so a value ending in a lone `\\c` (quoted in `writeConfig`)
raised `IndexDefect`.

- Fix: only treat `\\c\\l` when the following character exists.
- Test: `tests/stdlib/tparsecfg.nim` block bug #25674 — fails before
fix, passes after.

(cherry picked from commit 78282b241f)
2026-03-30 15:10:12 +02:00
..
2017-02-20 17:24:19 +02:00
2026-02-21 12:58:25 +01:00
2013-03-16 23:53:07 +01:00
2021-06-03 14:00:53 +02:00