Files
poky/meta/recipes-devtools
Hongxu Jia 7adde4fa40 rpm: fix rpm -Kv xxx.rpm failed if signature header is larger than 64KB
Since commits [Place file signatures into the signature header where they
belong][1] applied, run `rpm -Kv **.rpm' failed if signature header
is larger than 64KB. Here are steps:

1) A unsigned rpm package, the size is 227560 bytes
$ ls -al xz-src-5.2.5-r0.corei7_64.rpm
-rw-------. 1 mockbuild 1000 227560 Jun  3 09:59

2) Sign the rpm package
$ rpmsign --addsign ... xz-src-5.2.5-r0.corei7_64.rpm

3) The size of signed rpm is 312208 bytes
$ ls -al xz-src-5.2.5-r0.corei7_64.rpm
-rw-------. 1 mockbuild 1000 312208 Jun  3 09:48

4) Run `rpm -Kv' failed with signature hdr data out of range
$ rpm -Kv xz-src-5.2.5-r0.corei7_64.rpm
xz-src-5.2.5-r0.corei7_64.rpm:
error: xz-src-5.2.5-r0.corei7_64.rpm: signature hdr data: BAD, no. of
bytes(88864) out of range

>From 1) and 3), the size of signed rpm package increased
312208 - 227560 = 84648, so the check of dl_max (64KB,65536)
is not enough.

As [1] said:

    This also means the signature header can be MUCH bigger than ever
    before,so bump up the limit (to 64MB, arbitrary something for now)

So [1] missed to multiply by 1024.

[1] f558e88605

(From OE-Core rev: 8359bdd60afafd80d354f7f40ed648643d8db292)

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-06-04 13:27:32 +01:00
..
2020-06-04 13:27:31 +01:00
2020-06-04 13:27:31 +01:00
2020-06-04 13:27:31 +01:00
2020-06-04 13:27:29 +01:00
2020-06-04 13:27:31 +01:00
2019-12-30 08:47:13 +00:00
2020-06-04 13:27:29 +01:00
2020-05-07 12:16:00 +01:00
2020-04-24 14:10:08 +01:00
2020-05-05 13:19:54 +01:00
2019-12-09 12:00:43 +00:00
2020-05-19 22:57:26 +01:00
2020-05-30 12:32:48 +01:00
2020-05-07 12:15:59 +01:00
2019-10-19 23:18:33 +01:00
2018-03-09 09:17:03 -08:00
2020-06-04 13:27:31 +01:00
2020-06-04 13:27:31 +01:00
2020-05-12 15:20:42 +01:00
2020-06-04 13:27:29 +01:00
2020-05-14 14:15:11 +01:00
2019-05-27 17:06:34 +01:00
2020-03-08 08:21:11 +00:00
2020-06-04 13:27:31 +01:00
2019-02-15 16:05:37 +00:00
2019-12-28 23:25:42 +00:00
2019-07-31 23:03:01 +01:00
2020-05-19 22:57:26 +01:00
2019-12-15 09:10:46 +00:00
2020-02-25 10:41:22 +00:00
2019-12-09 12:00:43 +00:00
2020-05-07 12:15:59 +01:00
2018-11-14 11:14:39 +00:00
2020-05-12 15:20:42 +01:00
2020-06-04 13:27:29 +01:00
2020-02-04 15:56:29 +00:00
2020-05-24 23:56:03 +01:00
2020-06-04 13:27:30 +01:00
2020-05-18 06:33:36 +01:00
2020-02-28 23:11:28 +00:00
2020-06-04 13:27:30 +01:00
2020-01-27 16:48:08 +00:00