Re: AW: [Exim] buffer overflow?

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Tim Waugh
Date:  
À: Hirling Endre
CC: exim-users
Sujet: Re: AW: [Exim] buffer overflow?
On Mon, Jun 18, 2001 at 05:38:09PM +0200, Hirling Endre wrote:

> +static char* prepared_address;

[...]
> +    prepared_address = (char*)malloc(hossz+1);

[...]
> +    return prepared_address;

[...]

Now you have a memory leak, and a missing out-of-memory check.

Tim.
*/