Skip to content

Commit ad659e2

Browse files
committed
DPL: fix off by one write
1 parent 9172e02 commit ad659e2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Framework/Core/src/HTTPParser.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ std::string encode_websocket_handshake_request(const char* endpoint, const char*
188188
std::string HTTPParserHelpers::calculateAccept(const char* nonce)
189189
{
190190
std::string reply = std::string(nonce) + "258EAFA5-E914-47DA-95CA-C5AB0DC85B11";
191-
char sha[20];
191+
char sha[21];
192192
SHA1(sha, reply.data(), reply.size());
193193
char base[64];
194194
base64_encode(base, 64, (unsigned char*)sha, 20);

0 commit comments

Comments
 (0)