Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12:Update
libcares2
CVE-2022-4904.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File CVE-2022-4904.patch of Package libcares2
Index: c-ares-1.9.1/ares_init.c =================================================================== --- c-ares-1.9.1.orig/ares_init.c +++ c-ares-1.9.1/ares_init.c @@ -1610,6 +1610,8 @@ static int config_sortlist(struct apatte q = str; while (*q && *q != '/' && *q != ';' && !ISSPACE(*q)) q++; + if (q-str >= 16) + return ARES_EBADSTR; memcpy(ipbuf, str, q-str); ipbuf[q-str] = '\0'; /* Find the prefix */ @@ -1618,6 +1620,8 @@ static int config_sortlist(struct apatte const char *str2 = q+1; while (*q && *q != ';' && !ISSPACE(*q)) q++; + if (q-str >= 32) + return ARES_EBADSTR; memcpy(ipbufpfx, str, q-str); ipbufpfx[q-str] = '\0'; str = str2;
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