[openrtm-commit:02316] r2888 - branches/DEV_IQ_2016/OpenRTM-aist/src/lib/rtm
openrtm @ openrtm.org
openrtm @ openrtm.org
2017年 1月 23日 (月) 10:02:49 JST
Author: sec_fukai
Date: 2017-01-23 10:02:49 +0900 (Mon, 23 Jan 2017)
New Revision: 2888
Modified:
branches/DEV_IQ_2016/OpenRTM-aist/src/lib/rtm/SystemLogger.cpp
Log:
[incompat,->DEV_IQ_2016] Modify vulnerable code. refs #3819
Modified: branches/DEV_IQ_2016/OpenRTM-aist/src/lib/rtm/SystemLogger.cpp
===================================================================
--- branches/DEV_IQ_2016/OpenRTM-aist/src/lib/rtm/SystemLogger.cpp 2017-01-22 14:13:06 UTC (rev 2887)
+++ branches/DEV_IQ_2016/OpenRTM-aist/src/lib/rtm/SystemLogger.cpp 2017-01-23 01:02:49 UTC (rev 2888)
@@ -157,9 +157,10 @@
time_t timer;
struct tm* date;
+ struct tm datearg;
timer = tm.sec();
- date = gmtime_r(&timer, date);
+ date = gmtime_r(&timer, &datearg);
strftime(buf, sizeof(buf), m_dateFormat.c_str(), date);
std::string fmt(buf);
More information about the openrtm-commit
mailing list