2e53f9d2f0a8faab6cec0d78958d52c155f6c6eb |
|
02-Jan-2016 |
Anton Blanchard <anton@samba.org> |
Catch unsigned 32bit overflow when parsing flattened device tree offsets We have a couple of checks of the form: if (offset+size > totalsize) die(); We need to check that offset+size doesn't overflow, otherwise the check will pass, and we may access past totalsize. Found with AFL. Signed-off-by: Anton Blanchard <anton@samba.org> [Added a testcase] Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
/external/dtc/tests/dumptrees.c
|
38ad79d33946590c862567c7cbdf25b5a46d8149 |
|
14-Nov-2012 |
Kim Phillips <kim.phillips@freescale.com> |
dtc/tests: don't include fdt.h prior to libfdt.h tests will need fdt type definitions provided in a subsequent patch to libfdt_env.h. Since libfdt.h includes libfdt_env.h in the right order anyway, just remove the fdt.h include. Signed-off-by: Kim Phillips <kim.phillips@freescale.com> Acked-by: David Gibson <david@gibson.dropbear.id.au>
/external/dtc/tests/dumptrees.c
|
fa5b520ccb5e8da8d67ebc1926416753684f4e70 |
|
27-Feb-2008 |
David Gibson <david@gibson.dropbear.id.au> |
dtc: Implement checks for the format of node and property names This patch adds checks to the checking framework to verify that node and property names contain only legal characters, and in the case of node names there is at most one '@'. At present when coming from dts input, this is mostly already ensured by the grammer, however putting the check later means its easier to generate helpful error messages rather than just "syntax error". For dtb input, these checks replace the older similar check built into flattree.c. Testcases for the checks are also implemented. Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
/external/dtc/tests/dumptrees.c
|
08c0be206d5d6b035db11048d19be33216332f2b |
|
19-Dec-2007 |
David Gibson <david@gibson.dropbear.id.au> |
dtc: Add missing copyright notice for dumptrees.c When I released libfdt, I forgot to add a copyright notice to dumptrees.c (probably because the program is so trivial). Apparently the lack causes trouble for Debian, so this patch adds one. I've gone through the git history and double checked that no-one has touched this file except me (and I barely have myself since its initial commit). Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
/external/dtc/tests/dumptrees.c
|
12578976fe9cef82f0c08db3f9a4f550f5085ba4 |
|
14-Jun-2007 |
David Gibson <dgibson@mulberryst.seuss> |
Merge libfdt into dtc. Having pulled the libfdt repository into dtc, merge the makefiles and testsuites so that they build together usefully.
/external/dtc/tests/dumptrees.c
|