-
Notifications
You must be signed in to change notification settings - Fork 123
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
String field xxx contains invalid UTF-8 data when serializing a protocol buffer #197
Comments
I guess documentation is misleading https://github.com/google/libprotobuf-mutator#usage Lib is actively used and supported for https://github.com/google/libprotobuf-mutator#integrating-with-libfuzzer |
Is this a proto2 or proto3 |
It's proto3 and the message is empty. |
proto3 should enforce well-formed UTF-8 according to what commit 3fc43a0 added to the readme 🤔 |
How to fix the error below when I call mutator.Mutate(&message, 4096);
[libprotobuf ERROR google/protobuf/wire_format_lite.cc:577] String field 'xxxxx' contains invalid UTF-8 data when serializing a protocol buffer. Use the 'bytes' type if you intend to send raw bytes.
The text was updated successfully, but these errors were encountered: