Fix Prevent issue
authorZbigniew Kostrzewa <z.kostrzewa@samsung.com>
Mon, 7 Oct 2013 12:15:03 +0000 (14:15 +0200)
committerHoseon LEE <hoseon46.lee@samsung.com>
Mon, 14 Oct 2013 11:35:21 +0000 (20:35 +0900)
[Issue#]   CID: 33146
[Problem]  Unchecked return value
[Cause]    Return value from function is not checked
[Solution] Check return value

[Verification] Build repository

Change-Id: Id3c6c49239ed0d42a1762ae18e2bc07cb24678a9

src/view/webkit/injected-bundle/injected_bundle_decryption_support.cpp

index a0b4ad4..fd98bc7 100644 (file)
@@ -148,7 +148,9 @@ class DecryptionSupportImplementation
             b64 = BIO_new(BIO_f_base64());
             bmem = BIO_new(BIO_s_mem());
             b64 = BIO_push(b64, bmem);
-            BIO_write(b64, DecryptedString.get(), fileSize);
+            if (BIO_write(b64, DecryptedString.get(), fileSize) <= 0) {
+                _E("No data has been written");
+            }
             BIO_flush(b64);
             BIO_get_mem_ptr(b64, &bptr);