[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE_3_1_BRANCH: kdeutils/ark [INSECURITY]
From:       Lubos Lunak <l.lunak () kde ! org>
Date:       2002-12-05 18:47:20
[Download RAW message or body]

CVS commit by lunakl: 

Maximum sizes for sscanf().


  M +3 -3      compressedfile.cpp   1.4.2.2 [INSECURITY]


--- kdeutils/ark/compressedfile.cpp:1.4.2.1	Wed Dec  4 00:38:56 2002
@@ -1,6 +1,6 @@
 /*
 
-  $Id: compressedfile.cpp,v 1.4.2.1 2002/12/03 23:38:56 waba Exp $
+  $Id: compressedfile.cpp,v 1.4.2.2 2002/12/05 18:47:20 lunakl Exp $
 
     ark: A program for modifying archives via a GUI.
 
@@ -211,8 +211,8 @@
       char filename[4096];
 
       FILE *readHandle = popen(QFile::encodeName(command), "r");
-      fscanf(readHandle, "%[-A-Za-z:0-9_+-. ]", line);
-      sscanf(line, "%[-drwxst] %[0-9] %[0-9.a-zA-Z_] %[0-9.a-zA-Z_] %[0-9] \
%12[A-Za-z0-9: ]%1[ ]%[^\n]", columns[0], columns[5], +      fscanf(readHandle, \
"%4095[-A-Za-z:0-9_+-. ]", line); +      sscanf(line, "%79[-drwxst] %79[0-9] \
%79[0-9.a-zA-Z_] %79[0-9.a-zA-Z_] %79[0-9] %12[A-Za-z0-9: ]%1[ ]%79[^\n]", \
columns[0], columns[5],  columns[1], columns[2], columns[3],
 	     columns[4], columns[6], filename);
 


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic