File ghostscript-9.00-bnc559122.patch of Package ghostscript-library.openSUSE_11.4_Update

--- base/gsmisc.c
+++ base/gsmisc.c	2009-11-24 17:16:39.000000000 +0000
@@ -260,7 +260,7 @@ int gs_throw_imp(const char *func, const
     va_list ap;
 
     va_start(ap, fmt);
-    vsprintf(msg, fmt, ap);
+    vsnprintf(msg, sizeof (msg), fmt, ap);
     msg[sizeof(msg) - 1] = 0;
     va_end(ap);
 
--- base/gxttfb.c
+++ base/gxttfb.c	2010-09-29 11:48:26.015926742 +0000
@@ -246,7 +246,7 @@ static int DebugPrint(ttfFont *ttf, cons
 
     if (gs_debug_c('Y')) {
 	va_start(args, fmt);
-	count = vsprintf(buf, fmt, args);
+	count = vsnprintf(buf, sizeof (buf), fmt, args);
 	/* NB: moved debug output from stdout to stderr
 	 */
 	errwrite(ttf->DebugMem, buf, count);
--- base/rinkj/rinkj-byte-stream.c
+++ base/rinkj/rinkj-byte-stream.c	2009-11-24 17:16:39.000000000 +0000
@@ -43,7 +43,7 @@ rinkj_byte_stream_printf (RinkjByteStrea
   va_list ap;
 
   va_start (ap, fmt);
-  len = vsprintf (str, fmt, ap);
+  len = vsnprintf (str, sizeof (str), fmt, ap);
   va_end (ap);
   return rinkj_byte_stream_write (bs, str, len);
 }
openSUSE Build Service is sponsored by