Jon Nalley af67b25250 libfdt: Fix segfault when calling fit_check_format() on corrupt FIT images
It has been observed that fit_check_format() will fail when passed a
corrupt FIT image.  This was tracked down to _fdt_string_eq():
return (strlen(p) == len) && (memcmp(p, s, len) == 0);

In the case of a corrupt FIT image one can't depend on 'p' being NULL
terminated.  I changed it to use strnlen() to fix the issue.

Signed-off-by: Tom Rini <trini@ti.com>
2014-06-19 11:18:42 -04:00
..
2014-06-11 16:27:06 -04:00
2010-04-13 09:13:04 +02:00
2010-04-13 09:13:04 +02:00
2010-04-13 09:13:04 +02:00
2010-04-13 09:13:04 +02:00
2010-04-13 09:13:04 +02:00
2010-04-13 09:13:04 +02:00
2011-01-18 23:38:08 +01:00
2014-01-08 17:20:34 -07:00
2010-04-21 23:42:38 +02:00
2010-09-19 19:29:47 +02:00
2013-11-08 15:25:14 -05:00
2014-05-28 10:58:19 +09:00
2012-04-29 14:14:08 +02:00
2014-05-12 15:19:46 -04:00