SL-10948: Fix for crash in llcorehttp/_httplibcurl.cpp.
The crash can appear on some non-windows platforms (any LP64 model platforms). Depending on alignment this can overwrite one word of the pointer `op` declared above. Subsequently it will crash when later writing to memory through that pointermaster
parent
e4a244a6cb
commit
6f9ea467c2
|
|
@ -355,7 +355,8 @@ bool HttpLibcurl::completeRequest(CURLM * multi_handle, CURL * handle, CURLcode
|
|||
}
|
||||
if (op->mStatus)
|
||||
{
|
||||
int http_status(HTTP_OK);
|
||||
// note: CURLINFO_RESPONSE_CODE requires a long - https://curl.haxx.se/libcurl/c/CURLINFO_RESPONSE_CODE.html
|
||||
long http_status(HTTP_OK);
|
||||
|
||||
if (handle)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue