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-19 11:18:42 -04:00
2014-06-11 16:27:06 -04:00
2013-11-17 14:11:30 -05:00
2014-06-11 16:25:46 -04:00
2014-03-28 15:06:30 -04:00
2013-11-17 14:11:30 -05:00
2012-07-06 17:30:32 -05:00
2014-04-18 16:14:17 -04:00
2013-07-24 09:44:38 -04:00
2012-01-26 16:09:02 -06:00
2013-07-24 09:44:38 -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
2013-07-24 09:44:38 -04:00
2011-01-18 23:38:08 +01:00
2014-01-08 17:20:34 -07:00
2013-07-24 09:45:01 -04:00
2013-04-19 10:24:14 -04:00
2013-07-24 09:44:38 -04:00
2014-03-04 12:15:30 -05:00
2010-04-21 23:42:38 +02:00
2010-09-19 19:29:47 +02:00
2013-07-24 09:44:38 -04:00
2014-05-28 10:58:19 +09:00
2013-09-03 13:30:14 -06:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-11-08 15:25:14 -05:00
2014-05-28 10:58:19 +09:00
2013-07-24 09:45:01 -04:00
2012-12-13 11:46:07 -07:00
2013-07-24 09:44:38 -04:00
2014-05-23 11:52:51 +03:00
2012-04-29 14:14:08 +02:00
2013-07-24 09:44:38 -04:00
2012-12-06 14:30:40 -08:00
2011-12-07 08:39:54 +01:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2012-12-11 13:17:33 -07:00
2014-05-12 15:19:46 -04:00
2013-10-14 16:06:53 -04:00
2013-10-14 16:06:54 -04:00
2013-07-24 09:44:38 -04:00
2014-01-24 16:59:06 -05:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2014-04-02 16:36:06 -04:00
2014-01-24 16:59:07 -05:00