Changeset - 7c6860c8d8cd
[Not reviewed]
default
0 1 0
Ethan Zonca (ethanzonca) - 15 years ago 2010-03-23 23:12:18
e@ethanzonca.com
Fixed stack smashing (hopefully)
1 file changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/server/slavefuncs.c
Show inline comments
 
@@ -804,12 +804,12 @@ int slaveBenchmark(char *datadir, int *b
 

	
 
  time(&startTime);
 

	
 
  char buf[10];
 
  char buf[20];
 
  struct execio *testrem;
 
  size_t readlen;
 

	
 
  ret = execio_open(&testrem, command, cmd);
 
  buf[20] = '\0';
 
  buf[19] = '\0';
 
  while(!execio_read(testrem, buf, 20, &readlen))
 
    {
 
      if(readlen > 20) {
0 comments (0 inline, 0 general)