File: 04_CVE-2011-4620.diff

package info (click to toggle)
plib 1.8.5-15
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,588 kB
  • sloc: cpp: 63,284; sh: 3,457; makefile: 211
file content (12 lines) | stat: -rw-r--r-- 311 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
Description: _CVE 2011 4620.diff
--- a/src/util/ulError.cxx
+++ b/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 )