Source-Changes-HG archive

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

[src/netbsd-1-4]: src/usr.sbin/amd/amd pull up rev 1.6 from trunk (requested ...



details:   https://anonhg.NetBSD.org/src/rev/9044e10038a3
branches:  netbsd-1-4
changeset: 469428:9044e10038a3
user:      cgd <cgd%NetBSD.org@localhost>
date:      Tue Sep 21 04:55:10 1999 +0000

description:
pull up rev 1.6 from trunk (requested by christos):
  Upgrade amd(8) and related software to fix expoitable stack overflows
  in amq(8), as reported in BUGTRAQ and elsewhere.

diffstat:

 usr.sbin/amd/amd/conf_parse.y |  20 ++++++++++++++++++--
 1 files changed, 18 insertions(+), 2 deletions(-)

diffs (41 lines):

diff -r 353fc065306c -r 9044e10038a3 usr.sbin/amd/amd/conf_parse.y
--- a/usr.sbin/amd/amd/conf_parse.y     Tue Sep 21 04:55:04 1999 +0000
+++ b/usr.sbin/amd/amd/conf_parse.y     Tue Sep 21 04:55:10 1999 +0000
@@ -38,12 +38,12 @@
  *
  *     %W% (Berkeley) %G%
  *
- * Id: conf_parse.y,v 1.2 1999/01/10 21:53:44 ezk Exp 
+ * Id: conf_parse.y,v 1.3 1999/04/16 14:20:59 ezk Exp 
  *
  */
 
 %{
-/*     $NetBSD: conf_parse.y,v 1.5 1999/02/01 19:05:10 christos Exp $  */
+/*     $NetBSD: conf_parse.y,v 1.5.2.1 1999/09/21 04:55:10 cgd Exp $   */
 
 #ifdef HAVE_CONFIG_H
 # include <config.h>
@@ -51,6 +51,22 @@
 #include <am_defs.h>
 #include <amd.h>
 
+/* AIX requires this to be the first thing in the file. */
+#ifndef __GNUC__
+# if HAVE_ALLOCA_H
+#  include <alloca.h>
+# else /* not HAVE_ALLOCA_H */
+#  ifdef _AIX
+#pragma alloca
+#  else /* not _AIX */
+#   ifndef alloca
+  /* predefined by HP cc +Olibcalls */
+voidp alloca();
+#   endif /* not alloca */
+#  endif /* not _AIX */
+# endif /* not HAVE_ALLOCA_H */
+#endif /* not __GNUC__ */
+
 extern char *yytext;
 extern int yylineno;
 extern int yylex(void);



Home | Main Index | Thread Index | Old Index