[openrtm-commit:02411] r2934 - branches/DEV_IQ_2016/OpenRTM-aist/src/lib/rtm
openrtm @ openrtm.org
openrtm @ openrtm.org
2017年 2月 9日 (木) 16:46:48 JST
Author: sec_fukai
Date: 2017-02-09 16:46:48 +0900 (Thu, 09 Feb 2017)
New Revision: 2934
Modified:
branches/DEV_IQ_2016/OpenRTM-aist/src/lib/rtm/ManagerConfig.cpp
branches/DEV_IQ_2016/OpenRTM-aist/src/lib/rtm/SystemLogger.cpp
Log:
[incompat,->DEV_IQ_2016] Revert vulnerable code by windows compile error. refs #3819
Modified: branches/DEV_IQ_2016/OpenRTM-aist/src/lib/rtm/ManagerConfig.cpp
===================================================================
--- branches/DEV_IQ_2016/OpenRTM-aist/src/lib/rtm/ManagerConfig.cpp 2017-02-09 07:40:31 UTC (rev 2933)
+++ branches/DEV_IQ_2016/OpenRTM-aist/src/lib/rtm/ManagerConfig.cpp 2017-02-09 07:46:48 UTC (rev 2934)
@@ -247,7 +247,7 @@
//
coil::pid_t pid = coil::getpid();
char pidc[8];
- snprintf(pidc, sizeof(pidc), "%d", pid);
+ sprintf(pidc, "%d", pid);
prop.setProperty("os.name", sysinfo.sysname);
prop.setProperty("os.release", sysinfo.release);
Modified: branches/DEV_IQ_2016/OpenRTM-aist/src/lib/rtm/SystemLogger.cpp
===================================================================
--- branches/DEV_IQ_2016/OpenRTM-aist/src/lib/rtm/SystemLogger.cpp 2017-02-09 07:40:31 UTC (rev 2933)
+++ branches/DEV_IQ_2016/OpenRTM-aist/src/lib/rtm/SystemLogger.cpp 2017-02-09 07:46:48 UTC (rev 2934)
@@ -157,10 +157,9 @@
time_t timer;
struct tm* date;
- struct tm datearg;
timer = tm.sec();
- date = gmtime_r(&timer, &datearg);
+ date = gmtime(&timer);
strftime(buf, sizeof(buf), m_dateFormat.c_str(), date);
std::string fmt(buf);
More information about the openrtm-commit
mailing list