This is the mail archive of the libc-hacker@sourceware.org mailing list for the glibc project.
Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Hi! If precedence has no / in val1 string, bits will be uninitialized, as goto new_elem will jump into the block after bits initialization. 2006-05-30 Jakub Jelinek <jakub@redhat.com> * sysdeps/posix/getaddrinfo.c (gaiconf_init): Initialize bits to 128 after new_elem label. --- libc/sysdeps/posix/getaddrinfo.c.jj 2006-05-29 16:28:08.000000000 +0200 +++ libc/sysdeps/posix/getaddrinfo.c 2006-05-30 18:05:35.000000000 +0200 @@ -1668,7 +1668,7 @@ gaiconf_init (void) if (strcmp (cmd, "label") == 0) { struct in6_addr prefix; - unsigned long int bits = 128; + unsigned long int bits; unsigned long int val; char *endp; @@ -1677,6 +1677,7 @@ gaiconf_init (void) nullbitsp = &labellist_nullbits; new_elem: + bits = 128; __set_errno (0); cp = strchr (val1, '/'); if (cp != NULL) Jakub
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |