openwrt/package/system
Jo-Philipp Wich 889b841048 fwtool: do not omit final 16 byte when image does not contain signature
The fwutil command will interpret the final 16 byte of a given firmware
image files as "struct fwimage_trailer".

In case these bytes do look like a valid trailer, we must ensure that we
print them out along with the remainder of the image to not accidentally
truncate non-trailer-images by 16 bytes when they're piped through fwtool,
e.g. as part of an image verification command sequence.

Some command sequences pipe images through fwtool in order to strip any
possible metadata, certificate or signature trailers and do not expect
bare images without any of that metadata to get truncated as other non-
fwtool specific metadata is expected at the end of the file, e.g. an
information block with an md5sum in case of the combined image format.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-10-17 17:07:12 +02:00
..
ca-certificates ca-certificates: update to version 20190110 2019-03-21 00:57:54 +01:00
fstools fstools: update to latest Git HEAD 2019-09-21 01:12:35 +02:00
fwtool fwtool: do not omit final 16 byte when image does not contain signature 2019-10-17 17:07:12 +02:00
iucode-tool tools: add iucode-tool 2018-02-11 14:39:16 +01:00
mtd mtd: cleanup unused code and variables in fis.c 2019-07-17 23:06:02 +02:00
openwrt-keyring openwrt-keyring: update to Git HEAD 2019-07-25 19:39:51 +02:00
opkg config: introduce separate CONFIG_SIGNATURE_CHECK option 2019-08-06 21:22:27 +02:00
procd procd: update to the latest git HEAD 2019-09-21 01:12:35 +02:00
rpcd rpcd: update to latest Git HEAD 2019-09-21 15:04:18 +02:00
ubox netifd,lldpd,rpcd,log: use generic service_running 2019-09-15 22:53:01 +02:00
ubus packages: set more explicit ABI_VERSION values 2019-01-19 14:31:51 +01:00
ucert build: include BUILD_VARIANT in PKG_BUILD_DIR 2019-08-05 23:22:26 +02:00
uci uci: update to latest Git HEAD 2019-09-01 19:53:30 +02:00
urandom-seed base-files: move urandom seed bits into separate package 2019-06-11 08:06:28 +02:00
urngd urngd: move project to git.openwrt.org 2019-06-17 15:29:58 +02:00
usign usign: update to latest Git HEAD 2019-09-21 01:12:35 +02:00
zram-swap zram-swap: Add extra commands for status/compaction 2019-07-07 13:02:06 +02:00