Bruno Haible [Thu, 30 Oct 2003 14:09:04 +0000 (14:09 +0000)]
Check for overflow when converting from size_t to 'int'.
Bruno Haible [Thu, 30 Oct 2003 13:52:10 +0000 (13:52 +0000)]
Add comment.
Karl Berry [Thu, 30 Oct 2003 08:25:42 +0000 (08:25 +0000)]
.
Paul Eggert [Thu, 30 Oct 2003 06:33:39 +0000 (06:33 +0000)]
Revamp xalloc_oversized so that its count arg need not fit into size_t.
Fix up group-member, quotearg accordingly.
Paul Eggert [Thu, 30 Oct 2003 05:51:29 +0000 (05:51 +0000)]
host-os.m4 (UTILS_HOST_OS): Fix bugs in previous change.
Paul Eggert [Thu, 30 Oct 2003 05:50:36 +0000 (05:50 +0000)]
Fix some bugs in the previous change.
Paul Eggert [Thu, 30 Oct 2003 00:36:03 +0000 (00:36 +0000)]
Simplify the code by using new xalloc.h features.
Paul Eggert [Wed, 29 Oct 2003 17:35:16 +0000 (17:35 +0000)]
Log xrealloc -> free+xmalloc changes for getgroups, quotearg.
Paul Eggert [Wed, 29 Oct 2003 17:33:05 +0000 (17:33 +0000)]
(quotearg_n_options): Use free/xmalloc rather than xrealloc.
Use a simpler test for size overflow. Don't use xalloc_oversized
because unsigned int might be wider than size_t (!); this suggests
that we should switch from unsigned int to size_t for slot numbers.
Paul Eggert [Wed, 29 Oct 2003 17:27:58 +0000 (17:27 +0000)]
(getgroups): Don't use xrealloc, since we don't need the buffer
preserved. Use free and xmalloc instead.
Paul Eggert [Tue, 28 Oct 2003 03:06:17 +0000 (03:06 +0000)]
Identify GNU/KFreeBSD and GNU/KNetBSD using their new names (which have a
"K" in front of the kernel name).
Karl Berry [Mon, 27 Oct 2003 21:28:39 +0000 (21:28 +0000)]
update from texinfo
Bruno Haible [Mon, 27 Oct 2003 13:58:34 +0000 (13:58 +0000)]
Improved support for BeOS: Avoid compilation error if <sys/socket.h>
is included after <stdbool.h>.
Paul Eggert [Mon, 27 Oct 2003 08:41:23 +0000 (08:41 +0000)]
Modify exclude.c to use new xalloc primitives, for simplicity.
Paul Eggert [Mon, 27 Oct 2003 08:11:09 +0000 (08:11 +0000)]
xalloc.h now uses inline, so includers need to configure this.
Paul Eggert [Mon, 27 Oct 2003 08:00:26 +0000 (08:00 +0000)]
New function xalloc_oversized.
Paul Eggert [Mon, 27 Oct 2003 07:28:24 +0000 (07:28 +0000)]
Add x2realloc, x2nrealloc. Port to C99 inline.
Paul Eggert [Mon, 27 Oct 2003 07:12:11 +0000 (07:12 +0000)]
(alloca): xmalloc cannot return NULL, so don't test for that.
Karl Berry [Sun, 26 Oct 2003 11:56:27 +0000 (11:56 +0000)]
.
Karl Berry [Sun, 26 Oct 2003 11:52:05 +0000 (11:52 +0000)]
(COPYING.DOC): no longer available from
/gd/gnuorg; don't know where the ultimate source is.
Paul Eggert [Sun, 26 Oct 2003 00:14:40 +0000 (00:14 +0000)]
Fix several address-calculation bugs in the hash modules,
plus some minor code cleanup.
Karl Berry [Sat, 25 Oct 2003 16:40:01 +0000 (16:40 +0000)]
update from texinfo
Karl Berry [Fri, 24 Oct 2003 16:40:07 +0000 (16:40 +0000)]
update from texinfo
Karl Berry [Fri, 24 Oct 2003 01:59:31 +0000 (01:59 +0000)]
update from texinfo
Paul Eggert [Thu, 23 Oct 2003 18:41:19 +0000 (18:41 +0000)]
Don't include getndelim2.o twice into LIBOBJS.
Karl Berry [Thu, 23 Oct 2003 14:11:57 +0000 (14:11 +0000)]
update from texinfo
Paul Eggert [Wed, 22 Oct 2003 16:26:00 +0000 (16:26 +0000)]
Meyers -> Myers
Paul Eggert [Wed, 22 Oct 2003 05:53:05 +0000 (05:53 +0000)]
(getndelim2): When size calculation overflows,
ceiling the allocation at NMAX bytes.
Paul Eggert [Wed, 22 Oct 2003 05:10:04 +0000 (05:10 +0000)]
Merge changes from glibc obstack; minor cleanups to make it easier to
merge back in the future.
Paul Eggert [Wed, 22 Oct 2003 01:02:47 +0000 (01:02 +0000)]
Don't use lvalue casts, as GCC plans to remove support for them in GCC 3.5.
Karl Berry [Tue, 21 Oct 2003 09:53:14 +0000 (09:53 +0000)]
.
Bruno Haible [Mon, 20 Oct 2003 11:03:53 +0000 (11:03 +0000)]
New module 'wait-process'.
Bruno Haible [Mon, 20 Oct 2003 10:51:59 +0000 (10:51 +0000)]
Portability to HP-UX 10, found by Jim Meyering.
Karl Berry [Sat, 18 Oct 2003 22:58:00 +0000 (22:58 +0000)]
config update
Karl Berry [Fri, 17 Oct 2003 01:49:31 +0000 (01:49 +0000)]
update from texinfo
Karl Berry [Thu, 16 Oct 2003 22:57:54 +0000 (22:57 +0000)]
update from config
Paul Eggert [Thu, 16 Oct 2003 18:28:06 +0000 (18:28 +0000)]
(foo *) NULL + 0 == NULL
Paul Eggert [Thu, 16 Oct 2003 07:34:14 +0000 (07:34 +0000)]
getgroups.c: minor fixups.
Paul Eggert [Thu, 16 Oct 2003 07:30:56 +0000 (07:30 +0000)]
Include <errno.h>, <stdlib.h>.
(getgroups): First arg is int, not size_t.
Don't let 'free' mangle errno.
Jim Meyering [Thu, 16 Oct 2003 07:06:57 +0000 (07:06 +0000)]
.
Jim Meyering [Thu, 16 Oct 2003 07:06:25 +0000 (07:06 +0000)]
Include <string.h>, for declarations of memset and memcpy.
Paul Eggert [Thu, 16 Oct 2003 06:56:14 +0000 (06:56 +0000)]
Fix address-arithmetic and alloca bugs in fnmatch.
exclude.c cleanups.
Paul Eggert [Thu, 16 Oct 2003 06:51:24 +0000 (06:51 +0000)]
Check for address arithmetic overflow.
Do not alloca huge buffers.
Paul Eggert [Thu, 16 Oct 2003 05:26:15 +0000 (05:26 +0000)]
Do not include <inttypes.h> or <stdint.h>.
(SIZE_MAX): Remove.
(new_exclude, add_exclude_file): Initial size no longer needs to
be a power of 2.
(add_exclude, add_exclude_file): Use xnrealloc instead of rolling
our own address arithmetic overflow checking.
Karl Berry [Wed, 15 Oct 2003 08:44:54 +0000 (08:44 +0000)]
.
Paul Eggert [Tue, 14 Oct 2003 20:08:25 +0000 (20:08 +0000)]
Handle invalid suffixes and overflow independently, so that
callers can treat them independently as needed. Fix some bugs in
suffix handling.
Bruno Haible [Tue, 14 Oct 2003 12:10:32 +0000 (12:10 +0000)]
Test for sig_atomic_t. Part of modules 'fatal-signal' and 'wait-process'.
Bruno Haible [Tue, 14 Oct 2003 12:09:12 +0000 (12:09 +0000)]
Improved 'fatal-signal' module.
Richard Stallman [Mon, 13 Oct 2003 18:48:14 +0000 (18:48 +0000)]
(MAX_BUF_SIZE): Reduce to 2**15.
(print_partial_compiled_pattern): Replace assert with a printout.
(skip_noops, mutually_exclusive_p): Change args, values to re_char *.
Karl Berry [Mon, 13 Oct 2003 08:27:23 +0000 (08:27 +0000)]
.
Paul Eggert [Mon, 13 Oct 2003 06:07:10 +0000 (06:07 +0000)]
Revamp xalloc interface so that it can check for address arithmetic overflow.
Karl Berry [Sat, 11 Oct 2003 08:09:03 +0000 (08:09 +0000)]
.
Bruno Haible [Fri, 10 Oct 2003 19:41:12 +0000 (19:41 +0000)]
A little more dependencies of the 'argp' module.
Karl Berry [Thu, 9 Oct 2003 13:29:49 +0000 (13:29 +0000)]
update from texinfo
Karl Berry [Thu, 9 Oct 2003 07:56:41 +0000 (07:56 +0000)]
.
Paul Eggert [Wed, 8 Oct 2003 20:34:54 +0000 (20:34 +0000)]
Merge getpass from libc, plus a few fixes.
Karl Berry [Wed, 8 Oct 2003 19:38:51 +0000 (19:38 +0000)]
update from texinfo
Karl Berry [Wed, 8 Oct 2003 12:01:28 +0000 (12:01 +0000)]
update from texinfo
Karl Berry [Tue, 7 Oct 2003 12:58:45 +0000 (12:58 +0000)]
update from texinfo
Karl Berry [Tue, 7 Oct 2003 12:57:23 +0000 (12:57 +0000)]
update from config
Karl Berry [Tue, 7 Oct 2003 07:46:10 +0000 (07:46 +0000)]
.
Bruno Haible [Mon, 6 Oct 2003 20:32:36 +0000 (20:32 +0000)]
Remove version-etc-2 module.
Bruno Haible [Mon, 6 Oct 2003 20:30:17 +0000 (20:30 +0000)]
Merge version-etc-2 back into version-etc: Better way to internationalize
the "Written by ..." sentence.
Bruno Haible [Mon, 6 Oct 2003 12:50:11 +0000 (12:50 +0000)]
New module 'fatal-signal'.
Karl Berry [Sun, 5 Oct 2003 12:34:51 +0000 (12:34 +0000)]
update from texinfo
Paul Eggert [Sun, 5 Oct 2003 07:06:59 +0000 (07:06 +0000)]
Rework advice for preventing empty .o files.
Karl Berry [Sat, 4 Oct 2003 12:28:06 +0000 (12:28 +0000)]
argp update from libc
Karl Berry [Sat, 4 Oct 2003 12:26:31 +0000 (12:26 +0000)]
update from config
Karl Berry [Fri, 3 Oct 2003 07:10:45 +0000 (07:10 +0000)]
.
Bruno Haible [Thu, 2 Oct 2003 10:22:12 +0000 (10:22 +0000)]
Tweak Include section.
Bruno Haible [Thu, 2 Oct 2003 10:18:23 +0000 (10:18 +0000)]
Put gethostname into the right section.
Bruno Haible [Thu, 2 Oct 2003 10:17:02 +0000 (10:17 +0000)]
Don't mention getdomainname, xgetdomainname twice.
Bruno Haible [Wed, 1 Oct 2003 11:11:02 +0000 (11:11 +0000)]
Don't echo the password on Solaris, HP-UX, AIX, OSF/1.
Richard Stallman [Tue, 30 Sep 2003 12:36:17 +0000 (12:36 +0000)]
(regex_compile): Free the stack when returning from function.
Paul Eggert [Tue, 30 Sep 2003 06:11:03 +0000 (06:11 +0000)]
* strftime.c (tm_diff) [! HAVE_TM_GMTOFF]: Fix arg typo in previous patch.
Jim Meyering [Sun, 28 Sep 2003 08:09:34 +0000 (08:09 +0000)]
.
Jim Meyering [Sun, 28 Sep 2003 08:09:13 +0000 (08:09 +0000)]
Correct cpp indentation.
Karl Berry [Sun, 28 Sep 2003 07:15:38 +0000 (07:15 +0000)]
.
Paul Eggert [Sun, 28 Sep 2003 03:41:50 +0000 (03:41 +0000)]
Trivial fixes to Makefile.am parts of module listings.
Paul Eggert [Sat, 27 Sep 2003 22:36:10 +0000 (22:36 +0000)]
Omit the special code that used __typeof__ for MIN and MAX,
since we worry that it could be more trouble than it's worth.
Paul Eggert [Sat, 27 Sep 2003 16:13:48 +0000 (16:13 +0000)]
Add 'free' module.
Paul Eggert [Sat, 27 Sep 2003 15:46:21 +0000 (15:46 +0000)]
Update comment about utimes bugs.
Paul Eggert [Sat, 27 Sep 2003 14:30:57 +0000 (14:30 +0000)]
(error_tail): Don't cast alloca to (void *); it's already (void *).
Karl Berry [Sat, 27 Sep 2003 12:47:07 +0000 (12:47 +0000)]
update from automake
Karl Berry [Sat, 27 Sep 2003 12:44:53 +0000 (12:44 +0000)]
update from texinfo
Paul Eggert [Sat, 27 Sep 2003 05:11:56 +0000 (05:11 +0000)]
* error.c (error_tail): Move some declarations
into inner scope where the local variables are used.
Bruno Haible [Fri, 26 Sep 2003 15:28:49 +0000 (15:28 +0000)]
Better avoid collision with AIX stpncpy().
Bruno Haible [Fri, 26 Sep 2003 15:25:30 +0000 (15:25 +0000)]
Better handling of collision with AIX stpncpy() function.
Bruno Haible [Fri, 26 Sep 2003 14:28:46 +0000 (14:28 +0000)]
Test result on AIX 4.3.3 and AIX 5.1.
Bruno Haible [Fri, 26 Sep 2003 14:28:26 +0000 (14:28 +0000)]
Test result on glibc 2.x.
Bruno Haible [Fri, 26 Sep 2003 14:28:10 +0000 (14:28 +0000)]
Test for stpncpy function.
Karl Berry [Fri, 26 Sep 2003 14:03:13 +0000 (14:03 +0000)]
really install update from automake
Paul Eggert [Fri, 26 Sep 2003 07:43:06 +0000 (07:43 +0000)]
Document recent checkins.
Paul Eggert [Fri, 26 Sep 2003 07:41:40 +0000 (07:41 +0000)]
(SIZE_MAX) [!defined SIZE_MAX]: Define.
(error_tail): Do not loop, reallocating temporary buffer, since
the original size is big enough. This avoids one potential size
overflow calculation. Check for size overflow when calculating
temporary buffer size. Free temporary buffer when done, if
it was allocated with malloc; this closes a memory leak.
Paul Eggert [Fri, 26 Sep 2003 07:35:01 +0000 (07:35 +0000)]
Merge changes from glibc.
Karl Berry [Fri, 26 Sep 2003 07:12:40 +0000 (07:12 +0000)]
.
Bruno Haible [Thu, 25 Sep 2003 14:12:43 +0000 (14:12 +0000)]
New module 'getdomainname'.
Karl Berry [Thu, 25 Sep 2003 12:21:19 +0000 (12:21 +0000)]
updates from libc,automake
Bruno Haible [Thu, 25 Sep 2003 12:01:28 +0000 (12:01 +0000)]
New module 'version-etc-2'.
Bruno Haible [Thu, 25 Sep 2003 11:01:25 +0000 (11:01 +0000)]
Fix comment.