* nis/nss-nis.h: Mark __yperr2nss_tab and __yperr2nss_count as hidden.
[glibc.git] / ChangeLog
blobd1bb0aabee4cf9ff8617f80a18fac3edb59177b8
1 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
3         * nis/nss-nis.h: Mark __yperr2nss_tab and __yperr2nss_count as hidden.
5         * nis/nss-nisplus.h: Mark __niserr2nss_tab and __niserr2nss_count
6         as hidden.
8 2006-05-10  Jakub Jelinek  <jakub@redhat.com>
10         * misc/sys/queue.h: Remove uses of all QUEUEDEBUG_* macros.
12 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
14         * posix/wordexp.c (parse_glob): No need to check ifs for NULL, the
15         caller makes sure this is not the case.
16         (wordexp): Simplify ifs_white creation.  [Coverity CID 231]
18 2006-05-09  Ulrich Drepper  <drepper@redhat.com>
20         * posix/wordexp.c: Remove numerous NULL pointer tests before FREE
21         calls.
23         * io/ftw.c (open_dir_stream): Return right away if REALLOC fails.
24         [Coverity CID 229, 230]
26         * argp/argp-help.c (hol_entry_help): Handle STATE==NULL in ARG and
27         DGETTEXT calls.
28         (hol_help): Likewise.  [Coverity CID 226, 227]
30         * string/argz-replace.c (__argz_replace): Unconditionally call
31         free on SRC.  [Coverity CID 225]
33         * nis/nis_creategroup.c (nis_creategroup): No need to duplicate
34         the return value of __nis_default_owner and __nis_default_group,
35         it has been especially allocated.  [Coverity CID 224]
37         * nis/nis_defaults.c (searchXYX): New functions.  Used by both
38         searchgroup and searchowner.  Significantly simplified.
39         (__nis_default_owner): Remove duplication.  Do not locally copy the
40         string before duplicating it.
41         (__nis_default_group): Likewise.
43         * nis/nis_lookup.c (nis_lookup): After calling nis_free_directory,
44         we must clear the variable before calling __nisfind_server.
46         * nis/nis_lookup.c (nis_lookup): Always free memory allocated with
47         nis_getnames.  [Coverity CID 223]
49         * locale/programs/locfile.c (locfile_read): Use alloca instead of
50         xmalloc to allocate local repertoire name.  [Coverity CID 222]
52         * iconv/iconv_charmap.c (use_to_charmap): No need to dynamically
53         allocate memory for the input to add_bytes.  [Coverity CID 221]
55         * posix/wordexp.c (w_addword): Free word if realloc fails and it
56         was allocated here.  [Coverity CID 219, 220]
58         * posix/getconf.c (print_all): Free confstr data after printing.
59         [Coverity CID 218]
61         * sysdeps/posix/getaddrinfo.c (gaih_inet): Free canon string if
62         list allocation fails.  [Coverity CID 215]
64         * nss/nsswitch.c (__nss_configure_lookup): Fix loop end condition.
65         [Coverity CID 213]
67         * argp/argp-help.c (hol_entry_cmp): Don't call canon_doc_option if
68         string is NULL.  [Coverity CID 212]
69         * argp/Makefile: Add rules to build and run bug-argp1.
70         * argp/bug-argp1.c: New file.
72         * io/ftw.c (ftw_dir): Use __rawmemchr instead of strchr to find
73         end of string.
74         * stdlib/canonicalize.c (__realpath): Likewise.
76         * locale/programs/ld-time.c (time_finish): Don't dereference NULL
77         pointer.  [Coverity CID 206]
79         * elf/dl-dst.h (DL_DST_REQUIRED): Be prepared for missing link map
80         in statically linked code.
81         * elf/dl-load.c (_dl_dst_substitute): When replacing ORIGIN in
82         statically built code, be prepared to have no link map.
83         [Coverity CID 205]
85         * argp/argp-help.c (fill_in_uparams): Handle STATE==NULL in
86         dgettext calls. [Coverity CID 204]
88         * argp/argp-help.c (struct uparams): Remove valid member.  Change
89         the one user.
90         (uparam_names): Reduce size.  Avoid relative relocations.
91         Moved to read-only segment.
92         (fill_in_uparams): Update for new layout.
94         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Parameter can be
95         assumed to always be != NULL. [Coverity CID 202]
97         * argp/argp-help.c (hol_entry_help): Remove some dead code
98         [Coverity CID 200].
100         * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Optimize
101         away a few more unconditional yperr2nss calls.
102         (_nss_nis_getservbyname_r): Likewise.
104 2006-05-06  Ulrich Drepper  <drepper@redhat.com>
106         * sysdeps/generic/ldsodefs.h: Remove support for non-core
107         architectures.
109         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Make sure
110         that unused memory passed to sendto is nevertheless initialized.
112         [BZ #2499]
113         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Avoid
114         possibly unaligned memory accesses.
116         * include/arpa/nameser.h: Also optimize NS_PUT16 and NS_PUT32.
117         * resolv/res_mkquery.c: Use NS_PUT16 and NS_PUT32 instead of __putshort
118         and __putlong respectively.  Correct buffer overflow check for
119         NS_NOTIFY_OP.
121         * resolv/res_send.c (send_vc): Use ns_put16 instead of putshort.
123         * resolv/res_send.c (res_queriesmatch): Fix typo in comment.
124         (send_dg): Rewrite error handling to be more compact and avoid
125         double recomputation of timeouts.  Pass MSG_NOSIGNAL to send.
127         * include/arpa/nameser.h: Add optimizations for NS_GET16 and NS_GET32.
129         * resolv/res_send.c (res_nameinquery): Use NS_GET16 directly
130         instead of ns_get16.
131         (res_queriesmatch): Likewise.  Minor optimization.
133         [BZ #2499]
134         * resolv/res_query.c (__libc_res_nquery): If answerp != NULL,
135         __libc_res_nsend might reallocate the buffer for the answer.  In
136         this case we have to reload the HP pointer.
138 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
140         * stdio-common/vfscanf.c (memory_error): Remove definition.  Add
141         some branch prediction hints.
143         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Define SPLICE_F_*.
144         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
145         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
146         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
147         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
148         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
149         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
150         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
152 2006-05-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
154         * sysdeps/s390/s390-32/elf/start.S: Replace pc relative relocation
155         by a GOT relocation to make Scrt1.o position independent.
156         * sysdeps/s390/s390-64/elf/start.S: Likewise.
158         * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S: Add support for
159         six system call parameters.
160         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
162 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
164         * sunrpc/svcauth_des.c (cache_init): Use calloc instead of
165         malloc&bzero.
167         * sunrpc/svc_udp.c (BZERO): Remove definition.
168         (CALLOC): Define.
169         (svc_enablecache): Use CALLOC instead of ALLOC&BZERO.
171         * sunrpc/des_impl.c: Remove ALT_ECB support.  We never used it.
172         (des_SPtrans): Use uint32_t type.
173         (des_skb): Likewise.
175         * sunrpc/xdr_ref.c (xdr_reference): Use calloc instead of malloc&bzero.
177 2006-05-05  Jakub Jelinek  <jakub@redhat.com>
179         [BZ #2509]
180         * stdio-common/tst-printf.sh: Adjust for tst-printf.c change even
181         on 32-bit arches.
183 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
185         * locale/programs/ld-address.c (address_finish): Fix one more
186         place where the iso639 array might be accessed beyond the limits.
188 2006-05-04  Ulrich Drepper  <drepper@redhat.com>
190         * nis/nis_table.c (nis_list): Avoid clearing res twice before
191         filling it for the first time.
193         * nis/nis_table.c (get_tablepath): Renamed from __get_tablepath.
194         Adjust all callers.
195         Free res object content before returning.
197         * sunrpc/xdr_array.c (xdr_array): Use calloc instead of malloc&bzero.
199         * sunrpc/key_call.c (__rpc_thread_key_cleanup): Also free
200         client->cl_auth.
202         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Don't skip entire
203         cleanup for initial thread, just the free call on TVP.
205         * nscd/gai.c (__getline): Define.
208 See ChangeLog.16 for earlier changes.