Hi,
I am new to this board, and a new user of raydium.
I install it using the source code from the svn, but when i tried to launch test6 demo an buffer overflow happened. This is due to a bad memory allocation a the line 341 of raydium/php.c : path=malloc(strlen(PHP_INI_PATH));
strlen returns only the number of chars in the string, but it does not include the '\0' chars. and at the next line, you use this new allocated string : strcpy(path,PHP_INI_PATH);
but strcpy needs to store a '\0' so you need to replace the line 341 by : path=malloc(strlen(PHP_INI_PATH)+1);
|