[PATCH] string: Add tests for zero length string inputs

Florian Weimer fweimer@redhat.com
Fri Dec 12 09:51:00 GMT 2014


On 10/15/2014 11:41 AM, Will Newton wrote:
> On 17 September 2014 00:40, Will Newton <will.newton@linaro.org> wrote:
>> For the string functions that take string lengths as an argument we
>> should ensure that no data is read or written if a length of zero is
>> specified. Pointers to PROT_NONE memory are used to ensure that any
>> reads or writes will cause a fault.

> Is there any consensus that this patch is useful or should I drop it?

I, for one, think the patch is useful.

-- 
Florian Weimer / Red Hat Product Security



More information about the Libc-alpha mailing list