- 105284: Buffer not null terminated
- 108955: Big parameter passed by value
- 109815: Uncaught exception
Change-Id: I303a652d6ae0540f7d6daa833a30ef0fb691ffb8
Signed-off-by: Dongsun Lee <ds73.lee@samsung.com>
ConnectionThread::~ConnectionThread()
{
m_join = true;
- m_pipe.notify();
- m_thread.join();
+ try {
+ m_pipe.notify();
+ m_thread.join();
+ } catch (CKM::Exception &e) {
+ LogError("CKM::Exception::Exception " << e.DumpToString());
+ } catch (std::exception &e) {
+ LogError("STD exception " << e.what());
+ } catch (...) {
+ LogError("Unknown exception occured");
+ }
}
void ConnectionThread::run()
ProcessEncryption(conn, info.credentials, info.buffer);
return true;
- } catch (MessageBuffer::Exception::Base) {
+ } catch (MessageBuffer::Exception::Base &) {
LogError("Broken protocol. Closing socket.");
} catch (const std::exception &e) {
LogError("Std exception:: " << e.what());
strncpy(
wrappedKeyAndInfo->keyInfo.label,
label.c_str(),
- MAX_LABEL_SIZE);
+ MAX_LABEL_SIZE-1);
}
void WrappedKeyAndInfoContainer::setKeyInfoSalt(const unsigned char *salt,