Marek Vasut
20a154f95b
mkimage: fit: Do not tail-pad fitImage with external data
...
There is no reason to tail-pad fitImage with external data to 4-bytes,
while fitImage without external data does not have any such padding and
is often unaligned. DT spec also does not mandate any such padding.
Moreover, the tail-pad fills the last few bytes with uninitialized data,
which could lead to a potential information leak.
$ echo -n xy > /tmp/data ; \
./tools/mkimage -E -f auto -d /tmp/data /tmp/fitImage ; \
hexdump -vC /tmp/fitImage | tail -n 3
before:
00000260 61 2d 6f 66 66 73 65 74 00 64 61 74 61 2d 73 69 |a-offset.data-si|
00000270 7a 65 00 00 78 79 64 64 |ze..xydd|
^^ ^^ ^^
after:
00000260 61 2d 6f 66 66 73 65 74 00 64 61 74 61 2d 73 69 |a-offset.data-si|
00000270 7a 65 00 78 79 |ze.xy|
Signed-off-by: Marek Vasut <marex@denx.de >
Reviewed-by: Simon Glass <sjg@chromium.org >
Cc: Heinrich Schuchardt <xypron.glpk@gmx.de >
Cc: Tom Rini <trini@konsulko.com >
2020-05-04 07:26:57 -04:00
..
2020-04-26 14:25:21 -06:00
2020-04-26 14:25:21 -06:00
2020-01-30 13:30:35 -05:00
2020-04-26 14:25:21 -06:00
2020-04-27 14:55:29 -04:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2020-04-26 14:23:39 -06:00
2019-10-08 16:35:59 +02:00
2018-05-07 09:34:12 -04:00
2020-04-26 14:25:21 -06:00
2016-06-13 07:46:29 +09:00
2020-01-02 10:27:23 -05:00
2020-04-24 10:10:00 -04:00
2018-05-07 09:34:12 -04:00
2019-12-06 16:44:20 -05:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2019-07-29 00:20:31 +02:00
2019-12-02 18:23:08 -05:00
2020-01-07 11:12:47 -05:00
2018-05-07 09:34:12 -04:00
2019-12-02 18:23:08 -05:00
2020-04-01 07:45:09 -06:00
2020-04-26 14:24:08 -06:00
2018-11-26 22:52:12 -05:00
2020-04-01 07:45:09 -06:00
2019-05-18 12:32:02 -04:00
2019-05-18 12:32:02 -04:00
2020-05-04 07:26:57 -04:00
2019-05-18 12:32:02 -04:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2020-04-26 14:25:21 -06:00
2018-05-07 09:34:12 -04:00
2010-01-26 00:07:13 +01:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2018-05-10 20:38:35 -04:00
2018-05-07 09:34:12 -04:00
2020-04-24 10:10:00 -04:00
2020-04-26 14:24:08 -06:00
2019-03-08 11:31:44 -05:00
2020-04-24 10:10:01 -04:00
2017-06-16 10:11:38 -04:00
2019-01-28 12:59:03 +01:00
2020-02-09 14:57:38 +01:00
2020-04-24 10:10:00 -04:00
2019-01-01 14:12:18 +01:00
2019-12-27 12:55:59 +01:00
2010-07-25 15:17:23 -04:00
2019-04-26 17:51:51 -04:00
2019-05-09 20:22:04 -04:00
2020-04-24 10:10:00 -04:00
2020-04-24 10:10:00 -04:00
2018-09-19 08:59:26 +02:00
2018-05-07 09:34:12 -04:00
2020-04-26 14:23:55 -06:00
2014-12-18 17:26:08 -07:00
2019-11-04 18:15:32 -07:00
2018-11-02 22:39:07 +01:00
2019-12-02 18:23:08 -05:00
2018-05-07 09:34:12 -04:00
2020-04-24 10:10:01 -04:00
2020-05-01 11:34:01 -04:00
2020-04-24 10:10:00 -04:00
2020-04-26 14:25:21 -06:00
2018-05-07 09:34:12 -04:00
2018-12-15 11:49:56 -05:00
2019-10-28 13:32:51 -04:00
2018-05-07 09:34:12 -04:00
2019-12-02 18:23:08 -05:00
2018-05-07 09:34:12 -04:00
2009-04-28 01:16:46 +02:00
2012-09-24 13:17:24 -05:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2020-04-24 10:51:56 -04:00
2020-04-24 10:51:56 -04:00
2019-12-02 18:23:08 -05:00
2018-05-07 09:34:12 -04:00
2019-12-02 18:23:08 -05:00
2018-05-07 09:34:12 -04:00
2019-08-15 13:42:28 +08:00
2019-09-03 09:30:32 +08:00
2019-07-10 16:52:58 -06:00
2018-05-07 10:24:31 -04:00
2020-03-26 22:58:46 +08:00
2019-12-27 15:17:07 +08:00
2019-12-27 15:17:07 +08:00
2019-11-04 18:15:32 -07:00
2019-12-27 15:17:07 +08:00
2019-12-27 15:17:07 +08:00
2020-04-26 14:25:21 -06:00
2020-04-24 10:10:00 -04:00
2019-10-08 16:36:37 +02:00
2020-02-13 17:32:09 +01:00
2017-05-05 16:45:57 -04:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2011-07-31 23:25:41 +09:00
2018-05-07 09:34:12 -04:00
2019-07-30 10:20:06 +02:00
2019-10-24 13:37:02 +02:00
2019-10-28 13:32:51 -04:00
2018-05-11 09:23:44 +02:00
2018-05-11 14:54:57 -04:00