parsimony/internal/mbox
Repository files (latest commit first)
Filename Latest commit message Latest commit date
tgiachi 9968c3b70f fix(mbox): stop buffering a line beyond the size limit
- readLine now holds at most max(limit+1, 1024) bytes of a line and reports its full
  length; the rest is read and thrown away, so a single 25 MiB line is no longer read whole.
- The message size is counted from the reported line lengths (after restoring >From),
  so the limit is unchanged for normal input.
- Tests: a line over the limit mid-file, at the end of the input and before the first
  separator, long lines under the limit, a tiny limit, exact boundary, readLine itself.
2026-11-10 11:53:32 +01:00
..
mbox.go fix(mbox): stop buffering a line beyond the size limit 2026-11-10 11:53:32 +01:00
mbox_test.go fix(mbox): stop buffering a line beyond the size limit 2026-11-10 11:53:32 +01:00