Change-Id: If8792744d057bdf7445d8a0dc150c7e76858c4cd
Signed-off-by: Le <xuan.tien@samsung.com>
static TestResultsCollectorBase *Constructor();
private:
- TAPCollector() : m_filename(DEFAULT_TAP_FILE_NAME), m_collectedData(), m_output(), m_testIndex(0) {}
+ TAPCollector() : m_filename(DEFAULT_TAP_FILE_NAME), m_collectedData(), m_output(), m_testIndex(0) {}
virtual bool Configure()
{
#include <sys/types.h>
#include <sys/wait.h>
#include <sys/stat.h>
+#include <vcore/Client.h>
namespace {
const int CHILD_TEST_FAIL = 0;
}
std::vector<char> buffer;
- buffer.resize(size);
+
+ if (size > 0 && size < VCORE_MAX_RECV_DATA_SIZE) {
+ buffer.resize(size);
+ } else {
+ return ERROR;
+ }
if ((ret = readHelp(&buffer[0], size, deadline)) != SUCCESS) {
return ret;