generic-poky/meta/recipes-devtools
Zhixiong Chi a21b0473ad rpm: opendb before rpmverifyscript to avoid null point input
If the command is "rpm -V" and the return value of (headerIsEntry(h, RPMTAG_VERIFYSCRIPT)
|| headerIsEntry(h, RPMTAG_SANITYCHECK)) located in /lib/verify.c is true, it will call
rpmpsmStage function(rpmVerifyScript->rpmpsmScriptStage->rpmpsmStage) and occur segment
fault because of null point(rpmtsGetRdb(ts) == NULL and rpmtsGetRdb(ts)->db_txn).
So we open rpmdb to avoid bad input when find headerIsEntry true.

workflow:
main()->rpmcliVerify()->rpmcliArgIter()->rpmQueryVerify()->rpmgiShowMatches()->showVerifyPackage()->
          rpmqv.c         verify.c        query.c             query.c           verify.c(headerIsEntry)
rpmVerifyScript()->rpmpsmScriptStage()->rpmpsmStage()->    rpmtxnCommit(rpmtsGetRdb(ts)->db_txn);
      verify.c            psm.c             psm.c                 psm.c

(From OE-Core rev: 91945b7fcb0c83ca72543e5327e965eca9c269c4)

Signed-off-by: Zhixiong Chi <zhixiong.chi@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2015-08-19 18:05:42 +01:00
..
apt apt: update to 1.0.10.1 2015-08-11 09:28:51 -07:00
autoconf autoconf: simplify perl location forcing logic 2015-05-15 22:08:02 +01:00
autogen autogen: update to 5.18.5 2015-08-11 09:28:51 -07:00
automake automake: simplify perl location forcing logic 2015-05-15 22:08:03 +01:00
binutils binutils: Add MIPS Octeon3 2015-08-19 18:05:40 +01:00
bison bison: fix parallel issue 2015-04-30 23:04:16 +01:00
bootchart2 bootchart2: update to 0.14.7 2015-08-11 09:28:48 -07:00
btrfs-tools btrfs-tools: 4.0.1 -> 4.1.1 2015-07-20 10:40:41 +01:00
build-compare build-compare: update Rename-rpm-check.sh-to-pkg-diff.sh.patch 2015-02-21 22:05:36 +00:00
ccache ccache: 3.1.9 -> 3.1.11 2015-04-21 07:20:23 +01:00
cdrtools cdrtools: update to 3.01a31 2015-08-11 09:28:50 -07:00
chrpath chrpath: upgrade to 0.16 2014-03-02 17:25:28 +00:00
cmake cmake: Upgrade 2.8.12.2 -> 3.2.2 2015-06-27 22:42:52 +01:00
desktop-file-utils Replace one-line DESCRIPTION with SUMMARY 2014-01-02 12:50:18 +00:00
devel-config recipes: convert remaining SUMMARY/DESCRIPTION cosmetic issues 2014-02-17 15:28:59 +00:00
diffstat diffstat: upgrade to 1.60 2015-07-25 14:41:43 +01:00
distcc distcc: update SRC_URI to not use Google Code 2015-08-11 09:28:51 -07:00
dmidecode dmidecode: use absolute paths in fixup task 2015-07-16 15:09:23 +01:00
docbook-dsssl-stylesheets sgml-common-native: fix the generation of sgml-docbook.cat 2014-03-19 14:42:43 +00:00
docbook-sgml-dtd sgml-common-native: fix the generation of sgml-docbook.cat 2014-03-19 14:42:43 +00:00
docbook-utils docbook-utils-native: Unbreak the build after source and build dir split 2013-03-25 20:51:19 +00:00
docbook-xml docbook-xsl-stylesheets: fix do_configure typo 2014-11-12 15:38:33 +00:00
dosfstools dosfstools: fix typo in nofat32_autoselect.patch 2015-07-07 13:33:26 +01:00
dpkg dpkg: Fix for Fedora22 and new versions of tar 2015-07-13 13:47:28 +01:00
e2fsprogs Update alternatives of man pages 2015-07-08 00:01:23 +01:00
elfutils elfutils: fix stack usage warning 2015-07-31 10:32:44 +01:00
expect expect: replace the STAGING_INCDIR with includedir 2015-07-16 15:09:18 +01:00
fdisk gptfdisk: update to 1.0.0 2015-08-10 12:40:31 -07:00
file file: 5.23 -> 5.24 2015-08-10 12:40:20 -07:00
flex flex: fix typo in do_not_create_pdf_doc.patch 2015-07-07 13:33:26 +01:00
gcc gcc-multilib-config: Adapt mips for mips64 and different gcc versions 2015-08-01 07:34:06 +01:00
gdb gdb: Fix detection of 64-bit PPC inferior in gdbserver 2015-07-09 18:00:18 +01:00
git git: 2.4.6 -> 2.5.0 2015-08-10 12:40:20 -07:00
gnu-config gnu-config: Update git version to latest and use it 2015-08-11 09:28:48 -07:00
guile guile: Specify directories to find proper libunistring, libgmp and libltdl 2015-08-19 18:05:34 +01:00
guilt guilt-native: set PV in the recipe to allow upstream version check 2015-08-01 07:34:08 +01:00
help2man help2man-native: 1.46.4 -> 1.47.1 2015-07-31 10:32:43 +01:00
i2c-tools i2c-tools: uprev to 3.1.2 2015-07-12 22:55:42 +01:00
icecc-create-env icecc-create-env-native: add SUMMARY and tweak DESCRIPTION 2014-01-02 12:50:23 +00:00
icon-naming-utils icon-naming-utils: separate B and S 2015-01-16 23:08:27 +00:00
installer adt-installer: use DEPLOY_DIR in ANT_DEPLOY expansion 2015-08-16 22:40:57 +01:00
intltool intltool: Upgrade 0.50.2 -> 0.51.0 2015-07-12 22:55:45 +01:00
json-c meta: enable parallel build for several recipes 2015-02-15 21:58:27 +00:00
kconfig-frontends recipes: Delete superfluous assignments, S = ${WORKDIR}/${BP} 2015-02-24 17:41:44 +00:00
libtool libtool: Fix regression from previous commit 2015-07-09 18:00:21 +01:00
linuxdoc-tools linuxdoc-tools-native: Makedoc.sh uses /tmp and fails w/ noexec mount 2014-10-06 16:03:13 +01:00
m4 recipes: Fix charset.alias for musl 2015-04-21 07:20:25 +01:00
make make: upgrade to 4.1 2014-12-23 10:18:20 +00:00
makedevs makedevs: set and handle S in a proper way 2015-01-23 11:36:27 +00:00
mkelfimage mkelfimage: set CLEANBROKEN 2015-01-16 23:08:24 +00:00
mklibs mklibs-native: Remove dependency on dpkg 2015-07-25 14:41:42 +01:00
mmc mmc-utils: fix the building failure when DEBUG_BUILD is 1 2015-07-01 15:39:57 +01:00
mtd mtd-utils: keep xattr support enabled 2015-08-16 22:40:56 +01:00
mtools mtools: add PACKAGECONFIG for libbsd 2015-06-11 23:59:17 +01:00
nasm nasm: 2.11.06 -> 2.11.08 2015-05-30 22:26:12 +01:00
openjade sgml-common-native: fix the generation of sgml-docbook.cat 2014-03-19 14:42:43 +00:00
opensp opensp: replace obsolete automake macros with working ones 2013-01-15 08:10:12 +00:00
opkg opkg: solve inconsistency of using different lists directories 2015-08-01 22:24:08 +01:00
opkg-utils opkg-utils: use ${bindir} instead of hardcoding /usr/bin 2015-07-31 10:32:38 +01:00
orc openssl/orc: virtclass-native -> class-native 2015-05-14 11:43:56 +01:00
ossp-uuid ossp-uuid: update SRC_URI to not use Google Code 2015-08-01 07:34:07 +01:00
packagegroups packagegroup-*: add RREPLACES/RCONFLICTS 2012-09-04 18:03:18 +01:00
patch recipes: Fix charset.alias for musl 2015-04-21 07:20:25 +01:00
patchelf patchelf: Add patchelf recipe 2014-08-28 15:12:42 +01:00
pax-utils pax-utils: 1.0.3 -> 1.0.5 2015-07-31 10:32:44 +01:00
perl perl: fix build failure if building dir has the "blib" string 2015-08-01 22:24:19 +01:00
pkgconfig pkgconfig: fix typo in fix-glib-configure-libtool-usage.patch 2015-07-07 13:33:26 +01:00
postinst-intercept postinst-intercept: rename recipe for nativesdk only 2014-11-20 14:08:14 +00:00
prelink prelink_git.bb: Update to latest cross-prelink version 2015-04-08 10:53:20 +01:00
pseudo pseudo: fix upstream SRC_URI to enable upstream version check 2015-08-01 07:34:07 +01:00
python python3: delete patches that don't get applied anywhere 2015-08-01 22:24:18 +01:00
qemu qemu: upgrade to 2.4.0 2015-08-19 18:05:32 +01:00
quilt quilt: fix the deps for ptest 2015-08-16 22:40:55 +01:00
remake remake: fix build error 2014-08-11 10:53:05 +01:00
rpm rpm: opendb before rpmverifyscript to avoid null point input 2015-08-19 18:05:42 +01:00
rsync rsync: use ${sysconfdir} instead of hardcoding /etc 2015-07-31 10:32:37 +01:00
run-postinsts run-postinsts: use ${localstatedir} instead of hardcoding /var/lib 2015-07-31 10:32:38 +01:00
sgml-common sgml-common-native: fix the generation of sgml-docbook.cat 2014-03-19 14:42:43 +00:00
sgmlspl sgmlspl-native: 1.03ii -> 1.1 2015-06-08 17:34:03 +01:00
squashfs-tools squashfs-tools: upgrade to newer revision from git 2015-07-08 00:01:19 +01:00
strace strace: add PACKAGECONFIG for bluez 2015-05-14 11:43:59 +01:00
subversion subversion_1.8.13.bb: Upstream-Status updated to Accepted 2015-07-20 10:40:40 +01:00
swabber Replace one-line DESCRIPTION with SUMMARY 2014-01-02 12:50:18 +00:00
syslinux syslinux: drop v6.xx/ from directory path in SRC_URI 2015-08-01 07:34:08 +01:00
tcf-agent tcf-agent: Update to version 1.3 2015-07-25 14:41:43 +01:00
tcltk tcl: 8.6.3 -> 8.6.4 2015-04-21 07:20:25 +01:00
unfs3 recipes: convert remaining SUMMARY/DESCRIPTION cosmetic issues (part 2) 2014-02-20 14:28:13 +00:00
unifdef unifdef: remove fork, package upstream 2014-10-24 17:36:17 +01:00
vala vala: upgrade to version 0.28.0 2015-05-20 21:41:08 +01:00
valgrind valgrind: build ptests without optimizations 2015-08-19 18:05:37 +01:00
xmlto xmlto-native: fixes slow creation of yocto docs 2015-02-03 14:53:54 +00:00
yasm yasm: 1.2.0 -> 1.3.0 2015-06-11 23:59:15 +01:00
zisofs-tools Revert "zisofs-tools-native: Add missing dependency on zlib-native" 2014-03-31 23:04:35 +01:00