chiark / gitweb /
Detect missing vsnprintf and mention URL from Nelson Beebe in err msg.
authorian <ian>
Sat, 8 Apr 2006 12:00:49 +0000 (12:00 +0000)
committerian <ian>
Sat, 8 Apr 2006 12:00:49 +0000 (12:00 +0000)
acconfig.h
config.h.in
configure.in
debian/changelog

index 17273022142cf5a67d59ebf1cd57f788a40af1aa..3ead528552cc01b2ac458f435f58e4c10dd19916 100644 (file)
 #define STRSIGNAL(x) "[platform has no strsignal!]"
 #endif
 
+/* VSNPRINTF */
+#ifndef HAVE_VSNPRINTF
+# error "You must have vsnprintf!  Without vsnprintf it is very hard to write secure programs.  If you don't have it then your system libc is probably full of hideous buffer overrun security bugs.  But, if you don't want to fix your system a portable snprintf can be found at http://www.ijs.si/software/snprintf/"
+#endif
+
 /* EPROTO */
 #ifndef HAVE_EPROTO
 #define EPROTO 0
index 0697f090502ff06b6026d192028db8b55fd14ee6..994d2588861e25337f9a21c57890898a992c875c 100644 (file)
@@ -27,6 +27,9 @@
 /* Define if you have the strsignal function.  */
 #undef HAVE_STRSIGNAL
 
+/* Define if you have the vsnprintf function.  */
+#undef HAVE_VSNPRINTF
+
 /* Define if you have the socket library (-lsocket).  */
 #undef HAVE_LIBSOCKET
 
 #define STRSIGNAL(x) "[platform has no strsignal!]"
 #endif
 
+/* VSNPRINTF */
+#ifndef HAVE_VSNPRINTFx
+# error "You must have vsnprintf!  Without vsnprintf it is very hard to write secure programs.  If you don't have it then your system libc is probably full of hideous buffer overrun security bugs.  But, if you don't want to fix your system a portable snprintf can be found at http://www.ijs.si/software/snprintf/"
+#endif
+
 /* EPROTO */
 #ifndef HAVE_EPROTO
 #define EPROTO 0
index 2d42166194131268b3baa02a318631c79cceb683..f46c56a4c0c0252df0d60be669052763dd53ca58 100644 (file)
@@ -46,7 +46,7 @@ AC_CHECK_PROGS(MD5SUM_SIMPLE, md5sum md5 gmd5sum)
 CFLAGS="$CFLAGS -D_GNU_SOURCE"
 
 AC_CHECK_LIB(socket,socket)
-AC_CHECK_FUNCS(setenv strsignal)
+AC_CHECK_FUNCS(setenv strsignal vsnprintf)
 
 AC_CACHE_CHECK(for EPROTO,userv_cv_hdr_eproto,
  AC_EGREP_CPP(yes,
index 28424857dbda61a4054e4bf69dd10e1e56a58598..595c7e9a0a2f76322068300b4824ccf103590130 100644 (file)
@@ -9,6 +9,7 @@ userv (1.0.5) unstable; urgency=low
   Packaging changes:
   * Reran flex (flex Debian 2.5.31-31).
   * Use install -g 0 instead of -g root.  This is more portable, I hope.
+  * Detect missing vsnprintf and mention URL from Nelson Beebe in err msg.
 
  --