mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
thirdparty/vschannel: fix format string vulnerability (#10944)
This commit is contained in:
parent
1943da54a5
commit
76904719d0
2
thirdparty/vschannel/vschannel.c
vendored
2
thirdparty/vschannel/vschannel.c
vendored
@ -757,7 +757,7 @@ static SECURITY_STATUS https_make_request(TlsContext *tls_ctx, CHAR *req, CHAR *
|
|||||||
|
|
||||||
// Build HTTP request. Note that I'm assuming that this is less than
|
// Build HTTP request. Note that I'm assuming that this is less than
|
||||||
// the maximum message size. If it weren't, it would have to be broken up.
|
// the maximum message size. If it weren't, it would have to be broken up.
|
||||||
sprintf(pbMessage, req);
|
sprintf(pbMessage, "%s", req);
|
||||||
|
|
||||||
cbMessage = (DWORD)strlen(pbMessage);
|
cbMessage = (DWORD)strlen(pbMessage);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user