]> Savannah Git Hosting - gnulib.git/commitdiff
maint.mk: sc_prohibit_path_max_allocation: don't FP for UNIX_PATH_MAX
authorJim Meyering <meyering@redhat.com>
Mon, 17 Sep 2012 09:38:36 +0000 (11:38 +0200)
committerJim Meyering <meyering@redhat.com>
Tue, 18 Sep 2012 06:51:48 +0000 (08:51 +0200)
* 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

ChangeLog
top/maint.mk

index ce15e28c3cb5fdec974d4f3504e51a483ec8b52a..eeea310d6f8db8e36036ac9895944ea0a8c408fe 100644 (file)
--- 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
index 9c660a14bef00e15e56e389e44ed17074ce5ce16..f77d0c1e2709d7d8f91bddae2bd7fae9c03fbb7a 100644 (file)
@@ -1216,7 +1216,7 @@ sc_Wundef_boolean:
 # 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)