FAQ

svn commit: r886294 - /lucene/lucy/trunk/charmonizer/src/Charmonizer/Probe/LargeFiles.c

Marvin
Dec 2, 2009 at 8:05 pm
Author: marvin
Date: Wed Dec 2 20:04:56 2009
New Revision: 886294

URL: http://svn.apache.org/viewvc?rev=886294&view=rev
Log:
Fix an inadequate memory allocation in Charmonizer/Probe/LargeFiles.c.

Modified:
lucene/lucy/trunk/charmonizer/src/Charmonizer/Probe/LargeFiles.c

Modified: lucene/lucy/trunk/charmonizer/src/Charmonizer/Probe/LargeFiles.c
URL: http://svn.apache.org/viewvc/lucene/lucy/trunk/charmonizer/src/Charmonizer/Probe/LargeFiles.c?rev=886294&r1=886293&r2=886294&view=diff
==============================================================================
--- lucene/lucy/trunk/charmonizer/src/Charmonizer/Probe/LargeFiles.c (original)
+++ lucene/lucy/trunk/charmonizer/src/Charmonizer/Probe/LargeFiles.c Wed Dec 2 20:04:56 2009
@@ -261,7 +261,7 @@
FILE *truncating_fh;
size_t needed = strlen(create_bigfile_code_a)
+ strlen(fseek_command)
- + strlen(create_bigfile_code_a)
+ + strlen(create_bigfile_code_b)
+ 10;
char *code_buf = (char*)malloc(needed);
reply

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post

1 user in discussion

Marvin: 1 post