From a09332de185d4416e50a27dabda4f7eaba24a509 Mon Sep 17 00:00:00 2001 From: Jan Olszak Date: Tue, 13 Nov 2012 13:12:08 +0100 Subject: [PATCH] [Prevent] Handle return value from CertificateCollection::sort. [Issue#] Unhandled return value. [Bug] N/A [Cause] N/A [Solution] Logging on error. [Verification] Build installer Change-Id: Ia30a0ec3522aa736dc5399f6d879fde9803509a0 --- src/jobs/widget_install/task_certify.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/jobs/widget_install/task_certify.cpp b/src/jobs/widget_install/task_certify.cpp index 2091407..dbfc7cd 100755 --- a/src/jobs/widget_install/task_certify.cpp +++ b/src/jobs/widget_install/task_certify.cpp @@ -132,7 +132,9 @@ void TaskCertify::processDistributorSignature(const SignatureData &data, CertificateCollection collection; collection.load(data.getCertList()); - collection.sort(); + Assert(collection.sort() && + "Certificate collection can't sort"); + Assert(collection.isChain() && "Certificate collection is not able to create chain. " "It is not possible to verify this signature."); -- 2.7.4