This is sources Bugzilla
Bugzilla Version 2.17.5
Bugzilla Bug 3748
  Usage of `__libc_once' interface in `sysdeps/posix/getaddrinfo.c' Last modified: 2006-12-18 15:11:18
     Query page      Enter new bug
Bug#: 3748   Hardware:   Reporter: Thomas Schwinge <tschwinge@gnu.org>
Host: Target: Build:
Product:     Add CC:
Component:   Version:   CC:
Remove selected CCs
Status: RESOLVED   Priority:  
Resolution: INVALID   Severity:  
Assigned To: Ulrich Drepper <drepper@redhat.com>   Target Milestone:  
Flags: Requestee:
  backport ()
  examined ()
  testsuite ()
Summary:
Keywords:

Attachment Description Type Created Actions
__libc_once.patch Proposed patch. patch 2006-12-18 14:52 Edit | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 3748 depends on: Show dependency tree
Show dependency graph
Bug 3748 blocks:

Additional Comments:


Leave as RESOLVED INVALID
Reopen bug
Mark bug as VERIFIED

View Bug Activity   |   Format For Printing


Description:   Last confirmed: 0000-00-00 00:00 Opened: 2006-12-18 14:51
`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.

------- Additional Comment #1 From Thomas Schwinge 2006-12-18 14:52 -------
Created an attachment (id=1465)
Proposed patch.

------- Additional Comment #2 From Ulrich Drepper 2006-12-18 15:11 -------
old_once is scalar and is zero initialized.  Who do you think you are to decide
that this is not the case?

     Query page      Enter new bug
Actions: New | Query | bug # | Reports | Requests   New Account | Log In