Files
archie/internal/memory
sam d48953d9e7 fix: Flush() leaking in-block content when stream ends mid-close-tag
Pending bytes buffered while inside a <memory> block were unconditionally
emitted as literal text by Flush, leaking hidden memory-context content
into visible streamed output when a stream cut off mid-tag (e.g. "...secret</mem").
Track pendingInBlock at capture time so Flush discards in-block pending
bytes instead of emitting them. Also corrects stale doc comments claiming
underlying writer errors are surfaced (they're intentionally discarded).

Found by adversarial review of 18.10.
2026-07-26 02:11:28 +10:00
..