Re: [dev][sbase] Readlink doesn't null-terminate buf

From: Michał Kazior <kazikcz_AT_gmail.com>
Date: Tue, 9 Jul 2013 19:35:40 +0200

On 9 July 2013 19:19, Krol, Willem van de <008054_AT_jfc.nl> wrote:
> Hello all,
>
> The man page of readlink(2) says it "does not append a null byte to buf".
> The readlink utility in sbase, however, assumes it does. I attached a patch.

Hi,

The patch introduces buffer overflow. sizeof(buf)-1 should be passed
to readlink().


Regards,
Michał Kazior.
Received on Tue Jul 09 2013 - 19:35:40 CEST

This archive was generated by hypermail 2.3.0 : Tue Jul 09 2013 - 19:48:02 CEST