Skip to content

UPSTREAM PR #26911: Chunk oversized JSON string writes in JsonToBinaryStream#143

Open
loci-dev wants to merge 5 commits intomainfrom
loci/pr-26911-fix-json-to-binary-intmax-v2
Open

UPSTREAM PR #26911: Chunk oversized JSON string writes in JsonToBinaryStream#143
loci-dev wants to merge 5 commits intomainfrom
loci/pr-26911-fix-json-to-binary-intmax-v2

Conversation

@loci-dev
Copy link
Copy Markdown

Note

Source pull request: protocolbuffers/protobuf#26911

This change avoids oversized raw writes in the proto3 JSON-to-binary streaming path.

Changes:

  • chunk oversized writes in ParseProto3Type::SetString() instead of passing a size_t length directly into WriteRaw(const void*, int)
  • add a focused regression test for the chunking behavior at the INT_MAX + 1 boundary

@loci-review
Copy link
Copy Markdown

loci-review Bot commented Apr 15, 2026

No meaningful performance changes were detected across 10167 analyzed functions in the following binaries: build.protoc-stable.

💬 Questions? Tag @loci-dev

@loci-dev loci-dev force-pushed the main branch 5 times, most recently from 2b89f87 to 2f65a6e Compare April 16, 2026 12:52
@loci-review
Copy link
Copy Markdown

loci-review Bot commented Apr 16, 2026

The analysis encountered an error. Please review the Processing Details for more information.

@loci-dev loci-dev force-pushed the main branch 4 times, most recently from d240c24 to 2896021 Compare April 16, 2026 21:45
@loci-dev loci-dev force-pushed the main branch 13 times, most recently from 1f11459 to 0b4c478 Compare April 21, 2026 02:16
@loci-dev loci-dev force-pushed the main branch 6 times, most recently from 572a288 to d3dd64f Compare April 23, 2026 02:16
@loci-review
Copy link
Copy Markdown

loci-review Bot commented Apr 23, 2026

No meaningful performance changes were detected across 10160 analyzed functions in the following binaries: build.protoc-stable.

💬 Questions? Tag @loci-dev

@loci-dev loci-dev force-pushed the main branch 11 times, most recently from 75c1917 to ec8c960 Compare April 24, 2026 21:45
@loci-review
Copy link
Copy Markdown

loci-review Bot commented Apr 25, 2026

No meaningful performance changes were detected across 10160 analyzed functions in the following binaries: build.protoc-stable.

💬 Questions? Tag @loci-dev

@loci-dev loci-dev force-pushed the main branch 7 times, most recently from f292971 to 1fdfb93 Compare April 29, 2026 07:16
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