-
Notifications
You must be signed in to change notification settings - Fork 15.6k
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
Fix some UBSAN warnings. #5901
Fix some UBSAN warnings. #5901
Conversation
* external/com_google_protobuf/src/google/protobuf/stubs/strutil.cc:1122:9: runtime error: negation of -9223372036854775808 cannot be represented in type 'google::protobuf::int64' (aka 'long'); cast to an unsigned type to negate this value to itself * Bad external/com_google_protobuf/src/google/protobuf/text_format.cc:1320:14: runtime error: null pointer passed as argument 1, which is declared to never be null /usr/include/string.h:62:62: note: nonnull attribute specified here Signed-off-by: Harvey Tuch <[email protected]>
Fix in progress at protocolbuffers/protobuf#5901, we might not update Envoy with it for a while. Signed-off-by: Harvey Tuch <[email protected]>
Fix in progress at protocolbuffers/protobuf#5901, we might not update Envoy with it for a while. Signed-off-by: Harvey Tuch <[email protected]>
@htuch If you don't mind could you either rebase this onto master or merge master into your branch? The Linux Ruby 2.6 test shows a strange crash. I don't see how it could be related to this pull request but maybe it's a separate issue that has since been fixed. For the other test failure (MacOS Ruby 2.3), let's not worry about that because I have a separate fix that just needs to be merged. |
@aconchillo done |
Thanks @htuch! |
Since envoyproxy#6610 the fuzzer build has been broken. This is due to the interaction of rules_foreign_cc external dependencies and the additional UBSAN blacklist maintained by the oss-fuzz driver to workaround the fact we don't have protocolbuffers/protobuf#5901 yet. Thir PR moves protocolbuffers/protobuf#5901 into Envoy proper and hence we don't need an UBSAN blacklist in the oss-fuzz driver anymore. Risk level: Low Tesitng: oss-fuzz Docker build. Signed-off-by: Harvey Tuch <[email protected]>
Since #6610 the fuzzer build has been broken. This is due to the interaction of rules_foreign_cc external dependencies and the additional UBSAN blacklist maintained by the oss-fuzz driver to workaround the fact we don't have protocolbuffers/protobuf#5901 yet. This PR moves protocolbuffers/protobuf#5901 into Envoy proper and hence we don't need an UBSAN blacklist in the oss-fuzz driver anymore. Risk level: Low Tesitng: oss-fuzz Docker build. Signed-off-by: Harvey Tuch <[email protected]>
Since envoyproxy#6610 the fuzzer build has been broken. This is due to the interaction of rules_foreign_cc external dependencies and the additional UBSAN blacklist maintained by the oss-fuzz driver to workaround the fact we don't have protocolbuffers/protobuf#5901 yet. This PR moves protocolbuffers/protobuf#5901 into Envoy proper and hence we don't need an UBSAN blacklist in the oss-fuzz driver anymore. Risk level: Low Tesitng: oss-fuzz Docker build. Signed-off-by: Harvey Tuch <[email protected]> Signed-off-by: Jeff Piazza <[email protected]>
external/com_google_protobuf/src/google/protobuf/stubs/strutil.cc:1122:9: runtime error: negation of -9223372036854775808 cannot be represented in type 'google::protobuf::int64' (aka 'long'); cast to an unsigned type to negate this value to itself
Bad external/com_google_protobuf/src/google/protobuf/text_format.cc:1320:14: runtime error: null pointer passed as argument 1, which is declared to never be null
/usr/include/string.h:62:62: note: nonnull attribute specified here
Signed-off-by: Harvey Tuch [email protected]