This commit is contained in:
J. Nick Koston
2026-01-20 12:51:57 -10:00
parent cfa9c3ed49
commit 935b4c3788

View File

@@ -371,6 +371,7 @@ void APINoiseFrameHelper::send_explicit_handshake_reject_(const LogString *reaso
const char *reason_str = LOG_STR_ARG(reason);
size_t reason_len = strlen(reason_str);
if (reason_len > 0) {
// NOLINTNEXTLINE(bugprone-not-null-terminated-result) - binary protocol, not a C string
std::memcpy(data + 1, reason_str, reason_len);
}
#endif