Skip to content

Sanitize the fallback filename when processing messages - #1605

Merged
dneto0 merged 1 commit into
google:mainfrom
dneto0:msg-blowup
Oct 1, 2026
Merged

dneto0 merged 1 commit into
google:mainfrom
dneto0:msg-blowup

Conversation

@dneto0

@dneto0 dneto0 commented Oct 1, 2026

Copy link
Copy Markdown
Collaborator

Message processing can blow up in memory allocations if the user-specified filename contains newlines or if it is too long,.

When printing messages, cut off the user-specified name at the first newline or after 1KB.

Google-internal bug: 544299203

Message processing can blow up in memory allocations
if the user-specified filename contains newlines or if
it is too long,.

When printing messages, cut off the user-specified name
at the first newline or after 1KB.

Google-internal bug: 544299203
@dneto0
dneto0 requested a review from dj2 October 1, 2026 19:43
@dneto0
dneto0 enabled auto-merge (rebase) October 1, 2026 19:45
@dneto0
dneto0 merged commit ca9558b into google:main Oct 1, 2026
25 checks passed
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.

2 participants