[PATCH] fix overflow in growfiles.c

View: New views
2 Messages — Rating Filter:   Alert me  

[PATCH] fix overflow in growfiles.c

by Cyril Hrubis-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi!
Following patch fixes buffer overflow.c.

Signed-off-by: Cyril Hrubis chrubis@...

--
Cyril Hrubis
chrubis@...


Index: delme/testcases/kernel/fs/doio/growfiles.c
===================================================================
--- delme.orig/testcases/kernel/fs/doio/growfiles.c
+++ 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
Ltp-list@...
https://lists.sourceforge.net/lists/listinfo/ltp-list

Re: [PATCH] fix overflow in growfiles.c

by Subrata Modak :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Thu, 2009-11-05 at 17:35 +0100, Cyril Hrubis wrote:
> Hi!
> Following patch fixes buffer overflow.c.
>
> Signed-off-by: Cyril Hrubis chrubis@...

Thanks.

Regards--
Subrata

>
> ------------------------------------------------------------------------------
> 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 Ltp-list@... https://lists.sourceforge.net/lists/listinfo/ltp-list


------------------------------------------------------------------------------
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
Ltp-list@...
https://lists.sourceforge.net/lists/listinfo/ltp-list