From 7aa3617e99e218e003a1b248900f2f2c16c3f0bd Mon Sep 17 00:00:00 2001 From: "jc815.lee" Date: Fri, 11 Oct 2013 18:42:48 +0900 Subject: [PATCH] Add Exception log for Base64Decode failure [model] [binary_type] [customer] [issue#] [problem] [cause] [solution] [team] [request] [horizontal_expansion] Change-Id: I98730cbe127c0aa716013d194e1da40c63b57277 Signed-off-by: jc815.lee --- src/security/cert/FSecCert_Base64.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/security/cert/FSecCert_Base64.cpp b/src/security/cert/FSecCert_Base64.cpp index 340351f..2453f8d 100644 --- a/src/security/cert/FSecCert_Base64.cpp +++ b/src/security/cert/FSecCert_Base64.cpp @@ -69,6 +69,7 @@ _Base64::Decode(char* pIn, int inSize, byte* pOut, int& outSize) } std::unique_ptr< ByteBuffer > pDecodedBuffer(Tizen::Base::Utility::StringUtil::DecodeBase64StringN(encodedStr)); + SysTryReturn(NID_SEC_CERT, GetLastResult() == E_SUCCESS, -1 , E_SYSTEM, "[%s]. Failed to DecideBase64StringN.", GetLastResult()); SysTryReturn(NID_SEC_CERT, pDecodedBuffer != null, -1, E_SYSTEM, "[E_SYSTEM] Failed to perform base64 decoding."); if (outSize > pDecodedBuffer->GetRemaining()) -- 2.7.4