Skip to content

sysinfo: stop silently truncating oversized journal entries - #640

Open
sfc-gh-ikryvanos wants to merge 1 commit into
mainfrom
fix/journal-large-entry
Open

sysinfo: stop silently truncating oversized journal entries#640
sfc-gh-ikryvanos wants to merge 1 commit into
mainfrom
fix/journal-large-entry

Conversation

@sfc-gh-ikryvanos

Copy link
Copy Markdown
Collaborator

bufio.Scanner's 64 KiB token cap made Scan stop on an oversized journal entry (bufio.ErrTooLong was never surfaced), silently dropping the remainder of the stream and enabling audit evasion. Read whole lines with no fixed cap, emit an explicit truncation marker when a single entry exceeds the per-entry limit, and fail loud on read errors instead of stopping silently.

bufio.Scanner's 64 KiB token cap made Scan stop on an oversized journal entry
(bufio.ErrTooLong was never surfaced), silently dropping the remainder of the
stream and enabling audit evasion. Read whole lines with no fixed cap, emit an
explicit truncation marker when a single entry exceeds the per-entry limit, and
fail loud on read errors instead of stopping silently.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant