aboutsummaryrefslogtreecommitdiff
path: root/srcpkgs/plib/patches/CVE-2011-4620.diff
blob: 920580c6c02aebaea490c97bb66d125377fef41b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- src/util/ulError.cxx
+++ src/util/ulError.cxx
@@ -39,7 +39,7 @@
 {
   va_list argp;
   va_start ( argp, fmt ) ;
-  vsprintf ( _ulErrorBuffer, fmt, argp ) ;
+  vsnprintf ( _ulErrorBuffer, sizeof(_ulErrorBuffer), fmt, argp ) ;
   va_end ( argp ) ;
  
   if ( _ulErrorCB )