2022-11-01 05:31:47 +08:00
|
|
|
diff --git a/src/core/ext/transport/chttp2/transport/hpack_parser.cc b/src/core/ext/transport/chttp2/transport/hpack_parser.cc
|
2024-06-22 04:39:50 +08:00
|
|
|
index 31bf464..d1007e4 100644
|
2022-11-01 05:31:47 +08:00
|
|
|
--- a/src/core/ext/transport/chttp2/transport/hpack_parser.cc
|
|
|
|
+++ b/src/core/ext/transport/chttp2/transport/hpack_parser.cc
|
2024-06-22 04:39:50 +08:00
|
|
|
@@ -689,7 +689,7 @@ class HPackParser::Parser {
|
|
|
|
}
|
2023-01-17 04:53:23 +08:00
|
|
|
|
2022-11-01 05:31:47 +08:00
|
|
|
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
|
2024-06-22 04:39:50 +08:00
|
|
|
index 6180ef1..a8e8110 100644
|
2022-11-01 05:31:47 +08:00
|
|
|
--- a/src/core/lib/slice/slice.cc
|
|
|
|
+++ b/src/core/lib/slice/slice.cc
|
2023-01-17 04:53:23 +08:00
|
|
|
@@ -188,6 +188,7 @@ grpc_slice grpc_slice_from_moved_buffer(grpc_core::UniquePtr<char> p,
|
2022-11-01 05:31:47 +08:00
|
|
|
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;
|
2023-01-17 04:53:23 +08:00
|
|
|
@@ -206,7 +207,7 @@ grpc_slice grpc_slice_from_moved_string(grpc_core::UniquePtr<char> p) {
|
2022-11-01 05:31:47 +08:00
|
|
|
}
|
2023-01-17 04:53:23 +08:00
|
|
|
|
2022-11-01 05:31:47 +08:00
|
|
|
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
|
2024-06-22 04:39:50 +08:00
|
|
|
index 3dda49d..202caa5 100644
|
2022-11-01 05:31:47 +08:00
|
|
|
--- a/src/core/lib/surface/server.cc
|
|
|
|
+++ b/src/core/lib/surface/server.cc
|
2024-06-22 04:39:50 +08:00
|
|
|
@@ -1057,7 +1057,7 @@ grpc_call_error Server::QueueRequestedCall(size_t cq_idx, RequestedCall* rc) {
|
2023-01-17 04:53:23 +08:00
|
|
|
FailCall(cq_idx, rc, GRPC_ERROR_CREATE("Server Shutdown"));
|
2022-11-01 05:31:47 +08:00
|
|
|
return GRPC_CALL_OK;
|
|
|
|
}
|
|
|
|
- RequestMatcherInterface* rm;
|
|
|
|
+ RequestMatcherInterface* rm = nullptr;
|
|
|
|
switch (rc->type) {
|
|
|
|
case RequestedCall::Type::BATCH_CALL:
|
|
|
|
rm = unregistered_request_matcher_.get();
|