summaryrefslogtreecommitdiffstats
path: root/lib/libalpm/error.c
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2010-12-11 02:43:59 +0100
committerDan McGee <dan@archlinux.org>2010-12-11 02:45:14 +0100
commiteedf4f4e630f98350090ef2824b0981ffb4b7a4a (patch)
tree1235b03ba7a1673097ef408c038a59f82112d6c9 /lib/libalpm/error.c
parentbd08581d2e5c67cc084b7ccb8f67df456bbd9ada (diff)
downloadpacman-eedf4f4e630f98350090ef2824b0981ffb4b7a4a.tar.gz
pacman-eedf4f4e630f98350090ef2824b0981ffb4b7a4a.tar.xz
Fix possible null pointer deref in check_arch
If we have a corrupted database, a package can come through without an arch, causing the code to blow up when making strcmp() calls. It might even be possible with perfectly valid database entries lacking an 'arch =' line. This behavior was seen as at least one of the problems in FS#21668. Ensure pkgarch is not null before doing anything further. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib/libalpm/error.c')
0 files changed, 0 insertions, 0 deletions