kumba       14/04/19 01:43:09

  Added:                xc-4.3.2-fix-set_bps-overflow.patch
  Log:
  Update DESCRIPTION and add 4.3.2-r4, which corrects a buffer overflow if 
specifying 115200 baud in xc.init.
  
  (Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key 
D25D95E3)

Revision  Changes    Path
1.1                  net-dialup/xc/files/xc-4.3.2-fix-set_bps-overflow.patch

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dialup/xc/files/xc-4.3.2-fix-set_bps-overflow.patch?rev=1.1&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dialup/xc/files/xc-4.3.2-fix-set_bps-overflow.patch?rev=1.1&content-type=text/plain

Index: xc-4.3.2-fix-set_bps-overflow.patch
===================================================================
diff -Naurp xc-4.3.2.orig/xcmain.c xc-4.3.2/xcmain.c
--- xc-4.3.2.orig/xcmain.c      1996-11-24 01:35:41.000000000 -0500
+++ xc-4.3.2/xcmain.c   2014-04-18 19:58:26.267227496 -0400
@@ -696,8 +696,8 @@ static void
 SET_bps()
 {
        if (statflag){
-               char br[6];
-               sprintf(br, "%d", mrate( NULL ));
+               char br[11];
+               snprintf(br, 11, "%d", mrate( NULL ));
                fprintf(tfp, statfmt, "bps", "Bits per Second", br);
                return;
        }




Reply via email to