Add Exception log for Base64Decode failure
authorjc815.lee <jc815.lee@samsung.com>
Fri, 11 Oct 2013 09:42:48 +0000 (18:42 +0900)
committerjc815.lee <jc815.lee@samsung.com>
Fri, 11 Oct 2013 09:43:20 +0000 (18:43 +0900)
[model]
[binary_type]
[customer]
[issue#]
[problem]
[cause]
[solution]
[team]
[request]
[horizontal_expansion]

Change-Id: I98730cbe127c0aa716013d194e1da40c63b57277
Signed-off-by: jc815.lee <jc815.lee@samsung.com>
src/security/cert/FSecCert_Base64.cpp

index 340351f..2453f8d 100644 (file)
@@ -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())