aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-core/swupd-client/swupd-client_2.87.bb
diff options
context:
space:
mode:
authorDmitry Rozhkov <dmitry.rozhkov@linux.intel.com>2016-04-13 10:31:09 +0300
committerJoshua Lock <joshua.g.lock@intel.com>2016-04-13 12:25:09 +0100
commit3a7af4b83b40928cc5d4112b3c61c5ed6a8bad58 (patch)
tree7b7f42c144362289c45ff11e19bb966faacb82dd /recipes-core/swupd-client/swupd-client_2.87.bb
parent892da5bcd11e150524a607b504cc19fff454bea3 (diff)
downloadmeta-swupd-3a7af4b83b40928cc5d4112b3c61c5ed6a8bad58.tar.gz
meta-swupd-3a7af4b83b40928cc5d4112b3c61c5ed6a8bad58.tar.bz2
meta-swupd-3a7af4b83b40928cc5d4112b3c61c5ed6a8bad58.zip
swupd-client: Check filename for NULL before logging it
In many error situations a fake file struct is passed to the logger. The filename field of the struct needs to be checked for NULL before printing it to a log to avoid dereference of a NULL-pointer. Signed-off-by: Dmitry Rozhkov <dmitry.rozhkov@linux.intel.com>
Diffstat (limited to 'recipes-core/swupd-client/swupd-client_2.87.bb')
-rw-r--r--recipes-core/swupd-client/swupd-client_2.87.bb1
1 files changed, 1 insertions, 0 deletions
diff --git a/recipes-core/swupd-client/swupd-client_2.87.bb b/recipes-core/swupd-client/swupd-client_2.87.bb
index 011d238..251a94f 100644
--- a/recipes-core/swupd-client/swupd-client_2.87.bb
+++ b/recipes-core/swupd-client/swupd-client_2.87.bb
@@ -12,6 +12,7 @@ SRC_URI = "\
file://0005-swupd-client-Add-existence-check-to-staging-target.patch \
file://0006-Backport-Use-rename-instead-of-tar-transform.patch \
file://0007-Add-compatibility-with-libarchive-s-bsdtar-command.patch \
+ file://0001-log.c-Check-filename-for-NULL-before-logging-it.patch \
"
SRC_URI[md5sum] = "5d272c62edb8a9c576005ac5e1182ea3"