mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
parent
46f11218c6
commit
52d8ef5719
11
r5dev/thirdparty/curl/vauth/ntlm.c
vendored
11
r5dev/thirdparty/curl/vauth/ntlm.c
vendored
@ -769,11 +769,14 @@ CURLcode Curl_auth_create_ntlm_type3_message(struct Curl_easy *data,
|
|||||||
});
|
});
|
||||||
|
|
||||||
#ifdef USE_NTRESPONSES
|
#ifdef USE_NTRESPONSES
|
||||||
if(size < (NTLM_BUFSIZE - ntresplen)) {
|
/* ntresplen + size should not be risking an integer overflow here */
|
||||||
DEBUGASSERT(size == (size_t)ntrespoff);
|
if(ntresplen + size > sizeof(ntlmbuf)) {
|
||||||
memcpy(&ntlmbuf[size], ptr_ntresp, ntresplen);
|
failf(data, "incoming NTLM message too big");
|
||||||
size += ntresplen;
|
return CURLE_OUT_OF_MEMORY;
|
||||||
}
|
}
|
||||||
|
DEBUGASSERT(size == (size_t)ntrespoff);
|
||||||
|
memcpy(&ntlmbuf[size], ptr_ntresp, ntresplen);
|
||||||
|
size += ntresplen;
|
||||||
|
|
||||||
DEBUG_OUT({
|
DEBUG_OUT({
|
||||||
fprintf(stderr, "\n ntresp=");
|
fprintf(stderr, "\n ntresp=");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user