[openrtm-commit:02410] r2933 - branches/DEV_IQ_2016/OpenRTM-aist/src/lib/coil/win32/coil
openrtm @ openrtm.org
openrtm @ openrtm.org
2017年 2月 9日 (木) 16:40:31 JST
Author: sec_fukai
Date: 2017-02-09 16:40:31 +0900 (Thu, 09 Feb 2017)
New Revision: 2933
Modified:
branches/DEV_IQ_2016/OpenRTM-aist/src/lib/coil/win32/coil/OS.h
Log:
[incompat,->DEV_IQ_2016] Revert vulnerable code by windows compile error. refs #3819
Modified: branches/DEV_IQ_2016/OpenRTM-aist/src/lib/coil/win32/coil/OS.h
===================================================================
--- branches/DEV_IQ_2016/OpenRTM-aist/src/lib/coil/win32/coil/OS.h 2017-02-08 06:53:55 UTC (rev 2932)
+++ branches/DEV_IQ_2016/OpenRTM-aist/src/lib/coil/win32/coil/OS.h 2017-02-09 07:40:31 UTC (rev 2933)
@@ -120,23 +120,23 @@
switch (arch)
{
case PROCESSOR_ARCHITECTURE_INTEL:
- snprintf(cputype, sizeof(cputype), "Intel");
+ strcpy(cputype, "Intel");
if (sys_info.wProcessorLevel == 3)
- snprintf(subtype, sizeof(subtype), "80386");
+ strcpy(subtype, "80386");
else if (sys_info.wProcessorLevel == 4)
- snprintf(subtype, sizeof(subtype), "80486");
+ strcpy(subtype, "80486");
else if (sys_info.wProcessorLevel == 5)
- snprintf(subtype, sizeof(subtype), "Pentium");
+ strcpy(subtype, "Pentium");
else if (sys_info.wProcessorLevel == 6)
- snprintf(subtype, sizeof(subtype), "Pentium Pro");
+ strcpy(subtype, "Pentium Pro");
else if (sys_info.wProcessorLevel == 7)
- snprintf(subtype, sizeof(subtype), "Pentium II");
+ strcpy(subtype, "Pentium II");
else
- snprintf(subtype, sizeof(subtype), "Pentium Family");
+ strcpy(subtype, "Pentium Family");
break;
default:
- snprintf(cputype, sizeof(cputype), "Unknown");
- snprintf(subtype, sizeof(subtype), "Unknown");
+ strcpy(cputype, "Unknown");
+ strcpy(subtype, "Unknown");
}
sprintf(name->machine, "%s %s", cputype, subtype);
More information about the openrtm-commit
mailing list