]> sourceware.org Git - glibc.git/blame - ChangeLog
* nis/nis_domain_of_r.c (nis_domain_of_r): Add missing buffer
[glibc.git] / ChangeLog
CommitLineData
2d571cd1
UD
12006-05-23 Ulrich Drepper <drepper@redhat.com>
2
3 * nis/nis_domain_of_r.c (nis_domain_of_r): Add missing buffer
4 overflow test.
5
a17fa610
UD
62006-05-20 Ulrich Drepper <drepper@redhat.com>
7
8 * nis/nis_call.c (__prepare_niscall): New function. Split out
9 from __do_niscall.
10 * nis/nis_table.c (__create_ib_request): Renamed from create_ib_request
11 and exported.
12 (__follow_path): New function. Split out from nis_list.
13 * nis/nis_xdr.h: Add libnsl_hidden_proto for _xdr_ib_request and
14 _xdr_nis_result.
15 * nis/nis_xdr.c: Add libnsl_hidden_def for _xdr_ib_request and
16 _xdr_nis_result.
17 * nis/libnsl.h: Declare __prepare_niscall, __create_ib_request,
18 and __follow_path.
19 * nis/Versions: Export __prepare_niscall, __create_ib_request,
20 __follow_path, __do_niscall3, _xdr_ib_request, and _xdr_nis_result
21 from libnsl for version GLIBC_PRIVATE.
22 * nis/nisplus-parser.h: Remove _nss_nisplus_parse_pwent_chk.
23 Remove entry parameter from _nss_nisplus_parse_pwent and
24 _nss_nisplus_parse_grent.
25 * nis/nss_nisplus/nisplus-parser.c: Likewise.
26 * nis/nss_nisplus/nisplus-pwd.c: Remove support for SETENT_BATCH_READ
27 again. Rewrite getpwent handling to not use nis_first_entry and
28 nis_next_entry. Roll out own niscall handling.
29 * nis/nss_nisplus/nisplus-grp.c: Likewise.
30
31 * sunrpc/xdr_rec.c: Fix typo in comment.
32
429bb183
UD
332006-05-19 Ulrich Drepper <drepper@redhat.com>
34
1d4f062a
UD
35 * nis/nis_call.c (__do_niscall3): Avoid code duplication in error
36 handling.
37
101cc598
UD
38 * nis/nis_callback.c (internal_nis_do_callback): Don't use malloc
39 to allocate memory for my_pollfd. Better initialization of
40 cb_is_running. Use TEMP_FAILURE_RETRY.
41
f50fa10c
UD
42 * malloc/memusage.sh (memusageso): Add quotes.
43 (memusagestat): Likewise.
44 * debug/xtrace.sh (pcprofileso): Likewise.
45 (pcprofiledump): Likewise.
46 * debug/Makefile ($(objpfx)xtrace): Use $LIB in SLIBDIR
47 replacement.
48 * malloc/Makefile ($(objpfx)memusage): Likewise.
49
882bfe73
UD
50 * nis/nis_callback.c (__nis_create_callback): Calls to
51 svcudp_bufcreate and svctcp_create can fail. Free ->xprt if
52 asprintf call fails.
53
429bb183
UD
54 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_sendreq): Make sure
55 no uninitialized memory is passed to sendto.
56
f90de831
UD
572006-05-18 Ulrich Drepper <drepper@redhat.com>
58
59 * nis/nis_callback.c (__nis_create_callback): Use asprinf instead
60 of snprintf+strdup. Handle OOM.
61 * nis/nis_callback.c (__nis_create_callback): Allocate cb and
62 cb->serv together. Remove now obsolete free calls.
63 (__nis_destroy_callback): Remove now obsolete free call.
64
a17fa610 652006-05-18 David Woodhouse <dwmw2@redhat.com>
6e2a7825
UD
66
67 * sysdeps/posix/getaddrinfo.c: Add unique labels to the default
68 RFC3484 precedence table for fec0::/10 and fc00::/7 (site-local
69 and ULA respectively). Set precedence for IPv4 address to 10 as
70 defined in RFC3484 for preferring IPv6.
71 * posix/gai.conf: Update to match the new default tables.
72
758b9d7e
UD
732006-05-18 Jakub Jelinek <jakub@redhat.com>
74
75 * nis/nss_compat/compat-pwd.c (internal_setpwent): If nss_set*ent
76 returned NSS_STATUS_UNAVAIL, still return NSS_STATUS_SUCCESS.
77 * nis/nss_compat/compat-spwd.c (internal_setspent): Likewise.
78 * nis/nss_compat/compat-grp.c (internal_setgrent): Likewise.
79
80 * nis/nss_compat/compat-initgroups.c (nss_setgrent, nss_endgrent):
81 Removed.
82 (init_nss_interface): Remove initialization of these variables.
83
842006-05-18 Ulrich Drepper <drepper@redhat.com>
85
86 * nis/nis_call.c (rec_dirsearch): Little optimization: pull
87 nis_free_directory forward to avoid duplication.
88
388c779e
UD
892006-05-17 Ulrich Drepper <drepper@redhat.com>
90
5f1724bf
UD
91 * nis/nis_call.c (rec_dirsearch): Handle __nis_finddirectory and
92 rec_dirsearch returning NULL.
93 (first_shoot): Handle __nis_finddirectory returning NULL.
94 (__nisfind_server): Fix leak when rec_dirsearch returns NULL.
95
388c779e
UD
96 * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOSE, IN_MOVE,
97 IN_ONLYDIR, IN_DONT_FOLLOW, and IN_MASK_ADD.
98
360d5cf4
UD
992006-05-17 Jakub Jelinek <jakub@redhat.com>
100
101 * sunrpc/key_call.c (getkeyserv_handle): Call auth_destroy if
102 pid changed.
103
88dbff8c
UD
1042006-05-15 Ulrich Drepper <drepper@redhat.com>
105
6f8a7dff
UD
106 * include/rpc/pmap_prot.h: Mark all functions as hidden.
107
108 * nscd/nscd_initgroups.c: Mark __gr_map_handle as hidden.
109 * nscd/nscd_getgr_r.c: Likewise.
110
111 * include/rpc/pmap_rmt.h: Mark all functions as hidden.
112
113 * nscd/nscd_getai.c (__hst_map_handle): Mark as hidden.
114 * nscd/nscd_gethst_r.c (__hst_map_handle): Likewise.
115
116 * stdlib/longlong.h (__clz_tab): Mark as hidden.
117
118 * iconv/gconv_int.h: Mark __gconv_lock as hidden.
119
360d5cf4 120 * include/rpc/key_prot.h: Mark all _internal functions as hidden.
8263ed62
UD
121
122 * include/rpc/auth.h: Mark xdr_des_block_internal and
123 xdr_opaque_auth_internal as hidden.
124
125 * sysdeps/unix/sysv/linux/getdents.c: Mark __have_no_getdents64 as
126 hidden.
127
360d5cf4 128 * include/rpc/xdr.h: Mark all _internal functions as hidden.
8263ed62 129
02264020
UD
130 * misc/getusershell.c (okshells): Don't use static initializers,
131 do it dynamically.
132
fd5ea238
UD
133 * stdlib/fmtmsg.c (keywords): Change type of len element to
134 uint32_t to not waste space on 64bit machines.
135
9446614c
UD
136 * locale/setlocale.c: Change _nl_category_names into a string.
137 Add new _nl_category_name_idxs. Change all users.
138 * locale/localeinfo.h: Adjust declaration of _nl_category_names.
139 Declare _nl_category_name_idxs.
140 * locale/findlocale.c: Adjust for _nl_category_names change.
141 * locale/loadlocale.c: Likewise.
142 * locale/newlocale.c: Likewise.
143 * intl/dcigettext.c: Likewise.
144
88dbff8c
UD
145 * iconv/gconv_conf.c (add_alias): Move actual alias handling to...
146 (add_alias2): ...here. New function.
147 (__gconv_read_conf): Simplify builtin alias handling.
148 (builtin_aliases): Convert to string to avoid relocations.
149 * iconv/gconv_builtin.h: Add comment about correct formatting.
150
4442d58f
UD
1512006-05-15 Jakub Jelinek <jakub@redhat.com>
152
153 * resolv/res_debug.c (loc_ntoa): Make error const.
154
1552006-05-14 Andreas Schwab <schwab@suse.de>
156
157 * math/complex.h [__LDBL_COMPAT]: Use __REDIRECT_NTH.
158
1592006-05-12 Jakub Jelinek <jakub@redhat.com>
160
161 * sysdeps/unix/sysv/linux/sched_getaffinity.c: Include sys/param.h.
162 (__sched_getaffinity_new): Don't crash if cpusetsize is smaller than
163 sizeof (cpu_set_t).
164
a51752b6
UD
1652006-05-11 Ulrich Drepper <drepper@redhat.com>
166
5d3fd1f6
UD
167 * resolv/res_debug.c (loc_ntoa): Define error as array, not pointer.
168
08cfb839
UD
169 * include/arpa/nameser.h: Declare _ns_flagdata as hidden.
170
4b481a15
UD
171 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_master.
172 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_master.
173
174 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypbind_resp.
175 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypbind_resp.
176
177 * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_cback_data.
178 * include/rpcsvc/nis_callback.h: Add libnsl_hidden_proto for
179 xdr_cback_data.
180
181 * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypupdate_args.
182 * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
183 xdr_ypupdate_args.
184
185 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_order.
186 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_order.
187
188 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_maplist.
189 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_maplist.
190
191 * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_obj_p.
192 * include/rpcsvc/nis_callback.h: New file.
193
194 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_val.
195 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_val.
196
197 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
198 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
199
200 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypmaplist.
201 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypmaplist.
202
203 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
204 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
205
b1ad49c6
UD
206 * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypdelete_args.
207 * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
208 xdr_ypdelete_args.
209
cd5f7829
UD
210 * nis/nis_xdr.h: Mark all functions as hidden. Remove
211 __BEGIN_DECLS and __END_DECLS, the header is not installed.
212
a51752b6
UD
213 * nis/nis_error.c: Remove table of strings. Use position
214 independent mechanism.
215 * nis/nis_error.h: New file.
216
3d237e42
UD
2172006-05-11 Jakub Jelinek <jakub@redhat.com>
218
219 * locale/programs/ld-time.c (time_finish): If wide era name or
220 format aren't provided, set both wname and wformat to L"".
221
d6c159fe
UD
2222006-05-10 Ulrich Drepper <drepper@redhat.com>
223
0088b04e
UD
224 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Only store
225 results if the call was succesful.
226
d6c159fe
UD
227 * nis/nss-nis.h: Mark __yperr2nss_tab and __yperr2nss_count as hidden.
228
229 * nis/nss-nisplus.h: Mark __niserr2nss_tab and __niserr2nss_count
230 as hidden.
231
5c5acdf0
UD
2322006-05-10 Jakub Jelinek <jakub@redhat.com>
233
234 * misc/sys/queue.h: Remove uses of all QUEUEDEBUG_* macros.
235
16d620db
UD
2362006-05-10 Ulrich Drepper <drepper@redhat.com>
237
238 * posix/wordexp.c (parse_glob): No need to check ifs for NULL, the
239 caller makes sure this is not the case.
240 (wordexp): Simplify ifs_white creation. [Coverity CID 231]
241
e7c8359e
UD
2422006-05-09 Ulrich Drepper <drepper@redhat.com>
243
ecf359c6
UD
244 * posix/wordexp.c: Remove numerous NULL pointer tests before FREE
245 calls.
246
400cc70a
UD
247 * io/ftw.c (open_dir_stream): Return right away if REALLOC fails.
248 [Coverity CID 229, 230]
249
250 * argp/argp-help.c (hol_entry_help): Handle STATE==NULL in ARG and
251 DGETTEXT calls.
252 (hol_help): Likewise. [Coverity CID 226, 227]
253
254 * string/argz-replace.c (__argz_replace): Unconditionally call
255 free on SRC. [Coverity CID 225]
256
257 * nis/nis_creategroup.c (nis_creategroup): No need to duplicate
258 the return value of __nis_default_owner and __nis_default_group,
259 it has been especially allocated. [Coverity CID 224]
260
51e59260
UD
261 * nis/nis_defaults.c (searchXYX): New functions. Used by both
262 searchgroup and searchowner. Significantly simplified.
263 (__nis_default_owner): Remove duplication. Do not locally copy the
264 string before duplicating it.
265 (__nis_default_group): Likewise.
266
267 * nis/nis_lookup.c (nis_lookup): After calling nis_free_directory,
268 we must clear the variable before calling __nisfind_server.
269
270 * nis/nis_lookup.c (nis_lookup): Always free memory allocated with
271 nis_getnames. [Coverity CID 223]
272
273 * locale/programs/locfile.c (locfile_read): Use alloca instead of
274 xmalloc to allocate local repertoire name. [Coverity CID 222]
275
276 * iconv/iconv_charmap.c (use_to_charmap): No need to dynamically
277 allocate memory for the input to add_bytes. [Coverity CID 221]
278
e7c8359e 279 * posix/wordexp.c (w_addword): Free word if realloc fails and it
51e59260 280 was allocated here. [Coverity CID 219, 220]
e7c8359e
UD
281
282 * posix/getconf.c (print_all): Free confstr data after printing.
283 [Coverity CID 218]
284
285 * sysdeps/posix/getaddrinfo.c (gaih_inet): Free canon string if
286 list allocation fails. [Coverity CID 215]
287
288 * nss/nsswitch.c (__nss_configure_lookup): Fix loop end condition.
289 [Coverity CID 213]
290
291 * argp/argp-help.c (hol_entry_cmp): Don't call canon_doc_option if
292 string is NULL. [Coverity CID 212]
293 * argp/Makefile: Add rules to build and run bug-argp1.
294 * argp/bug-argp1.c: New file.
295
296 * io/ftw.c (ftw_dir): Use __rawmemchr instead of strchr to find
297 end of string.
298 * stdlib/canonicalize.c (__realpath): Likewise.
299
300 * locale/programs/ld-time.c (time_finish): Don't dereference NULL
301 pointer. [Coverity CID 206]
302
303 * elf/dl-dst.h (DL_DST_REQUIRED): Be prepared for missing link map
304 in statically linked code.
305 * elf/dl-load.c (_dl_dst_substitute): When replacing ORIGIN in
306 statically built code, be prepared to have no link map.
307 [Coverity CID 205]
308
309 * argp/argp-help.c (fill_in_uparams): Handle STATE==NULL in
310 dgettext calls. [Coverity CID 204]
311
312 * argp/argp-help.c (struct uparams): Remove valid member. Change
313 the one user.
314 (uparam_names): Reduce size. Avoid relative relocations.
315 Moved to read-only segment.
316 (fill_in_uparams): Update for new layout.
317
318 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Parameter can be
319 assumed to always be != NULL. [Coverity CID 202]
320
321 * argp/argp-help.c (hol_entry_help): Remove some dead code
322 [Coverity CID 200].
323
324 * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Optimize
325 away a few more unconditional yperr2nss calls.
326 (_nss_nis_getservbyname_r): Likewise.
327
acf82eaf
UD
3282006-05-06 Ulrich Drepper <drepper@redhat.com>
329
4461cf48
UD
330 * sysdeps/generic/ldsodefs.h: Remove support for non-core
331 architectures.
332
b74a8c7f
UD
333 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Make sure
334 that unused memory passed to sendto is nevertheless initialized.
335
acb98cb5
UD
336 [BZ #2499]
337 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Avoid
338 possibly unaligned memory accesses.
339
bce16467
UD
340 * include/arpa/nameser.h: Also optimize NS_PUT16 and NS_PUT32.
341 * resolv/res_mkquery.c: Use NS_PUT16 and NS_PUT32 instead of __putshort
342 and __putlong respectively. Correct buffer overflow check for
343 NS_NOTIFY_OP.
344
345 * resolv/res_send.c (send_vc): Use ns_put16 instead of putshort.
346
8e45b1ac
UD
347 * resolv/res_send.c (res_queriesmatch): Fix typo in comment.
348 (send_dg): Rewrite error handling to be more compact and avoid
349 double recomputation of timeouts. Pass MSG_NOSIGNAL to send.
350
697e1628
UD
351 * include/arpa/nameser.h: Add optimizations for NS_GET16 and NS_GET32.
352
353 * resolv/res_send.c (res_nameinquery): Use NS_GET16 directly
354 instead of ns_get16.
355 (res_queriesmatch): Likewise. Minor optimization.
356
acf82eaf
UD
357 [BZ #2499]
358 * resolv/res_query.c (__libc_res_nquery): If answerp != NULL,
359 __libc_res_nsend might reallocate the buffer for the answer. In
360 this case we have to reload the HP pointer.
361
7bfee654
UD
3622006-05-05 Ulrich Drepper <drepper@redhat.com>
363
694b49ca
UD
364 * stdio-common/vfscanf.c (memory_error): Remove definition. Add
365 some branch prediction hints.
366
7bfee654
UD
367 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Define SPLICE_F_*.
368 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
369 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
370 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
371 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
372 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
373 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
374 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
375
308bb2d5
UD
3762006-05-05 Martin Schwidefsky <schwidefsky@de.ibm.com>
377
378 * sysdeps/s390/s390-32/elf/start.S: Replace pc relative relocation
379 by a GOT relocation to make Scrt1.o position independent.
380 * sysdeps/s390/s390-64/elf/start.S: Likewise.
381
382 * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S: Add support for
383 six system call parameters.
384 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
385
cdb9c321
UD
3862006-05-05 Ulrich Drepper <drepper@redhat.com>
387
388 * sunrpc/svcauth_des.c (cache_init): Use calloc instead of
389 malloc&bzero.
390
391 * sunrpc/svc_udp.c (BZERO): Remove definition.
392 (CALLOC): Define.
393 (svc_enablecache): Use CALLOC instead of ALLOC&BZERO.
394
395 * sunrpc/des_impl.c: Remove ALT_ECB support. We never used it.
396 (des_SPtrans): Use uint32_t type.
397 (des_skb): Likewise.
398
399 * sunrpc/xdr_ref.c (xdr_reference): Use calloc instead of malloc&bzero.
400
fff04b32
UD
4012006-05-05 Jakub Jelinek <jakub@redhat.com>
402
403 [BZ #2509]
404 * stdio-common/tst-printf.sh: Adjust for tst-printf.c change even
405 on 32-bit arches.
406
4072006-05-05 Ulrich Drepper <drepper@redhat.com>
408
409 * locale/programs/ld-address.c (address_finish): Fix one more
cdb9c321 410 place where the iso639 array might be accessed beyond the limits.
fff04b32 411
077a30bc 4122006-05-04 Ulrich Drepper <drepper@redhat.com>
77dd4c3b 413
f2d5cf50
UD
414 * nis/nis_table.c (nis_list): Avoid clearing res twice before
415 filling it for the first time.
416
3e4370cf
UD
417 * nis/nis_table.c (get_tablepath): Renamed from __get_tablepath.
418 Adjust all callers.
419 Free res object content before returning.
420
5e65a53d
UD
421 * sunrpc/xdr_array.c (xdr_array): Use calloc instead of malloc&bzero.
422
48be3114
UD
423 * sunrpc/key_call.c (__rpc_thread_key_cleanup): Also free
424 client->cl_auth.
425
ca4fce0e
UD
426 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Don't skip entire
427 cleanup for initial thread, just the free call on TVP.
428
077a30bc 429 * nscd/gai.c (__getline): Define.
3b7a95fb 430
5d37289a 431
3f87d901 432See ChangeLog.16 for earlier changes.
This page took 0.276495 seconds and 5 git commands to generate.