[openrtm-commit:01978] r2747 - trunk/OpenRTM-aist/src/lib/coil/posix/coil
openrtm @ openrtm.org
openrtm @ openrtm.org
2016年 5月 27日 (金) 00:08:21 JST
Author: n-ando
Date: 2016-05-27 00:08:21 +0900 (Fri, 27 May 2016)
New Revision: 2747
Modified:
trunk/OpenRTM-aist/src/lib/coil/posix/coil/File.h
Log:
[compat,RELENG_1_1] Character access bug that might cause buffer over-run has been fixed. refs #3566
Modified: trunk/OpenRTM-aist/src/lib/coil/posix/coil/File.h
===================================================================
--- trunk/OpenRTM-aist/src/lib/coil/posix/coil/File.h 2016-05-26 04:22:49 UTC (rev 2746)
+++ trunk/OpenRTM-aist/src/lib/coil/posix/coil/File.h 2016-05-26 15:08:21 UTC (rev 2747)
@@ -142,7 +142,7 @@
{
const char* globc(glob_str);
std::string fname(ent->d_name);
- for (size_t i(0); i < fname.size() && globc != '\0'; ++i, ++globc)
+ for (size_t i(0); i < fname.size() && *globc != '\0'; ++i, ++globc)
{
if (*globc == '*')
{
More information about the openrtm-commit
mailing list