Skip to content

skip return true if the end of the stream is reached#3242

Open
x1wan wants to merge 1 commit intoapache:masterfrom
x1wan:bugfix/deserialize_skip_fail
Open

skip return true if the end of the stream is reached#3242
x1wan wants to merge 1 commit intoapache:masterfrom
x1wan:bugfix/deserialize_skip_fail

Conversation

@x1wan
Copy link

@x1wan x1wan commented Mar 11, 2026

What problem does this PR solve?

Issue Number: 3207

Problem Summary: ParsePbFromIOBuf fail when skip reach the end of the stream

What is changed and the side effects?

Changed: skip return true if the end of the stream is reached

Side effects:

  • Performance effects: no effect

  • Breaking backward compatibility: no


Check List:

@wwbmmm
Copy link
Contributor

wwbmmm commented Mar 11, 2026

LGTM

// reached or some input error occurred. In the end-of-stream case, the
// stream is advanced to the end of the stream (so ByteCount() will return
// the total size of the stream).
// Skips a number of bytes. Return false if some input error occurred.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please update the comment with protocolbuffers/protobuf@ab25c3e .

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.

3 participants