This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug dynamic-link/20817] New: dlerror uses strerror in a thread-unsafe manner
- From: "fweimer at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Mon, 14 Nov 2016 12:34:12 +0000
- Subject: [Bug dynamic-link/20817] New: dlerror uses strerror in a thread-unsafe manner
- Auto-submitted: auto-generated
https://sourceware.org/bugzilla/show_bug.cgi?id=20817
Bug ID: 20817
Summary: dlerror uses strerror in a thread-unsafe manner
Product: glibc
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: dynamic-link
Assignee: unassigned at sourceware dot org
Reporter: fweimer at redhat dot com
Target Milestone: ---
Flags: security-
dlerror does this:
n = __asprintf (&buf, "%s%s%s: %s",
result->objname,
result->objname[0] == '\0' ? "" : ": ",
_(result->errstring),
strerror (result->errcode));
strerror is not thread-safe, and the could should assign errno and use %m.
--
You are receiving this mail because:
You are on the CC list for the bug.