Files
u-boot/lib
David Gibson 491c7b6f42 libfdt: Fix undefined behaviour in fdt_offset_ptr()
Using pointer arithmetic to generate a pointer outside a known object is,
technically, undefined behaviour in C.  Unfortunately, we were using that
in fdt_offset_ptr() to detect overflows.

To fix this we need to do our bounds / overflow checking on the offsets
before constructing pointers from them.

Reported-by: David Binderman <dcb314@hotmail.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Simon Glass <sjg@chromium.org>
2016-10-13 13:54:10 -06:00
..
2016-02-06 12:00:59 +01:00
2016-01-19 08:31:21 -05:00
2011-01-18 23:38:08 +01:00
2016-04-11 20:48:26 -04:00
2010-09-19 19:29:47 +02:00
2016-05-02 18:37:09 -04:00
2014-10-25 07:02:01 -04:00
2012-04-29 14:14:08 +02:00
2015-07-21 17:39:28 -06:00
2016-01-19 08:31:21 -05:00
2016-06-06 13:39:18 -04:00
2016-10-11 11:55:33 +08:00
2016-02-26 08:53:10 -07:00