Skip to content
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

CreateSharedString does not support embedded null bytes [C++, gcc 7.3, macOS, v1.9.0] #5058

Closed
mhfrantz opened this issue Nov 20, 2018 · 2 comments
Labels

Comments

@mhfrantz
Copy link
Contributor

The description of FlatBufferBuilder::CreateSharedString includes the phrase "Store a string in the buffer, which can contain any binary data." However, the StringOffsetCompare class uses strncmp instead of memcmp, so it will stop comparing on the first null byte.

@stale
Copy link

stale bot commented Jul 27, 2019

This issue has been automatically marked as stale because it has not had activity for 6 months. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Jul 27, 2019
@mhfrantz
Copy link
Contributor Author

Fixed by #5060

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant