commit 55ebd06f4658540c554f709b3665486b39222792
parent f5532cb5aef18e93b4766bb57ee38233bf17876b
Author: David Goulet <dgoulet@torproject.org>
Date: Mon, 15 Sep 2025 13:04:54 -0400
relay: Zeroed a stack allocated relay msg struct
Following 63332eb3e711786f (MR 926), just more defense in depth for our future
selves.
Related to #41123
Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/core/or/relay.c b/src/core/or/relay.c
@@ -609,7 +609,7 @@ relay_send_command_from_edge_,(streamid_t stream_id, circuit_t *orig_circ,
size_t msg_body_len;
{
relay_cell_fmt_t cell_format = circuit_get_relay_format(circ, cpath_layer);
- relay_msg_t msg;
+ relay_msg_t msg = {0};
if (payload_len >
relay_cell_max_payload_size(cell_format, relay_command)) {
// TODO CGO: Rate-limit this?