Spotted by Luiz, another invalid memory access when trying to read past
the end of a string that's not nul-terminated.
strndup to the rescue.
Cheers
Hi,
On Tue, Mar 24, 2009, Bastien Nocera wrote:
> Never mind, previous patch was off by one. Corrected patch attached.
I already pushed the first one and fixed this issue myself in a second
commit.
Johan
Hi Bastien,
On Tue, Mar 24, 2009, Bastien Nocera wrote:
> Spotted by Luiz, another invalid memory access when trying to read past
> the end of a string that's not nul-terminated.
>
> strndup to the rescue.
Thanks! Pushed upstream.
Johan
On Tue, 2009-03-24 at 11:55 +0000, Bastien Nocera wrote:
> Spotted by Luiz, another invalid memory access when trying to read past
> the end of a string that's not nul-terminated.
>
> strndup to the rescue.
Never mind, previous patch was off by one. Corrected patch attached.