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