Skip to content

Conversation

@tamayika
Copy link

closes #146

Adding string utf-8 validation.
This change makes vtprotobuf to align the other protobuf implementations.(e.g. protobuf-go, protobuf-cpp, etc)

@mattrobenolt
Copy link
Member

If we did introduce this, it would have to be done as a flag to opt into this behavior since it's a breaking change. Even tho it's more correct, people (including us unfortunately) depend on this incorrect behavior. This originally came from the gogoproto implementation which also did not validate for UTF-8 strings.

But as is, this absolutely would break Vitess.

@tamayika
Copy link
Author

Thank you for the review!

I added generator option to keep the current behavior.

@tamayika
Copy link
Author

@mattrobenolt
I'm sorry to bother you, but could you please review it again?

@tamayika
Copy link
Author

@mattrobenolt
I'm sorry to bother you again, but could you please review it again?

@tamayika
Copy link
Author

tamayika commented Aug 2, 2025

@mattrobenolt @vmg
I'm sorry to bother you again, but could you please review it again?

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.

Invalid UTF-8 in strings are not rejected

2 participants