Copyright (c) 2013 Samsung Electronics Co., Ltd. All rights reserved.
Except as noted, this software is licensed under Lesser GNU Public License , Version 2.1.
-Please, see the LICENSE.LGPLv2.1 file for Apache License terms and conditions.
+Please, see the LICENSE.LGPLv2.1 file for Lesser General Public License terms and conditions.
Several source codes may have its original copyright owner and/or
be licensed under other than Lesser GNU Public License , Version 2.1, say, MIT License.
probeBlockStart();
setProbePoint(&probeInfo);
+ sdata.ximage = NULL;
scrimage = captureScreenShotX(&width, &height, &sdata);
if(scrimage != NULL)
{
}
}
-// create sokcet to daemon and connect
+// create socket to daemon and connect
static int createSocket(void)
{
ssize_t recvlen;
{
if(log.length > 0)
{
+ if(log.length >= DA_LOG_MAX)
+ log.length = DA_LOG_MAX - 1;
recvlen = recv(gTraceInfo.socket.daemonSock, log.data,
log.length, MSG_WAITALL);
}
+ else
+ {
+ log.length = 0;
+ }
+
log.data[log.length] = '\0';
if(log.type == MSG_CONFIG)
{
if(log.length > 0)
{
+ if(log.length >= DA_LOG_MAX)
+ log.length = DA_LOG_MAX - 1;
recvlen = recv(gTraceInfo.socket.daemonSock, log.data,
log.length, MSG_WAITALL);
}
+ else
+ {
+ log.length = 0;
+ }
+
log.data[log.length] = '\0';
if(log.type == MSG_CONFIG)
probeInfo.pID, probeInfo.tID);
_ThreadImpl* pSelf =(_ThreadImpl*)params;
- const Thread* pThread;
+ const Thread* pThread = NULL;
if(pSelf != null){
pThread = pSelf->GetThread();
}
probeInfo.pID, probeInfo.tID);
_ThreadImpl* pSelf =(_ThreadImpl*)params;
- const Thread* pThread;
+ const Thread* pThread = NULL;
if(pSelf != null){
pThread = pSelf->GetThread();
}