Mercurial > hg > octave-nkf > gnulib-hg
view DEPENDENCIES @ 16705:54b750a813cb
regex: diagnose too-large repeat counts in EREs
Previously, the code did not diagnose the too-large repeat count
in EREs like 'b{1000000000}'; instead, it silently treated the ERE
as if it were 'b\{1000000000}', which is unexpected.
* lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
is too large. REG_ESIZE is used nowhere else, and the diagnostic
is a reasonable one for this problem. Another option would be to
create a new REG_OVERFLOW error for repeat counts that are too large.
(fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
count is too large, so that the caller can distinguish the two cases.
* lib/regex.h (_REG_ESIZE): Document that this is now a generic
"Too large" return code, and that repeat counts are one example of this.
author | Paul Eggert <eggert@cs.ucla.edu> |
---|---|
date | Fri, 16 Mar 2012 14:17:55 -0700 |
parents | 2f911f94bb4f |
children | 579368b4bb16 |
line wrap: on
line source
The following packages are needed by maintainers for using 'gnulib-tool'. In general, Gnulib prefers the latest stable version of each package, but in some cases it also supports older versions; this caters to commonly-used software distributions that may lag behind the latest stable package. Support for older versions is not guaranteed, though, and the version numbers in the following list may be incremented at any time. * A C runtime, compiler, linker, etc. + Mandatory. Using the platform's native 'cc' gives good portability exposure, but you can also use GCC 2.95 or newer. + GCC Homepage: http://gcc.gnu.org/ + Download: http://ftp.gnu.org/gnu/gcc/ ftp://ftp.gnu.org/gnu/gcc/ * A 'make' utility. + Mandatory. Using the platform's native 'make' gives good portability exposure for in-tree builds, but VPATH builds require GNU Make 3.79.1 or newer. + GNU Make Homepage: http://www.gnu.org/software/make/ + Download: http://ftp.gnu.org/gnu/make/ ftp://ftp.gnu.org/gnu/make/ * GNU M4 1.4.5 or newer. + 1.4.5 or newer is mandatory, but 1.4.9 or newer is recommended. + Homepage: http://www.gnu.org/software/m4/ + Download: http://ftp.gnu.org/gnu/m4/ ftp://ftp.gnu.org/gnu/m4/ * Autoconf 2.59 or newer. + Mandatory. + Homepage: http://www.gnu.org/software/autoconf/ + Download: http://ftp.gnu.org/gnu/autoconf/ ftp://ftp.gnu.org/gnu/autoconf/ * Automake 1.9.6 or newer. + Mandatory. + Homepage: http://www.gnu.org/software/automake/ + Download: http://ftp.gnu.org/gnu/automake/ ftp://ftp.gnu.org/gnu/automake/ * A shell + Mandatory. Using the platform's native 'sh' gives good portability exposure, but you can also use Bash. + Homepage: http://www.gnu.org/software/bash/ + Download: http://ftp.gnu.org/gnu/bash/ ftp://ftp.gnu.org/gnu/bash/ * Core POSIX utilities, including: [ basename cat chgrp chmod chown cp dd echo expand expr false hostname install kill ln ls md5sum mkdir mkfifo mknod mv printenv pwd rm rmdir sleep sort tee test touch true uname + Mandatory. Using the platform's native utilities gives good portability exposure, but you can also use GNU coreutils. + Homepage: http://www.gnu.org/software/coreutils/ + Download: http://ftp.gnu.org/gnu/coreutils/ ftp://ftp.gnu.org/gnu/coreutils/ * The comparison utilities 'cmp' and 'diff'. + Mandatory. Using the platform's native utilities gives good portability exposure, but you can also use GNU diffutils. + Homepage: http://www.gnu.org/software/diffutils/ + Download: http://ftp.gnu.org/gnu/diffutils/ ftp://ftp.gnu.org/gnu/diffutils/ * The patch utility 'patch'. + Mandatory if you use gnulib-local diffs. Using the platform's native utilities gives good portability exposure, but you can also use GNU patch. + Homepage: http://www.gnu.org/software/patch/ + Download: http://ftp.gnu.org/gnu/patch/ ftp://ftp.gnu.org/gnu/patch/ * Grep. + Mandatory. Using the platform's native grep gives good portability exposure, but you can also use GNU grep. + Homepage: http://www.gnu.org/software/grep/ + Download: http://ftp.gnu.org/gnu/grep/ ftp://ftp.gnu.org/gnu/grep/ * GNU gettext. + Always use the newest available gettext release, see <http://www.gnu.org/software/gnulib/manual/html_node/gettextize-and-autopoint.html>. + Recommended. Needed if you use modules that use internationalization (many do). + Homepage: http://www.gnu.org/software/gettext/ + Download: http://ftp.gnu.org/gnu/gettext/ ftp://ftp.gnu.org/gnu/gettext/ * Bison 2.0 or newer. + Recommended. Needed if you use the 'parse-datetime' module. + Homepage: http://www.gnu.org/software/bison/ + Download: http://ftp.gnu.org/gnu/bison/ ftp://ftp.gnu.org/gnu/bison/ * GNU gperf 3.0.1 or newer. + Recommended. Needed if you use the 'iconv_open' module. + Homepage: http://www.gnu.org/software/gperf/ + Download: http://ftp.gnu.org/gnu/gperf/ ftp://ftp.gnu.org/gnu/gperf/ * Texinfo 4.6 or newer. + Recommended. Needed if you use modules that include documentation. + Homepage: http://www.gnu.org/software/texinfo/ + Download: http://ftp.gnu.org/gnu/texinfo/ ftp://ftp.gnu.org/gnu/texinfo/ * GNU sed. + Recommended. Needed on platforms where the vendor's 'sed' program is too buggy. + Homepage: http://www.gnu.org/software/sed/ + Download: http://ftp.gnu.org/gnu/sed/ ftp://ftp.gnu.org/gnu/sed/ * GNU libtool 1.5.22 or newer. + Optional. Needed if you want to invoke gnulib-tool with option --libtool. libtool 2.2.x or newer is needed if you want to invoke gnulib-tool with options --create-testdir/--test and --libtool. + Homepage: http://www.gnu.org/software/libtool/ + Download: http://ftp.gnu.org/gnu/libtool/ ftp://ftp.gnu.org/gnu/libtool/