mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-30 10:39:02 +08:00
0cb819175b
* Update gRPC to 1.46.3 and upb to 2022-06-01 * fix(upb): Ensure that protoc-gen-upb has been build before running protobuf_generate. Also add license to vcpkg.json * fix(upb): Let abseil propagate cxx_std_11. Build upb codegen tools in host triplet * Revert abseil's cxx_std propagation * fix(upb): Attempt to fix missing -std=c++11 flag when compiling x64-osx * Downgrade upb to the version used by gRPC. No longer installed generated descriptor.upb.h files just to use them when compiling target triplet * Remove absl-sync patch from gRPC since it is always enabled by default now * Use vcpkg's upb library in gRPC instead of embedded one. Also fix gRPC's pkgconfig patch * grpc: Remove the upb::all_libs target * grpc: Adjust versions json * upb: Adjust versions json * Set feature absl-sync as deprecated * version Co-authored-by: JackBoosY <yuzaiyang@beyondsoft.com>
48 lines
2.0 KiB
Diff
48 lines
2.0 KiB
Diff
diff --git a/src/core/ext/transport/chttp2/transport/hpack_parser.cc b/src/core/ext/transport/chttp2/transport/hpack_parser.cc
|
|
index cb17759bba..a3c3598430 100644
|
|
--- a/src/core/ext/transport/chttp2/transport/hpack_parser.cc
|
|
+++ b/src/core/ext/transport/chttp2/transport/hpack_parser.cc
|
|
@@ -1032,7 +1032,7 @@ class HPackParser::Parser {
|
|
|
|
private:
|
|
void GPR_ATTRIBUTE_NOINLINE LogHeader(const HPackTable::Memento& memento) {
|
|
- const char* type;
|
|
+ const char* type = nullptr;
|
|
switch (log_info_.type) {
|
|
case LogInfo::kHeaders:
|
|
type = "HDR";
|
|
diff --git a/src/core/lib/slice/slice.cc b/src/core/lib/slice/slice.cc
|
|
index 2e78b4de9e..77e88cab70 100644
|
|
--- a/src/core/lib/slice/slice.cc
|
|
+++ b/src/core/lib/slice/slice.cc
|
|
@@ -181,6 +181,7 @@ grpc_slice grpc_slice_from_moved_buffer(grpc_core::UniquePtr<char> p,
|
|
size_t len) {
|
|
uint8_t* ptr = reinterpret_cast<uint8_t*>(p.get());
|
|
grpc_slice slice;
|
|
+ memset(&slice, 0, sizeof(grpc_slice));
|
|
if (len <= sizeof(slice.data.inlined.bytes)) {
|
|
slice.refcount = nullptr;
|
|
slice.data.inlined.length = len;
|
|
@@ -199,7 +200,7 @@ grpc_slice grpc_slice_from_moved_string(grpc_core::UniquePtr<char> p) {
|
|
}
|
|
|
|
grpc_slice grpc_slice_from_cpp_string(std::string str) {
|
|
- grpc_slice slice;
|
|
+ grpc_slice slice = { 0 };
|
|
if (str.size() <= sizeof(slice.data.inlined.bytes)) {
|
|
slice.refcount = nullptr;
|
|
slice.data.inlined.length = str.size();
|
|
diff --git a/src/core/lib/surface/server.cc b/src/core/lib/surface/server.cc
|
|
index 4c0220837e..bb5a367107 100644
|
|
--- a/src/core/lib/surface/server.cc
|
|
+++ b/src/core/lib/surface/server.cc
|
|
@@ -902,7 +902,7 @@ grpc_call_error Server::QueueRequestedCall(size_t cq_idx, RequestedCall* rc) {
|
|
GRPC_ERROR_CREATE_FROM_STATIC_STRING("Server Shutdown"));
|
|
return GRPC_CALL_OK;
|
|
}
|
|
- RequestMatcherInterface* rm;
|
|
+ RequestMatcherInterface* rm = nullptr;
|
|
switch (rc->type) {
|
|
case RequestedCall::Type::BATCH_CALL:
|
|
rm = unregistered_request_matcher_.get();
|