On Fri, Nov 02, 2007 at 06:39:46AM +0100, Laurent Licour wrote:
> I think i have found the problem
> 
> this is a (little) stack overflow in option.c.
> I think that this handle by recent versions of gcc with stack-protector
> option
> 
> Here is the patch :
>  
> --- perdition/options.c.ori     2007-11-02 05:42:00.000000000 +0100
> +++ perdition/options.c 2007-11-02 05:42:16.000000000 +0100
> @@ -894,7 +894,7 @@
>    char lower_case[40];
>    char strip_domain[40];
>  #ifdef WITH_SSL_SUPPORT
> -  char ssl_mode[26];
> +  char ssl_mode[40];
>    char *ssl_mode_p = NULL;
>  #endif /* WITH_SSL_SUPPORT */
> 
> This is not optimal, but other parts of the code also use static buffers

Thanks. That seems sensible to me.



-- 
Horms
  H: http://www.vergenet.net/~horms/
  W: http://www.valinux.co.jp/en/




-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to