Menu

#20 pref.cpp: possibly wring char tmp[ ] ?!

open
nobody
LinKT (19)
5
2008-10-19
2008-10-19
No

cat linkt-0.8rc3_linkt_pref.cpp__fix-destbufferoverflow.diff
diff -Naur _linkt-0.8rc3//linkt/pref.cpp linkt-0.8rc3/linkt/pref.cpp
--- _linkt-0.8rc3//linkt/pref.cpp 2004-11-11 14:34:39.000000000 +0100
+++ linkt-0.8rc3/linkt/pref.cpp 2008-10-19 13:39:48.647839321 +0200
@@ -868,7 +868,7 @@
//---------------------------------------------------------------------------
void PrefFiles::slotImportCText()
{
- char tmp[1000];
+ char tmp[5000]; // was 1000, but fgets(tmp,4999,f) ??????!!!
int i,line;
FILE *f;

@@ -913,7 +913,7 @@
//---------------------------------------------------------------------------
void PrefFiles::slotImportQText()
{
- char tmp[1000];
+ char tmp[5000]; // was 1000, but fgets(tmp,4999,f) ??????!!!
int i,line;
FILE *f;

@@ -958,7 +958,7 @@
//---------------------------------------------------------------------------
void PrefFiles::slotImportHelp()
{
- char tmp[1000];
+ char tmp[5000]; // was 1000, but fgets(tmp,4999,f) ??????!!!
int i,line;
FILE *f;

@@ -1003,7 +1003,7 @@
//---------------------------------------------------------------------------
void PrefFiles::slotImportInfo()
{
- char tmp[1000];
+ char tmp[5000]; // was 1000, but fgets(tmp,4999,f) ??????!!!
int i,line;
FILE *f;

@@ -1048,7 +1048,7 @@
//---------------------------------------------------------------------------
void PrefFiles::slotImportNews()
{
- char tmp[1000];
+ char tmp[5000]; // was 1000, but fgets(tmp,4999,f) ??????!!!
int i,line;
FILE *f;

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.