Heinrich Schuchardt 0931cea3ba dtc: fdtdump: check fdt if not in scanning mode
Running fdtdump without scan mode for an invalid file often
results in a segmentation fault because the fdt header is
not checked.

With the patch the header is checked both in scanning as
well as in non-scanning mode.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
[dwg: Removed unnecessary inline, changed type from int to bool]
Reviewed-by: Simon Glass <sjg@chromium.org>
2016-12-27 09:44:17 +11:00
2013-01-27 14:21:44 -06:00
2015-07-02 12:36:12 +10:00
2016-12-09 16:30:43 +11:00
2016-12-09 16:30:43 +11:00
2016-12-09 16:30:43 +11:00
2016-12-09 16:30:43 +11:00
2016-07-24 01:05:05 +10:00
2016-07-24 01:05:05 +10:00
2016-12-09 16:30:43 +11:00
2016-12-09 16:30:43 +11:00
2007-06-25 21:43:11 -05:00
2016-12-09 16:30:43 +11:00
2016-09-28 11:29:07 +10:00
2016-07-13 00:44:53 +10:00
2016-07-13 00:44:53 +10:00
2007-12-19 08:20:26 -06:00
2016-12-09 16:30:43 +11:00

The source tree contains the Device Tree Compiler (dtc) toolchain for
working with device tree source and binary files and also libfdt, a
utility library for reading and manipulating the binary format.

DTC and LIBFDT are maintained by:

David Gibson <david@gibson.dropbear.id.au>
Jon Loeliger <jdl@jdl.com>

Mailing list
------------
The following list is for discussion about dtc and libfdt implementation
mailto:devicetree-compiler@vger.kernel.org

Core device tree bindings are discussed on the devicetree-spec list:
mailto:devicetree-spec@vger.kernel.org
Description
android_external_dtc
Readme 2.2 MiB
Languages
C 76.1%
Shell 7%
SWIG 4.8%
Python 3.8%
Assembly 2%
Other 6.3%