Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP1:GA
libcares2.32783
CVE-2024-25629.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File CVE-2024-25629.patch of Package libcares2.32783
ported from: From a804c04ddc8245fc8adf0e92368709639125e183 Mon Sep 17 00:00:00 2001 From: Brad House <brad@brad-house.com> Date: Thu, 22 Feb 2024 16:23:33 -0500 Subject: [PATCH] Merge pull request from GHSA-mg26-v6qh-x48q --- src/lib/ares__read_line.c | 8 ++++++++ 1 file changed, 8 insertions(+) Index: c-ares-1.9.1/ares__read_line.c =================================================================== --- c-ares-1.9.1.orig/ares__read_line.c +++ c-ares-1.9.1/ares__read_line.c @@ -51,6 +51,14 @@ int ares__read_line(FILE *fp, char **buf if (!fgets(*buf + offset, bytestoread, fp)) return (offset != 0) ? 0 : (ferror(fp)) ? ARES_EFILE : ARES_EOF; len = offset + strlen(*buf + offset); + + /* Probably means there was an embedded NULL as the first character in + * the line, throw away line */ + if (len == 0) { + offset = 0; + continue; + } + if ((*buf)[len - 1] == '\n') { (*buf)[len - 1] = 0;
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