-
Notifications
You must be signed in to change notification settings - Fork 184
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'IB/CMSSW_11_3_X/rootmaster' into mrodozov-patch-1
- Loading branch information
Showing
12 changed files
with
74 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
--- a/src/core/tsi/ssl_transport_security.cc 2021-02-24 07:48:45.470971187 +0100 | ||
+++ b/src/core/tsi/ssl_transport_security.cc 2021-02-23 13:06:20.469007951 +0100 | ||
@@ -553,7 +553,7 @@ | ||
X509* certificate = nullptr; | ||
BIO* pem; | ||
GPR_ASSERT(pem_cert_chain_size <= INT_MAX); | ||
- pem = BIO_new_mem_buf(pem_cert_chain, static_cast<int>(pem_cert_chain_size)); | ||
+ pem = BIO_new_mem_buf((void*)pem_cert_chain, static_cast<int>(pem_cert_chain_size)); | ||
if (pem == nullptr) return TSI_OUT_OF_RESOURCES; | ||
|
||
do { | ||
@@ -673,7 +673,7 @@ | ||
EVP_PKEY* private_key = nullptr; | ||
BIO* pem; | ||
GPR_ASSERT(pem_key_size <= INT_MAX); | ||
- pem = BIO_new_mem_buf(pem_key, static_cast<int>(pem_key_size)); | ||
+ pem = BIO_new_mem_buf((void*)pem_key, static_cast<int>(pem_key_size)); | ||
if (pem == nullptr) return TSI_OUT_OF_RESOURCES; | ||
do { | ||
private_key = | ||
@@ -718,7 +718,7 @@ | ||
X509_NAME* root_name = nullptr; | ||
BIO* pem; | ||
GPR_ASSERT(pem_roots_size <= INT_MAX); | ||
- pem = BIO_new_mem_buf(pem_roots, static_cast<int>(pem_roots_size)); | ||
+ pem = BIO_new_mem_buf((void*)pem_roots, static_cast<int>(pem_roots_size)); | ||
if (cert_store == nullptr) return TSI_INVALID_ARGUMENT; | ||
if (pem == nullptr) return TSI_OUT_OF_RESOURCES; | ||
if (root_names != nullptr) { | ||
@@ -837,7 +837,7 @@ | ||
tsi_result result = TSI_OK; | ||
X509* cert = nullptr; | ||
BIO* pem; | ||
- pem = BIO_new_mem_buf(pem_cert, static_cast<int>(strlen(pem_cert))); | ||
+ pem = BIO_new_mem_buf((void*)pem_cert, static_cast<int>(strlen(pem_cert))); | ||
if (pem == nullptr) return TSI_OUT_OF_RESOURCES; | ||
|
||
cert = PEM_read_bio_X509(pem, nullptr, nullptr, const_cast<char*>("")); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
diff --git a/src/google/protobuf/parse_context.h b/src/google/protobuf/parse_context.h | ||
index 7966d99d57..3754f983b1 100644 | ||
--- a/src/google/protobuf/parse_context.h | ||
+++ b/src/google/protobuf/parse_context.h | ||
@@ -348,7 +348,6 @@ class PROTOBUF_EXPORT EpsCopyInputStream { | ||
if (ptr - buffer_end_ > limit_) return nullptr; | ||
while (limit_ > kSlopBytes) { | ||
size_t chunk_size = buffer_end_ + kSlopBytes - ptr; | ||
- GOOGLE_DCHECK_GE(chunk_size, static_cast<size_t>(0)); | ||
append(ptr, chunk_size); | ||
ptr = Next(); | ||
if (ptr == nullptr) return limit_end_; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters