Skip to main content.
home | support | download

Back to List Archive

Memory overwrite in 2.4?

From: Mark Fletcher <markf(at)>
Date: Tue Nov 11 2003 - 16:14:00 GMT
Running some code under valgrind, I think I came across a memory 
allocation error. In 2.4, in src/header.c, line 180, it currently is:

sw->index_names = (const char **)emalloc( sizeof(char *) + 
(1+index_count) );

But shouldn't the size of the emalloc be sizeof(char*)*(1+index_count)?


Received on Tue Nov 11 16:14:51 2003