From 920ff5fd83578a32316d92ddb0025ee3a614742f Mon Sep 17 00:00:00 2001 From: Hyihong Chae Date: Wed, 7 Jun 2017 14:35:09 +0900 Subject: [PATCH] fix SATIZENVUL-265 issue(SVACE: CPP_ALLOCATION_ERRORS) Change-Id: Ifc8dfc1142859a0e2e6e505cf6bf7cc50fc1f197 Signed-off-by: HyiHong Chae --- packaging/smartcard-service.spec | 2 +- server/ServerReader.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packaging/smartcard-service.spec b/packaging/smartcard-service.spec index 5861314..4ff1378 100755 --- a/packaging/smartcard-service.spec +++ b/packaging/smartcard-service.spec @@ -8,7 +8,7 @@ ################################################################################ Name: smartcard-service Summary: Smartcard Service FW -Version: 0.1.52 +Version: 0.1.53 Release: 0 Group: Network & Connectivity Requires: %{name}-common = %{version}-%{release} diff --git a/server/ServerReader.cpp b/server/ServerReader.cpp index 4b880d2..580c697 100644 --- a/server/ServerReader.cpp +++ b/server/ServerReader.cpp @@ -78,7 +78,7 @@ namespace smartcard_service_api { ServerSession *session = NULL; - session = new ServerSession(this, certHashes, caller, terminal); + session = new (std::nothrow) ServerSession(this, certHashes, caller, terminal); if (session == NULL) return session; -- 2.7.4