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