1
0
Fork 0
remarkable-uboot/lib/libfdt
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
..
Makefile lib: convert makefiles to Kbuild style 2013-10-31 13:26:44 -04:00
README Move libfdt/ into lib/ 2010-04-13 09:13:04 +02:00
fdt.c libfdt: SPDX-License-Identifier: GPL-2.0+ BSD-2-Clause 2013-08-10 09:04:25 -04:00
fdt_empty_tree.c Coding Style cleanup: remove trailing empty lines 2013-10-14 16:06:54 -04:00
fdt_ro.c libfdt: Fix segfault when calling fit_check_format() on corrupt FIT images 2014-06-19 11:18:42 -04:00
fdt_rw.c libfdt: SPDX-License-Identifier: GPL-2.0+ BSD-2-Clause 2013-08-10 09:04:25 -04:00
fdt_strerror.c libfdt: SPDX-License-Identifier: GPL-2.0+ BSD-2-Clause 2013-08-10 09:04:25 -04:00
fdt_sw.c libfdt: SPDX-License-Identifier: GPL-2.0+ BSD-2-Clause 2013-08-10 09:04:25 -04:00
fdt_wip.c libfdt: SPDX-License-Identifier: GPL-2.0+ BSD-2-Clause 2013-08-10 09:04:25 -04:00
libfdt_internal.h libfdt: SPDX-License-Identifier: GPL-2.0+ BSD-2-Clause 2013-08-10 09:04:25 -04:00

README

The libfdt functionality was written by David Gibson.  The original
source came from the git repository:

URL:		git://ozlabs.org/home/dgibson/git/libfdt.git

author		David Gibson <dgibson@sneetch.(none)>
		Fri, 23 Mar 2007 04:16:54 +0000 (15:16 +1100)
committer	David Gibson <dgibson@sneetch.(none)>
		Fri, 23 Mar 2007 04:16:54 +0000 (15:16 +1100)
commit		857f54e79f74429af20c2b5ecc00ee98af6a3b8b
tree		2f648f0f88225a51ded452968d28b4402df8ade0
parent		07a12a08005f3b5cd9337900a6551e450c07b515

To adapt for u-boot usage, only the applicable files were copied and
imported into the u-boot git repository.
Omitted:
* GPL - u-boot comes with a copy of the GPL license
* test subdirectory - not directly useful for u-boot

After importing, other customizations were performed.  See the git log
for details.

Jerry Van Baren