[openrtm-commit:02244] r2852 - branches/DEV_IQ_2016/OpenRTM-aist/src/lib/rtm
openrtm @ openrtm.org
openrtm @ openrtm.org
2017年 1月 17日 (火) 20:19:10 JST
Author: sec_fukai
Date: 2017-01-17 20:19:10 +0900 (Tue, 17 Jan 2017)
New Revision: 2852
Modified:
branches/DEV_IQ_2016/OpenRTM-aist/src/lib/rtm/ManagerConfig.cpp
Log:
[incompat,->DEV_IQ_2016] Modify vulnerable code. 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-01-17 10:47:48 UTC (rev 2851)
+++ branches/DEV_IQ_2016/OpenRTM-aist/src/lib/rtm/ManagerConfig.cpp 2017-01-17 11:19:10 UTC (rev 2852)
@@ -246,7 +246,7 @@
//
coil::pid_t pid = coil::getpid();
char pidc[8];
- sprintf(pidc, "%d", pid);
+ snprintf(pidc, sizeof(pidc), "%d", pid);
prop.setProperty("os.name", sysinfo.sysname);
prop.setProperty("os.release", sysinfo.release);
More information about the openrtm-commit
mailing list