From 9680a57f258d4118416104c224153a0292b7328e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jos=C3=A9=20Bollo?= Date: Thu, 26 Jan 2017 21:13:11 +0100 Subject: [PATCH] Fix a possible access to uninitialized memory MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Change-Id: Ica1cf7d81b561ce34039e5212ed6578950f1bfdd Signed-off-by: José Bollo --- src/wgtpkg-files.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wgtpkg-files.c b/src/wgtpkg-files.c index 503a84b..cce6a04 100644 --- a/src/wgtpkg-files.c +++ b/src/wgtpkg-files.c @@ -50,7 +50,7 @@ static unsigned int what_signature(const char *name) return UINT_MAX; len = sizeof(distributor_file_prefix)-1; - if (memcmp(name, distributor_file_prefix, len)) + if (strncmp(name, distributor_file_prefix, len)) return 0; if (name[len] <= '0' || name[len] > '9') return 0; -- 2.16.6