bug-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Buffer overflow in orig/implicit.c


From: Mustapha Abiola
Subject: Buffer overflow in orig/implicit.c
Date: Sat, 28 Jun 2014 06:29:38 +0100

Kindly consider my fix for the lack of bounds checks in implicit.c

Index: make-3.82/implicit.c
===================================================================
--- make-3.82.orig/implicit.c
+++ make-3.82/implicit.c
@@ -488,6 +488,9 @@ pattern_search (struct file *file, int a
dir = pathdir;
}
+ if (stemlen >= PATH_MAX)
+ fatal (NILF, _("File name too long"));
+
DBS (DB_IMPLICIT, (_("Trying pattern rule with stem `%.*s'.\n"),
(int) stemlen, stem));

Thanks.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]