diff options
author | Alexander Kanavin <alexander.kanavin@linux.intel.com> | 2016-12-30 18:38:51 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-03-14 14:42:16 +0000 |
commit | bbddf83f65f490c88130d794c53ff9e4c45d0693 (patch) | |
tree | bec599b6bbb2c0022f922c97601cb621e4b3f3b9 /meta/recipes-devtools/rpm/rpm/rpm-opendb-before-verifyscript-to-avoid-null-point.patch | |
parent | 27d56eeebd8197e359aae0a7ccac74cb55ff794d (diff) | |
download | poky-bbddf83f65f490c88130d794c53ff9e4c45d0693.tar.gz |
rpm: remove 5.x recipe
(From OE-Core rev: d0365f35303db3595688a6e5290677e02a72c54e)
Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/rpm/rpm/rpm-opendb-before-verifyscript-to-avoid-null-point.patch')
-rw-r--r-- | meta/recipes-devtools/rpm/rpm/rpm-opendb-before-verifyscript-to-avoid-null-point.patch | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/meta/recipes-devtools/rpm/rpm/rpm-opendb-before-verifyscript-to-avoid-null-point.patch b/meta/recipes-devtools/rpm/rpm/rpm-opendb-before-verifyscript-to-avoid-null-point.patch deleted file mode 100644 index e2191245f8..0000000000 --- a/meta/recipes-devtools/rpm/rpm/rpm-opendb-before-verifyscript-to-avoid-null-point.patch +++ /dev/null | |||
@@ -1,24 +0,0 @@ | |||
1 | rpm: opendb before rpmverifyscript to avoid null point input | ||
2 | |||
3 | If the command is "rpm -V" and the return value of (headerIsEntry(h, RPMTAG_VERIFYSCRIPT) | ||
4 | || headerIsEntry(h, RPMTAG_SANITYCHECK)) located in /lib/verify.c is true, it will call | ||
5 | rpmpsmStage function(rpmVerifyScript->rpmpsmScriptStage->rpmpsmStage) and occur segment | ||
6 | fault because of null point(rpmtsGetRdb(ts) == NULL and rpmtsGetRdb(ts)->db_txn). | ||
7 | So we open rpmdb to avoid bad input when find headerIsEntry true. | ||
8 | |||
9 | Upstream-Status: Submitted [RPM5 maintainer] | ||
10 | |||
11 | Signed-off-by: Zhixiong Chi <zhixiong.chi@windriver.com> | ||
12 | Index: rpm-5.4.14/lib/verify.c | ||
13 | =================================================================== | ||
14 | --- rpm-5.4.14.orig/lib/verify.c 2015-07-22 22:09:59.992895355 +0800 | ||
15 | +++ rpm-5.4.14/lib/verify.c 2015-08-13 10:20:33.752177906 +0800 | ||
16 | @@ -613,6 +613,8 @@ | ||
17 | { | ||
18 | FD_t fdo = fdDup(STDOUT_FILENO); | ||
19 | |||
20 | + rpmtsOpenDB(ts, O_RDONLY); /*Open the DB to avoid null point input in function rpmpsmStage()*/ | ||
21 | + | ||
22 | rc = rpmfiSetHeader(fi, h); | ||
23 | if ((rc = rpmVerifyScript(qva, ts, fi, fdo)) != 0) | ||
24 | ec += rc; | ||