Mercurial > hg > octave-nkf > gnulib-hg
changeset 17089:60234c636185
maint.mk: sc_prohibit_path_max_allocation: don't FP for UNIX_PATH_MAX
* top/maint.mk (sc_prohibit_path_max_allocation): Avoid false-positive
match for symbols like UNIX_PATH_MAX. Reported by Richard W.M. Jones
in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
author | Jim Meyering <meyering@redhat.com> |
---|---|
date | Mon, 17 Sep 2012 11:38:36 +0200 |
parents | 1ad5cd44b28f |
children | 4444e06d3a94 |
files | ChangeLog top/maint.mk |
diffstat | 2 files changed, 8 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2012-09-17 Jim Meyering <meyering@redhat.com> + + maint.mk: sc_prohibit_path_max_allocation: don't FP for UNIX_PATH_MAX + * top/maint.mk (sc_prohibit_path_max_allocation): Avoid false-positive + match for symbols like UNIX_PATH_MAX. Reported by Richard W.M. Jones + in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902 + 2012-09-17 Jim Meyering <meyering@redhat.com> maint.mk: teach sc_prohibit_magic_number_exit to accept 77
--- a/top/maint.mk +++ b/top/maint.mk @@ -1216,7 +1216,7 @@ # not be constant, or might overflow a stack. In general, use PATH_MAX as # a limit, not an array or alloca size. sc_prohibit_path_max_allocation: - @prohibit='(\balloca *\([^)]*|\[[^]]*)PATH_MAX' \ + @prohibit='(\balloca *\([^)]*|\[[^]]*)\bPATH_MAX' \ halt='Avoid stack allocations of size PATH_MAX' \ $(_sc_search_regexp)