Skip to contentSkip to conversation

fix overflow in growfiles.c

PATCH New Cyril Hrubis 1 participant 1 message Nov 5, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fix overflow in growfiles.c

Hi!
Following patch fixes buffer overflow.c.

Signature · 2 lines
Cyril Hrubis
[email protected]
testcases/kernel/fs/doio/growfiles.c +1 -1
Index: delme/testcases/kernel/fs/doio/growfiles.c
===================================================================
@@ -390,7 +390,7 @@ int backgrnd = 1;		/* return control to 
 struct stat statbuf;
 int time_iterval = -1;
 time_t start_time;
-char reason[40];		/* reason for loop termination */
+char reason[128];		/* reason for loop termination */
 int num_procs=1;
 int forker_mode=0;
 int reexec=REXEC_INIT;		/* reexec info */

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july

_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list