1 2006-05-09 Ulrich Drepper <drepper@redhat.com>
3 * nis/nis_defaults.c (searchXYX): New functions. Used by both
4 searchgroup and searchowner. Significantly simplified.
5 (__nis_default_owner): Remove duplication. Do not locally copy the
6 string before duplicating it.
7 (__nis_default_group): Likewise.
9 * nis/nis_lookup.c (nis_lookup): After calling nis_free_directory,
10 we must clear the variable before calling __nisfind_server.
12 * nis/nis_lookup.c (nis_lookup): Always free memory allocated with
13 nis_getnames. [Coverity CID 223]
15 * locale/programs/locfile.c (locfile_read): Use alloca instead of
16 xmalloc to allocate local repertoire name. [Coverity CID 222]
18 * iconv/iconv_charmap.c (use_to_charmap): No need to dynamically
19 allocate memory for the input to add_bytes. [Coverity CID 221]
21 * posix/wordexp.c (w_addword): Free word if realloc fails and it
22 was allocated here. [Coverity CID 219, 220]
24 * posix/getconf.c (print_all): Free confstr data after printing.
27 * sysdeps/posix/getaddrinfo.c (gaih_inet): Free canon string if
28 list allocation fails. [Coverity CID 215]
30 * nss/nsswitch.c (__nss_configure_lookup): Fix loop end condition.
33 * argp/argp-help.c (hol_entry_cmp): Don't call canon_doc_option if
34 string is NULL. [Coverity CID 212]
35 * argp/Makefile: Add rules to build and run bug-argp1.
36 * argp/bug-argp1.c: New file.
38 * io/ftw.c (ftw_dir): Use __rawmemchr instead of strchr to find
40 * stdlib/canonicalize.c (__realpath): Likewise.
42 * locale/programs/ld-time.c (time_finish): Don't dereference NULL
43 pointer. [Coverity CID 206]
45 * elf/dl-dst.h (DL_DST_REQUIRED): Be prepared for missing link map
46 in statically linked code.
47 * elf/dl-load.c (_dl_dst_substitute): When replacing ORIGIN in
48 statically built code, be prepared to have no link map.
51 * argp/argp-help.c (fill_in_uparams): Handle STATE==NULL in
52 dgettext calls. [Coverity CID 204]
54 * argp/argp-help.c (struct uparams): Remove valid member. Change
56 (uparam_names): Reduce size. Avoid relative relocations.
57 Moved to read-only segment.
58 (fill_in_uparams): Update for new layout.
60 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Parameter can be
61 assumed to always be != NULL. [Coverity CID 202]
63 * argp/argp-help.c (hol_entry_help): Remove some dead code
66 * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Optimize
67 away a few more unconditional yperr2nss calls.
68 (_nss_nis_getservbyname_r): Likewise.
70 2006-05-06 Ulrich Drepper <drepper@redhat.com>
72 * sysdeps/generic/ldsodefs.h: Remove support for non-core
75 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Make sure
76 that unused memory passed to sendto is nevertheless initialized.
79 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Avoid
80 possibly unaligned memory accesses.
82 * include/arpa/nameser.h: Also optimize NS_PUT16 and NS_PUT32.
83 * resolv/res_mkquery.c: Use NS_PUT16 and NS_PUT32 instead of __putshort
84 and __putlong respectively. Correct buffer overflow check for
87 * resolv/res_send.c (send_vc): Use ns_put16 instead of putshort.
89 * resolv/res_send.c (res_queriesmatch): Fix typo in comment.
90 (send_dg): Rewrite error handling to be more compact and avoid
91 double recomputation of timeouts. Pass MSG_NOSIGNAL to send.
93 * include/arpa/nameser.h: Add optimizations for NS_GET16 and NS_GET32.
95 * resolv/res_send.c (res_nameinquery): Use NS_GET16 directly
97 (res_queriesmatch): Likewise. Minor optimization.
100 * resolv/res_query.c (__libc_res_nquery): If answerp != NULL,
101 __libc_res_nsend might reallocate the buffer for the answer. In
102 this case we have to reload the HP pointer.
104 2006-05-05 Ulrich Drepper <drepper@redhat.com>
106 * stdio-common/vfscanf.c (memory_error): Remove definition. Add
107 some branch prediction hints.
109 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Define SPLICE_F_*.
110 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
111 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
112 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
113 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
114 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
115 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
116 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
118 2006-05-05 Martin Schwidefsky <schwidefsky@de.ibm.com>
120 * sysdeps/s390/s390-32/elf/start.S: Replace pc relative relocation
121 by a GOT relocation to make Scrt1.o position independent.
122 * sysdeps/s390/s390-64/elf/start.S: Likewise.
124 * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S: Add support for
125 six system call parameters.
126 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
128 2006-05-05 Ulrich Drepper <drepper@redhat.com>
130 * sunrpc/svcauth_des.c (cache_init): Use calloc instead of
133 * sunrpc/svc_udp.c (BZERO): Remove definition.
135 (svc_enablecache): Use CALLOC instead of ALLOC&BZERO.
137 * sunrpc/des_impl.c: Remove ALT_ECB support. We never used it.
138 (des_SPtrans): Use uint32_t type.
141 * sunrpc/xdr_ref.c (xdr_reference): Use calloc instead of malloc&bzero.
143 2006-05-05 Jakub Jelinek <jakub@redhat.com>
146 * stdio-common/tst-printf.sh: Adjust for tst-printf.c change even
149 2006-05-05 Ulrich Drepper <drepper@redhat.com>
151 * locale/programs/ld-address.c (address_finish): Fix one more
152 place where the iso639 array might be accessed beyond the limits.
154 2006-05-04 Ulrich Drepper <drepper@redhat.com>
156 * nis/nis_table.c (nis_list): Avoid clearing res twice before
157 filling it for the first time.
159 * nis/nis_table.c (get_tablepath): Renamed from __get_tablepath.
161 Free res object content before returning.
163 * sunrpc/xdr_array.c (xdr_array): Use calloc instead of malloc&bzero.
165 * sunrpc/key_call.c (__rpc_thread_key_cleanup): Also free
168 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Don't skip entire
169 cleanup for initial thread, just the free call on TVP.
171 * nscd/gai.c (__getline): Define.
174 See ChangeLog.16 for earlier changes.