Files
ipxe/src/core
Michael Brown 2b4be69eee [libc] Prevent strndup() from reading beyond the end of the string
strndup() may be called on a string which is not NUL-terminated.  Use
strnlen() instead of strlen() to ensure that we do not read beyond the
end of such a string.

Add self-tests for strndup(), including a test case with an
unterminated string.

Originally-fixed-by: Marin Hannache <git@mareo.fr>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
2014-05-18 21:09:49 +01:00
..
2014-01-06 01:46:20 +01:00
2005-03-08 18:53:11 +00:00
2010-04-19 23:43:39 +01:00
2013-07-15 13:49:48 +02:00
2013-10-21 15:08:18 +01:00
2010-04-19 23:43:39 +01:00
2014-04-22 13:59:21 +01:00
2012-10-15 18:32:16 +01:00