You are viewing a plain text version of this content. The canonical link for it is here.
Posted to test-cvs@httpd.apache.org by jo...@apache.org on 2004/03/09 13:07:19 UTC
cvs commit: httpd-test/perl-framework/c-modules/random_chunk mod_random_chunk.c
jorton 2004/03/09 04:07:19
Modified: perl-framework/c-modules/random_chunk mod_random_chunk.c
Log:
Fix stack corruption by httpd_test_split_qs_numbers when
sizeof int != sizeof apr_size_t.
Revision Changes Path
1.10 +2 -2 httpd-test/perl-framework/c-modules/random_chunk/mod_random_chunk.c
Index: mod_random_chunk.c
===================================================================
RCS file: /home/cvs/httpd-test/perl-framework/c-modules/random_chunk/mod_random_chunk.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -w -d -u -r1.9 -r1.10
--- mod_random_chunk.c 1 Jan 2004 13:38:37 -0000 1.9
+++ mod_random_chunk.c 9 Mar 2004 12:07:19 -0000 1.10
@@ -102,8 +102,8 @@
static int random_chunk_handler(request_rec *r)
{
- unsigned int seed = 0;
- unsigned int count = 0;
+ apr_size_t seed = 0;
+ apr_size_t count = 0;
int i;
char buf[MAX_SEGMENT + 1];
unsigned int len;