Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Alexander_Naumov:SLE-12:Update
curl.10931
curl-CVE-2019-3822.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File curl-CVE-2019-3822.patch of Package curl.10931
From ea9e76bc934ace9e260ab3d99438320b1f2ef501 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg <daniel@haxx.se> Date: Thu, 3 Jan 2019 12:59:28 +0100 Subject: [PATCH 2/3] ntlm: fix *_type3_message size check to avoid buffer overflow --- lib/curl_ntlm_msgs.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) Index: curl-7.37.0/lib/curl_ntlm_msgs.c =================================================================== --- curl-7.37.0.orig/lib/curl_ntlm_msgs.c +++ curl-7.37.0/lib/curl_ntlm_msgs.c @@ -913,11 +913,14 @@ CURLcode Curl_ntlm_create_type3_message( }); #if USE_NTRESPONSES - if(size < (NTLM_BUFSIZE - ntresplen)) { - DEBUGASSERT(size == (size_t)ntrespoff); - memcpy(&ntlmbuf[size], ptr_ntresp, ntresplen); - size += ntresplen; + /* ntresplen + size should not be risking an integer overflow here */ + if(ntresplen + size > sizeof(ntlmbuf)) { + failf(data, "incoming NTLM message too big"); + return CURLE_OUT_OF_MEMORY; } + DEBUGASSERT(size == (size_t)ntrespoff); + memcpy(&ntlmbuf[size], ptr_ntresp, ntresplen); + size += ntresplen; DEBUG_OUT({ fprintf(stderr, "\n ntresp=");
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor