[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug libc/3748] New: Usage of `__libc_once' interface in `sysdeps/posix/
From: |
tschwinge at gnu dot org |
Subject: |
[Bug libc/3748] New: Usage of `__libc_once' interface in `sysdeps/posix/getaddrinfo.c' |
Date: |
18 Dec 2006 14:51:34 -0000 |
`sysdeps/posix/getaddrinfo.c' contains the following code:
#v+
2033 /* Read the config file. */
2034 __libc_once_define (static, once);
2035 __typeof (once) old_once = once;
2036 __libc_once (once, gaiconf_init);
2037 if (old_once && gaiconf_reload_flag)
2038 gaiconf_reload ();
#v-
In the `if' statement it is assumed that `old_once' is a scalar value, which
need not be, and that it is zero-initialized by default, which need not be
either, although unlikely.
I will attach a patch with a proposal to fix this issue.
--
Summary: Usage of `__libc_once' interface in
`sysdeps/posix/getaddrinfo.c'
Product: glibc
Version: 2.4
Status: NEW
Severity: normal
Priority: P2
Component: libc
AssignedTo: drepper at redhat dot com
ReportedBy: tschwinge at gnu dot org
CC: bug-hurd at gnu dot org,glibc-bugs at sources dot redhat
dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=3748
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
- [Bug libc/3748] New: Usage of `__libc_once' interface in `sysdeps/posix/getaddrinfo.c',
tschwinge at gnu dot org <=