[Issue#] LINUXWRT-234
[Problem] Too many prevent warnings
[Cause] N/A
[Solution] Remove them
[Verification] Build wrt-installer repository
Change-Id: Ic12a44d6a6888bcb9e73b400315968eb08ed4428
ByteBuffer pBuf;
pBuf.Construct(pBufSize);
const byte *pByte = reinterpret_cast<const byte*>(plainBuffer);
ByteBuffer pBuf;
pBuf.Construct(pBufSize);
const byte *pByte = reinterpret_cast<const byte*>(plainBuffer);
- pBuf.SetArray(pByte, 0, pBufSize);
+ if (pBuf.SetArray(pByte, 0, pBufSize) != E_SUCCESS) {
+ LogDebug("Couldnot set pBuf");
+ return NULL;
+ }
- ByteBuffer* getBuffer = pInstance->_TrustZoneService::EncryptN(*appInfo, pBuf);
- return getBuffer;
+ return pInstance->_TrustZoneService::EncryptN(*appInfo, pBuf);
}
Tizen::Base::ByteBuffer* TEST_dec(
}
Tizen::Base::ByteBuffer* TEST_dec(
ByteBuffer pBuf;
pBuf.Construct(pBufSize);
const byte *pByte = reinterpret_cast<const byte*>(plainBuffer);
ByteBuffer pBuf;
pBuf.Construct(pBufSize);
const byte *pByte = reinterpret_cast<const byte*>(plainBuffer);
- pBuf.SetArray(pByte, 0, pBufSize);
+ if (pBuf.SetArray(pByte, 0, pBufSize) != E_SUCCESS) {
+ LogDebug("Couldnot set pBuf");
+ return NULL;
+ }
- ByteBuffer* getBufferTEST =
- pInstance->_TrustZoneService::DecryptN(*appInfo, pBuf);
- return getBufferTEST;
+ return pInstance->_TrustZoneService::DecryptN(*appInfo, pBuf);
pkgid.c_str());
ByteBuffer appInfo;
appInfo.Construct(pkgid.length());
pkgid.c_str());
ByteBuffer appInfo;
appInfo.Construct(pkgid.length());
- appInfo.SetArray(b_pkgid, 0, pkgid.length());
+
+ if (appInfo.SetArray(b_pkgid, 0, pkgid.length()) != E_SUCCESS) {
+ LogDebug("Couldnot set appInfo");
+ return;
+ }
+