[Bug build/22446] New: aliasing violation calling readlink in handle_request
msebor at gmail dot com
sourceware-bugzilla@sourceware.org
Thu Nov 16 21:10:00 GMT 2017
https://sourceware.org/bugzilla/show_bug.cgi?id=22446
Bug ID: 22446
Summary: aliasing violation calling readlink in handle_request
Product: glibc
Version: 2.25
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: build
Assignee: unassigned at sourceware dot org
Reporter: msebor at gmail dot com
CC: carlos at redhat dot com
Target Milestone: ---
Testing a GCC 8.0 patch to detect strict aliasing violations with Glibc turns
up the following warning (the only in an x86_64-linux build):
connections.c: In function ‘handle_request’:
connections.c:1087:31: warning: passing argument 2 to restrict-qualified
parameter aliases with argument 1 [-Wrestrict]
ssize_t n = readlink (buf, buf, sizeof (buf) - 1);
~~~ ^~~
POSIX readlink restrict-qualifies both of its pointer arguments.
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Glibc-bugs
mailing list