Flawfinder version 2.0.10, (C) 2001-2019 David A. Wheeler. Number of rules (primarily dangerous function names) in C/C++ ruleset: 223 Examining data/ignition-common-3.5.0+dfsg1/av/src/AudioDecoder.cc Examining data/ignition-common-3.5.0+dfsg1/av/src/AudioDecoder_TEST.cc Examining data/ignition-common-3.5.0+dfsg1/av/src/Util.cc Examining data/ignition-common-3.5.0+dfsg1/av/src/Video.cc Examining data/ignition-common-3.5.0+dfsg1/av/src/VideoEncoder.cc Examining data/ignition-common-3.5.0+dfsg1/av/src/VideoEncoder_TEST.cc Examining data/ignition-common-3.5.0+dfsg1/av/src/ffmpeg_inc.cc Examining data/ignition-common-3.5.0+dfsg1/events/src/Event.cc Examining data/ignition-common-3.5.0+dfsg1/events/src/Event_TEST.cc Examining data/ignition-common-3.5.0+dfsg1/events/src/KeyEvent.cc Examining data/ignition-common-3.5.0+dfsg1/events/src/KeyEvent_TEST.cc Examining data/ignition-common-3.5.0+dfsg1/events/src/MouseEvent.cc Examining data/ignition-common-3.5.0+dfsg1/events/src/MouseEvent_TEST.cc Examining data/ignition-common-3.5.0+dfsg1/examples/assert_example.cc Examining data/ignition-common-3.5.0+dfsg1/examples/events.cc Examining data/ignition-common-3.5.0+dfsg1/examples/profiler.cc Examining data/ignition-common-3.5.0+dfsg1/graphics/src/Animation.cc Examining data/ignition-common-3.5.0+dfsg1/graphics/src/Animation_TEST.cc Examining data/ignition-common-3.5.0+dfsg1/graphics/src/BVHLoader.cc Examining data/ignition-common-3.5.0+dfsg1/graphics/src/ColladaExporter.cc Examining data/ignition-common-3.5.0+dfsg1/graphics/src/ColladaLoader.cc Examining data/ignition-common-3.5.0+dfsg1/graphics/src/Dem.cc Examining data/ignition-common-3.5.0+dfsg1/graphics/src/Dem_TEST.cc Examining data/ignition-common-3.5.0+dfsg1/graphics/src/GTSMeshUtils.cc Examining data/ignition-common-3.5.0+dfsg1/graphics/src/GTSMeshUtils_TEST.cc Examining data/ignition-common-3.5.0+dfsg1/graphics/src/Image.cc Examining data/ignition-common-3.5.0+dfsg1/graphics/src/ImageHeightmap.cc Examining data/ignition-common-3.5.0+dfsg1/graphics/src/KeyFrame.cc Examining data/ignition-common-3.5.0+dfsg1/graphics/src/Material.cc Examining data/ignition-common-3.5.0+dfsg1/graphics/src/Material_TEST.cc Examining data/ignition-common-3.5.0+dfsg1/graphics/src/Mesh.cc Examining data/ignition-common-3.5.0+dfsg1/graphics/src/MeshCSG.cc Examining data/ignition-common-3.5.0+dfsg1/graphics/src/MeshExporter.cc Examining data/ignition-common-3.5.0+dfsg1/graphics/src/MeshManager.cc Examining data/ignition-common-3.5.0+dfsg1/graphics/src/MeshManager_TEST.cc Examining data/ignition-common-3.5.0+dfsg1/graphics/src/Mesh_TEST.cc Examining data/ignition-common-3.5.0+dfsg1/graphics/src/NodeAnimation.cc Examining data/ignition-common-3.5.0+dfsg1/graphics/src/NodeTransform.cc Examining data/ignition-common-3.5.0+dfsg1/graphics/src/Pbr.cc Examining data/ignition-common-3.5.0+dfsg1/graphics/src/Pbr_TEST.cc Examining data/ignition-common-3.5.0+dfsg1/graphics/src/STLLoader.cc Examining data/ignition-common-3.5.0+dfsg1/graphics/src/SVGLoader.cc Examining data/ignition-common-3.5.0+dfsg1/graphics/src/Skeleton.cc Examining data/ignition-common-3.5.0+dfsg1/graphics/src/SkeletonAnimation.cc Examining data/ignition-common-3.5.0+dfsg1/graphics/src/SkeletonNode.cc Examining data/ignition-common-3.5.0+dfsg1/graphics/src/SubMesh.cc Examining data/ignition-common-3.5.0+dfsg1/graphics/src/SubMesh_TEST.cc Examining data/ignition-common-3.5.0+dfsg1/graphics/src/ColladaExporter_TEST.cc Examining data/ignition-common-3.5.0+dfsg1/graphics/src/ColladaLoader_TEST.cc Examining data/ignition-common-3.5.0+dfsg1/graphics/src/ImageHeightmap_TEST.cc Examining data/ignition-common-3.5.0+dfsg1/graphics/src/Image_TEST.cc Examining data/ignition-common-3.5.0+dfsg1/graphics/src/OBJLoader_TEST.cc Examining data/ignition-common-3.5.0+dfsg1/graphics/src/SVGLoader_TEST.cc Examining data/ignition-common-3.5.0+dfsg1/graphics/src/OBJLoader.cc Examining data/ignition-common-3.5.0+dfsg1/profiler/src/Profiler.cc Examining data/ignition-common-3.5.0+dfsg1/profiler/src/Profiler_Disabled_TEST.cc Examining data/ignition-common-3.5.0+dfsg1/profiler/src/Profiler_Remotery_TEST.cc Examining data/ignition-common-3.5.0+dfsg1/profiler/src/Remotery/lib/Remotery.c Examining data/ignition-common-3.5.0+dfsg1/profiler/src/Remotery/lib/Remotery.h Examining data/ignition-common-3.5.0+dfsg1/profiler/src/RemoteryProfilerImpl.cc Examining data/ignition-common-3.5.0+dfsg1/src/Base64.cc Examining data/ignition-common-3.5.0+dfsg1/src/Base64_TEST.cc Examining data/ignition-common-3.5.0+dfsg1/src/Battery.cc Examining data/ignition-common-3.5.0+dfsg1/src/Battery_TEST.cc Examining data/ignition-common-3.5.0+dfsg1/src/Console.cc Examining data/ignition-common-3.5.0+dfsg1/src/Console_TEST.cc Examining data/ignition-common-3.5.0+dfsg1/src/EnumIface_TEST.cc Examining data/ignition-common-3.5.0+dfsg1/src/Filesystem.cc Examining data/ignition-common-3.5.0+dfsg1/src/FilesystemBoost.cc Examining data/ignition-common-3.5.0+dfsg1/src/Filesystem_TEST.cc Examining data/ignition-common-3.5.0+dfsg1/src/MaterialDensity.cc Examining data/ignition-common-3.5.0+dfsg1/src/MaterialDensity_TEST.cc Examining data/ignition-common-3.5.0+dfsg1/src/MovingWindowFilter_TEST.cc Examining data/ignition-common-3.5.0+dfsg1/src/Plugin.cc Examining data/ignition-common-3.5.0+dfsg1/src/PluginLoader.cc Examining data/ignition-common-3.5.0+dfsg1/src/PluginLoader_TEST.cc Examining data/ignition-common-3.5.0+dfsg1/src/PluginUtils_TEST.cc Examining data/ignition-common-3.5.0+dfsg1/src/SignalHandler.cc Examining data/ignition-common-3.5.0+dfsg1/src/SignalHandler_TEST.cc Examining data/ignition-common-3.5.0+dfsg1/src/StringUtils.cc Examining data/ignition-common-3.5.0+dfsg1/src/StringUtils_TEST.cc Examining data/ignition-common-3.5.0+dfsg1/src/SystemPaths.cc Examining data/ignition-common-3.5.0+dfsg1/src/SystemPaths_TEST.cc Examining data/ignition-common-3.5.0+dfsg1/src/TemplateHelpers_TEST.cc Examining data/ignition-common-3.5.0+dfsg1/src/Time.cc Examining data/ignition-common-3.5.0+dfsg1/src/Time_TEST.cc Examining data/ignition-common-3.5.0+dfsg1/src/Timer.cc Examining data/ignition-common-3.5.0+dfsg1/src/URI.cc Examining data/ignition-common-3.5.0+dfsg1/src/URI_TEST.cc Examining data/ignition-common-3.5.0+dfsg1/src/Util.cc Examining data/ignition-common-3.5.0+dfsg1/src/Util_TEST.cc Examining data/ignition-common-3.5.0+dfsg1/src/Uuid.cc Examining data/ignition-common-3.5.0+dfsg1/src/Uuid_TEST.cc Examining data/ignition-common-3.5.0+dfsg1/src/WorkerPool.cc Examining data/ignition-common-3.5.0+dfsg1/src/WorkerPool_TEST.cc Examining data/ignition-common-3.5.0+dfsg1/src/win_dirent.h Examining data/ignition-common-3.5.0+dfsg1/test/integration/mesh.cc Examining data/ignition-common-3.5.0+dfsg1/test/integration/plugin.cc Examining data/ignition-common-3.5.0+dfsg1/test/performance/plugin_specialization.cc Examining data/ignition-common-3.5.0+dfsg1/test/plugins/BadPluginAPIVersionNew.cc Examining data/ignition-common-3.5.0+dfsg1/test/plugins/BadPluginAPIVersionOld.cc Examining data/ignition-common-3.5.0+dfsg1/test/plugins/BadPluginAlign.cc Examining data/ignition-common-3.5.0+dfsg1/test/plugins/BadPluginSize.cc Examining data/ignition-common-3.5.0+dfsg1/test/plugins/DummyPlugins.cc Examining data/ignition-common-3.5.0+dfsg1/test/static_assertions/plugin_bad_const_assignment.cc Examining data/ignition-common-3.5.0+dfsg1/test/static_assertions/plugin_bad_const_construct.cc Examining data/ignition-common-3.5.0+dfsg1/test/static_assertions/plugin_no_base_class.cc Examining data/ignition-common-3.5.0+dfsg1/test/static_assertions/plugin_not_fully_qualified_base.cc Examining data/ignition-common-3.5.0+dfsg1/test/static_assertions/plugin_not_fully_qualified_class.cc Examining data/ignition-common-3.5.0+dfsg1/test/static_assertions/plugin_not_global_ns.cc Examining data/ignition-common-3.5.0+dfsg1/test/static_assertions/plugin_wrong_base_class.cc FINAL RESULTS: data/ignition-common-3.5.0+dfsg1/av/src/Util.cc:44:3: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. vsnprintf(message, sizeof(message), _fmt, _args); data/ignition-common-3.5.0+dfsg1/graphics/src/ColladaExporter.cc:29:11: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. #define snprintf _snprintf data/ignition-common-3.5.0+dfsg1/graphics/src/ColladaExporter.cc:29:20: [4] (format) _snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. #define snprintf _snprintf data/ignition-common-3.5.0+dfsg1/graphics/src/ColladaExporter_TEST.cc:28:11: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. #define snprintf _snprintf data/ignition-common-3.5.0+dfsg1/graphics/src/ColladaExporter_TEST.cc:28:20: [4] (format) _snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. #define snprintf _snprintf data/ignition-common-3.5.0+dfsg1/graphics/src/STLLoader.cc:98:5: [4] (buffer) sscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. sscanf(next, "%s%n", token, &width); data/ignition-common-3.5.0+dfsg1/src/SystemPaths_TEST.cc:30:11: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. #define snprintf _snprintf data/ignition-common-3.5.0+dfsg1/src/SystemPaths_TEST.cc:30:20: [4] (format) _snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. #define snprintf _snprintf data/ignition-common-3.5.0+dfsg1/src/Filesystem.cc:201:7: [3] (buffer) realpath: This function does not protect against buffer overflows, and some implementations can overflow internally (CWE-120/CWE-785!). Ensure that the destination buffer is at least of size MAXPATHLEN, andto protect against implementation problems, the input argument should also be checked to ensure it is no larger than MAXPATHLEN. if (realpath(_path.c_str(), &path[0]) != nullptr) data/ignition-common-3.5.0+dfsg1/src/FilesystemBoost.cc:137:15: [3] (buffer) realpath: This function does not protect against buffer overflows, and some implementations can overflow internally (CWE-120/CWE-785!). Ensure that the destination buffer is at least of size MAXPATHLEN, andto protect against implementation problems, the input argument should also be checked to ensure it is no larger than MAXPATHLEN. if (realpath(buf.data(), resolved) != nullptr) data/ignition-common-3.5.0+dfsg1/src/Filesystem_TEST.cc:35:21: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. const char *tmp = getenv("TMPDIR"); data/ignition-common-3.5.0+dfsg1/src/Filesystem_TEST.cc:58:7: [3] (buffer) realpath: This function does not protect against buffer overflows, and some implementations can overflow internally (CWE-120/CWE-785!). Ensure that the destination buffer is at least of size MAXPATHLEN, andto protect against implementation problems, the input argument should also be checked to ensure it is no larger than MAXPATHLEN. if (realpath(dtemp, resolved) == nullptr) data/ignition-common-3.5.0+dfsg1/src/Filesystem_TEST.cc:126:3: [3] (random) srand: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. srand(static_cast<uint32_t>(time(nullptr))); data/ignition-common-3.5.0+dfsg1/src/PluginLoader.cc:47:21: [3] (misc) LoadLibrary: Ensure that the full path to the library is specified, or current directory may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to find library path, if you aren't already. public: void *LoadLibrary(const std::string &_pathToLibrary) const; data/ignition-common-3.5.0+dfsg1/src/PluginLoader.cc:103:51: [3] (misc) LoadLibrary: Ensure that the full path to the library is specified, or current directory may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to find library path, if you aren't already. std::unordered_set<std::string> PluginLoader::LoadLibrary( data/ignition-common-3.5.0+dfsg1/src/PluginLoader.cc:115:39: [3] (misc) LoadLibrary: Ensure that the full path to the library is specified, or current directory may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to find library path, if you aren't already. void *dlHandle = this->dataPtr->LoadLibrary(_pathToLibrary); data/ignition-common-3.5.0+dfsg1/src/PluginLoader.cc:214:32: [3] (misc) LoadLibrary: Ensure that the full path to the library is specified, or current directory may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to find library path, if you aren't already. void* PluginLoaderPrivate::LoadLibrary(const std::string &_full_path) const data/ignition-common-3.5.0+dfsg1/src/PluginLoader_TEST.cc:38:18: [3] (misc) LoadLibrary: Ensure that the full path to the library is specified, or current directory may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to find library path, if you aren't already. EXPECT_TRUE(pm.LoadLibrary("/path/to/libDoesNotExist.so").empty()); data/ignition-common-3.5.0+dfsg1/src/PluginLoader_TEST.cc:46:18: [3] (misc) LoadLibrary: Ensure that the full path to the library is specified, or current directory may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to find library path, if you aren't already. EXPECT_TRUE(pm.LoadLibrary(projectPath + "/test_config.h").empty()); data/ignition-common-3.5.0+dfsg1/src/PluginLoader_TEST.cc:61:18: [3] (misc) LoadLibrary: Ensure that the full path to the library is specified, or current directory may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to find library path, if you aren't already. EXPECT_TRUE(pm.LoadLibrary(path).empty()); data/ignition-common-3.5.0+dfsg1/src/SystemPaths_TEST.cc:42:11: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if (getenv("IGN_PLUGIN_PATH")) data/ignition-common-3.5.0+dfsg1/src/SystemPaths_TEST.cc:43:35: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. this->backupPluginPath += getenv("IGN_PLUGIN_PATH"); data/ignition-common-3.5.0+dfsg1/src/SystemPaths_TEST.cc:49:11: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if (getenv("IGN_FILE_PATH")) data/ignition-common-3.5.0+dfsg1/src/SystemPaths_TEST.cc:50:33: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. this->backupFilePath += getenv("IGN_FILE_PATH"); data/ignition-common-3.5.0+dfsg1/src/Util.cc:331:27: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. const char *cvar = std::getenv(_name.c_str()); data/ignition-common-3.5.0+dfsg1/test/integration/plugin.cc:62:54: [3] (misc) LoadLibrary: Ensure that the full path to the library is specified, or current directory may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to find library path, if you aren't already. std::unordered_set<std::string> pluginNames = pl.LoadLibrary(path); data/ignition-common-3.5.0+dfsg1/test/integration/plugin.cc:82:52: [3] (misc) LoadLibrary: Ensure that the full path to the library is specified, or current directory may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to find library path, if you aren't already. std::unordered_set<std::string> pluginNames = pl.LoadLibrary(path); data/ignition-common-3.5.0+dfsg1/test/integration/plugin.cc:172:6: [3] (misc) LoadLibrary: Ensure that the full path to the library is specified, or current directory may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to find library path, if you aren't already. pl.LoadLibrary(path); data/ignition-common-3.5.0+dfsg1/test/integration/plugin.cc:299:6: [3] (misc) LoadLibrary: Ensure that the full path to the library is specified, or current directory may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to find library path, if you aren't already. pl.LoadLibrary(path); data/ignition-common-3.5.0+dfsg1/test/integration/plugin.cc:379:6: [3] (misc) LoadLibrary: Ensure that the full path to the library is specified, or current directory may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to find library path, if you aren't already. pl.LoadLibrary(path); data/ignition-common-3.5.0+dfsg1/test/performance/plugin_specialization.cc:139:6: [3] (misc) LoadLibrary: Ensure that the full path to the library is specified, or current directory may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to find library path, if you aren't already. pl.LoadLibrary(path); data/ignition-common-3.5.0+dfsg1/av/src/AudioDecoder.cc:152:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(*_outBuffer + *_outBufferSize, decodedFrame->data[0], data/ignition-common-3.5.0+dfsg1/av/src/Util.cc:30:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char message[8192]; data/ignition-common-3.5.0+dfsg1/av/src/Video.cc:265:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(*_buffer, this->dataPtr->avFrameDst->data[0], data/ignition-common-3.5.0+dfsg1/av/src/VideoEncoder.cc:379:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char errBuff[AV_ERROR_MAX_STRING_SIZE]; data/ignition-common-3.5.0+dfsg1/av/src/VideoEncoder.cc:430:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char errBuff[AV_ERROR_MAX_STRING_SIZE]; data/ignition-common-3.5.0+dfsg1/av/src/VideoEncoder.cc:452:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char errBuff[AV_ERROR_MAX_STRING_SIZE]; data/ignition-common-3.5.0+dfsg1/av/src/VideoEncoder.cc:466:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char errBuff[AV_ERROR_MAX_STRING_SIZE]; data/ignition-common-3.5.0+dfsg1/av/src/VideoEncoder.cc:572:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(this->dataPtr->avInFrame->data[0], _frame, data/ignition-common-3.5.0+dfsg1/graphics/src/BVHLoader.cc:50:8: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). file.open(fullname.c_str()); data/ignition-common-3.5.0+dfsg1/graphics/src/ColladaExporter.cc:287:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char sourceId[100], sourceArrayId[107]; data/ignition-common-3.5.0+dfsg1/graphics/src/ColladaExporter.cc:393:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char meshId[100], materialId[100]; data/ignition-common-3.5.0+dfsg1/graphics/src/ColladaExporter.cc:417:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char attributeValue[111]; data/ignition-common-3.5.0+dfsg1/graphics/src/ColladaExporter.cc:499:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char id[100]; data/ignition-common-3.5.0+dfsg1/graphics/src/ColladaExporter.cc:537:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char id[100]; data/ignition-common-3.5.0+dfsg1/graphics/src/ColladaExporter.cc:559:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char id[100]; data/ignition-common-3.5.0+dfsg1/graphics/src/ColladaExporter.cc:755:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char meshId[100], materialId[100], attributeValue[101]; data/ignition-common-3.5.0+dfsg1/graphics/src/ColladaExporter_TEST.cc:68:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char countMesh[100]; data/ignition-common-3.5.0+dfsg1/graphics/src/ColladaExporter_TEST.cc:144:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char countMesh[100]; data/ignition-common-3.5.0+dfsg1/graphics/src/Mesh.cc:301:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(vPtr, vertTmp, sizeof(vertTmp[0])*submesh->VertexCount()*3); data/ignition-common-3.5.0+dfsg1/graphics/src/STLLoader.cc:45:16: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE *file = fopen(_filename.c_str(), "r"); data/ignition-common-3.5.0+dfsg1/graphics/src/STLLoader.cc:59:12: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). file = fopen(_filename.c_str(), "rb"); data/ignition-common-3.5.0+dfsg1/graphics/src/STLLoader.cc:77:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char token[LINE_MAX_LEN]; data/ignition-common-3.5.0+dfsg1/graphics/src/STLLoader.cc:79:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char input[LINE_MAX_LEN]; data/ignition-common-3.5.0+dfsg1/graphics/src/STLLoader.cc:333:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char ychar[4]; data/ignition-common-3.5.0+dfsg1/profiler/src/Remotery/lib/Remotery.c:635:14: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fd = open(ASHMEM_DEVICE, O_RDWR); data/ignition-common-3.5.0+dfsg1/profiler/src/Remotery/lib/Remotery.c:640:17: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[ASHMEM_NAME_LEN] = {0}; data/ignition-common-3.5.0+dfsg1/profiler/src/Remotery/lib/Remotery.c:881:23: [2] (tmpfile) mkstemp: Potential for temporary file vulnerability in some circumstances. Some older Unix-like systems create temp files with permission to write by all by default, so be sure to set the umask to override this. Also, some older Unix systems might fail to use O_EXCL when opening the file, so make sure that O_EXCL is used by the library (CWE-377). file_descriptor = mkstemp(path); data/ignition-common-3.5.0+dfsg1/profiler/src/Remotery/lib/Remotery.c:1774:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buffer->data + buffer->bytes_used, data, length); data/ignition-common-3.5.0+dfsg1/profiler/src/Remotery/lib/Remotery.c:1829:18: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char c[sizeof(unsigned int)]; data/ignition-common-3.5.0+dfsg1/profiler/src/Remotery/lib/Remotery.c:1858:22: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char c[sizeof(double)]; data/ignition-common-3.5.0+dfsg1/profiler/src/Remotery/lib/Remotery.c:2309:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char temp_buf[128]; data/ignition-common-3.5.0+dfsg1/profiler/src/Remotery/lib/Remotery.c:3014:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[1024]; data/ignition-common-3.5.0+dfsg1/profiler/src/Remotery/lib/Remotery.c:3019:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char response_buffer[256]; data/ignition-common-3.5.0+dfsg1/profiler/src/Remotery/lib/Remotery.c:3218:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char empty_frame_header[WEBSOCKET_MAX_FRAME_HEADER_SIZE]; data/ignition-common-3.5.0+dfsg1/profiler/src/Remotery/lib/Remotery.c:3730:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char message_data[1024]; data/ignition-common-3.5.0+dfsg1/profiler/src/Remotery/lib/Remotery.c:4527:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char thread_name[256]; data/ignition-common-3.5.0+dfsg1/profiler/src/Remotery/lib/Remotery.c:5140:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name_clamp[16]; data/ignition-common-3.5.0+dfsg1/profiler/src/Remotery/lib/Remotery.c:5186:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(message->payload, text, size); data/ignition-common-3.5.0+dfsg1/profiler/src/Remotery/lib/Remotery.c:5196:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char line_buffer[1024] = { 0 }; data/ignition-common-3.5.0+dfsg1/src/Base64.cc:66:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char charArray3[3]; data/ignition-common-3.5.0+dfsg1/src/Base64.cc:67:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char charArray4[4]; data/ignition-common-3.5.0+dfsg1/src/Base64.cc:113:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char charArray4[4], charArray3[3]; data/ignition-common-3.5.0+dfsg1/src/Filesystem.cc:197:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char path[IGN_PATH_MAX] = ""; data/ignition-common-3.5.0+dfsg1/src/FilesystemBoost.cc:135:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char resolved[PATH_MAX]; data/ignition-common-3.5.0+dfsg1/src/Filesystem_TEST.cc:57:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char resolved[PATH_MAX]; data/ignition-common-3.5.0+dfsg1/src/Filesystem_TEST.cc:71:12: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). int fd = open(_filename.c_str(), O_RDWR | O_CREAT, 0644); data/ignition-common-3.5.0+dfsg1/src/Filesystem_TEST.cc:119:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char temp_path[MAX_PATH + 1]; data/ignition-common-3.5.0+dfsg1/src/SystemPaths_TEST.cc:89:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char env[1024]; data/ignition-common-3.5.0+dfsg1/src/SystemPaths_TEST.cc:113:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char env[1024]; data/ignition-common-3.5.0+dfsg1/src/SystemPaths_TEST.cc:132:8: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fout.open(file1, std::ofstream::out); data/ignition-common-3.5.0+dfsg1/src/SystemPaths_TEST.cc:212:8: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fout.open(file1, std::ofstream::out); data/ignition-common-3.5.0+dfsg1/src/SystemPaths_TEST.cc:215:8: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fout.open(file2, std::ofstream::out); data/ignition-common-3.5.0+dfsg1/src/SystemPaths_TEST.cc:287:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char env[1024]; data/ignition-common-3.5.0+dfsg1/src/SystemPaths_TEST.cc:316:8: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fout.open(file1, std::ofstream::out); data/ignition-common-3.5.0+dfsg1/src/SystemPaths_TEST.cc:319:8: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fout.open(file2, std::ofstream::out); data/ignition-common-3.5.0+dfsg1/src/SystemPaths_TEST.cc:430:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char env[1024]; data/ignition-common-3.5.0+dfsg1/src/Util.cc:258:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char isoStr[25]; data/ignition-common-3.5.0+dfsg1/src/Util.cc:325:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char buffer[buffSize]; data/ignition-common-3.5.0+dfsg1/src/Util_TEST.cc:187:8: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fout.open(file1, std::ofstream::out); data/ignition-common-3.5.0+dfsg1/src/win_dirent.h:228:5: [2] (buffer) wchar_t: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. wchar_t d_name[PATH_MAX]; data/ignition-common-3.5.0+dfsg1/src/win_dirent.h:280:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char d_name[PATH_MAX]; data/ignition-common-3.5.0+dfsg1/src/win_dirent.h:628:9: [2] (buffer) wchar_t: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. wchar_t wname[PATH_MAX]; data/ignition-common-3.5.0+dfsg1/graphics/src/Animation.cc:137:14: [1] (buffer) equal: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. if (!math::equal(_time, this->timePos)) data/ignition-common-3.5.0+dfsg1/graphics/src/Animation.cc:245:13: [1] (buffer) equal: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. if (math::equal(t1, t2)) data/ignition-common-3.5.0+dfsg1/graphics/src/Animation.cc:330:13: [1] (buffer) equal: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. if (math::equal(t, 0.0)) data/ignition-common-3.5.0+dfsg1/graphics/src/Animation.cc:382:13: [1] (buffer) equal: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. if (math::equal(t, 0.0)) data/ignition-common-3.5.0+dfsg1/graphics/src/Dem_TEST.cc:151:23: [1] (buffer) equal: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. if (ignition::math::equal(dem.GetMaxElevation(), 0.0f)) data/ignition-common-3.5.0+dfsg1/graphics/src/ImageHeightmap_TEST.cc:89:23: [1] (buffer) equal: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. if (ignition::math::equal(img.MaxElevation(), 0.0f)) data/ignition-common-3.5.0+dfsg1/graphics/src/MeshManager.cc:1191:24: [1] (buffer) equal: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. if (!ignition::math::equal(_arc, 2.0 * IGN_PI)) data/ignition-common-3.5.0+dfsg1/graphics/src/MeshManager_TEST.cc:86:34: [1] (buffer) equal: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. EXPECT_TRUE((ignition::math::equal(v.Z(), 0.0) || data/ignition-common-3.5.0+dfsg1/graphics/src/MeshManager_TEST.cc:87:27: [1] (buffer) equal: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. ignition::math::equal(v.Z(), 10.0))); data/ignition-common-3.5.0+dfsg1/graphics/src/MeshManager_TEST.cc:100:25: [1] (buffer) equal: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. if (ignition::math::equal(v.Z(), 0.0)) data/ignition-common-3.5.0+dfsg1/graphics/src/MeshManager_TEST.cc:102:27: [1] (buffer) equal: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. if (ignition::math::equal(n.Z(), 0.0)) data/ignition-common-3.5.0+dfsg1/graphics/src/MeshManager_TEST.cc:105:39: [1] (buffer) equal: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. EXPECT_TRUE(!(ignition::math::equal(n.X(), 0.0) && data/ignition-common-3.5.0+dfsg1/graphics/src/MeshManager_TEST.cc:106:31: [1] (buffer) equal: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. ignition::math::equal(n.Y(), 0.0))); data/ignition-common-3.5.0+dfsg1/graphics/src/MeshManager_TEST.cc:112:30: [1] (buffer) equal: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. (ignition::math::equal(n.Z(), 0.0))); data/ignition-common-3.5.0+dfsg1/graphics/src/MeshManager_TEST.cc:117:25: [1] (buffer) equal: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. if (ignition::math::equal(v.Z(), 10.0)) data/ignition-common-3.5.0+dfsg1/graphics/src/MeshManager_TEST.cc:119:27: [1] (buffer) equal: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. if (ignition::math::equal(n.Z(), 0.0)) data/ignition-common-3.5.0+dfsg1/graphics/src/MeshManager_TEST.cc:122:39: [1] (buffer) equal: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. EXPECT_TRUE(!(ignition::math::equal(n.X(), 0.0) && data/ignition-common-3.5.0+dfsg1/graphics/src/MeshManager_TEST.cc:123:31: [1] (buffer) equal: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. ignition::math::equal(n.Y(), 0.0))); data/ignition-common-3.5.0+dfsg1/graphics/src/MeshManager_TEST.cc:129:30: [1] (buffer) equal: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. (ignition::math::equal(n.Z(), 0.0))); data/ignition-common-3.5.0+dfsg1/graphics/src/MeshManager_TEST.cc:201:34: [1] (buffer) equal: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. EXPECT_TRUE((ignition::math::equal(v.Z(), 0.0) || data/ignition-common-3.5.0+dfsg1/graphics/src/MeshManager_TEST.cc:202:27: [1] (buffer) equal: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. ignition::math::equal(v.Z(), 2.0))); data/ignition-common-3.5.0+dfsg1/graphics/src/MeshManager_TEST.cc:215:25: [1] (buffer) equal: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. if (ignition::math::equal(v.Z(), 0.0)) data/ignition-common-3.5.0+dfsg1/graphics/src/MeshManager_TEST.cc:217:27: [1] (buffer) equal: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. if (ignition::math::equal(n.Z(), 0.0)) data/ignition-common-3.5.0+dfsg1/graphics/src/MeshManager_TEST.cc:220:39: [1] (buffer) equal: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. EXPECT_TRUE(!(ignition::math::equal(n.X(), 0.0) && data/ignition-common-3.5.0+dfsg1/graphics/src/MeshManager_TEST.cc:221:39: [1] (buffer) equal: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. ignition::math::equal(n.Y(), 0.0))); data/ignition-common-3.5.0+dfsg1/graphics/src/MeshManager_TEST.cc:227:38: [1] (buffer) equal: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. (ignition::math::equal(n.Z(), 0.0))); data/ignition-common-3.5.0+dfsg1/graphics/src/MeshManager_TEST.cc:232:25: [1] (buffer) equal: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. if (ignition::math::equal(v.Z(), 10.0)) data/ignition-common-3.5.0+dfsg1/graphics/src/MeshManager_TEST.cc:234:27: [1] (buffer) equal: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. if (ignition::math::equal(n.Z(), 0.0)) data/ignition-common-3.5.0+dfsg1/graphics/src/MeshManager_TEST.cc:237:39: [1] (buffer) equal: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. EXPECT_TRUE(!(ignition::math::equal(n.X(), 0.0) && data/ignition-common-3.5.0+dfsg1/graphics/src/MeshManager_TEST.cc:238:39: [1] (buffer) equal: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. ignition::math::equal(n.Y(), 0.0))); data/ignition-common-3.5.0+dfsg1/graphics/src/MeshManager_TEST.cc:244:38: [1] (buffer) equal: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. (ignition::math::equal(n.Z(), 0.0))); data/ignition-common-3.5.0+dfsg1/graphics/src/Mesh_TEST.cc:150:21: [1] (buffer) equal: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. EXPECT_TRUE(math::equal(vertices[0], submesh.lock()->Vertex(0).X())); data/ignition-common-3.5.0+dfsg1/graphics/src/Mesh_TEST.cc:151:21: [1] (buffer) equal: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. EXPECT_TRUE(math::equal(vertices[1], submesh.lock()->Vertex(0).Y())); data/ignition-common-3.5.0+dfsg1/graphics/src/Mesh_TEST.cc:152:21: [1] (buffer) equal: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. EXPECT_TRUE(math::equal(vertices[2], submesh.lock()->Vertex(0).Z())); data/ignition-common-3.5.0+dfsg1/graphics/src/NodeAnimation.cc:145:13: [1] (buffer) equal: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. if (math::equal(time, this->data->length)) data/ignition-common-3.5.0+dfsg1/graphics/src/NodeAnimation.cc:151:53: [1] (buffer) equal: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. if (it1 == this->data->keyFrames.begin() || math::equal(it1->first, time)) data/ignition-common-3.5.0+dfsg1/graphics/src/NodeAnimation.cc:156:13: [1] (buffer) equal: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. if (math::equal(it2->first, time)) data/ignition-common-3.5.0+dfsg1/graphics/src/NodeAnimation.cc:212:13: [1] (buffer) equal: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. math::equal(it1->second.Translation().X(), _x)) data/ignition-common-3.5.0+dfsg1/graphics/src/Pbr.cc:130:25: [1] (buffer) equal: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. && (ignition::math::equal( data/ignition-common-3.5.0+dfsg1/graphics/src/Pbr.cc:132:25: [1] (buffer) equal: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. && (ignition::math::equal( data/ignition-common-3.5.0+dfsg1/graphics/src/Pbr.cc:134:25: [1] (buffer) equal: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. && (ignition::math::equal( data/ignition-common-3.5.0+dfsg1/graphics/src/STLLoader.cc:194:5: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). fgetc(_filein); data/ignition-common-3.5.0+dfsg1/graphics/src/STLLoader.cc:263:12: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). nchar1 = strlen(_string1); data/ignition-common-3.5.0+dfsg1/graphics/src/STLLoader.cc:264:12: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). nchar2 = strlen(_string2); data/ignition-common-3.5.0+dfsg1/graphics/src/STLLoader.cc:306:28: [1] (buffer) equal: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. if (!ignition::math::equal(_a[i][j], _r[i])) data/ignition-common-3.5.0+dfsg1/graphics/src/STLLoader.cc:336:16: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). y.ychar[0] = fgetc(_filein); data/ignition-common-3.5.0+dfsg1/graphics/src/STLLoader.cc:337:16: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). y.ychar[1] = fgetc(_filein); data/ignition-common-3.5.0+dfsg1/graphics/src/STLLoader.cc:338:16: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). y.ychar[2] = fgetc(_filein); data/ignition-common-3.5.0+dfsg1/graphics/src/STLLoader.cc:339:16: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). y.ychar[3] = fgetc(_filein); data/ignition-common-3.5.0+dfsg1/graphics/src/STLLoader.cc:350:8: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c1 = fgetc(_filein); data/ignition-common-3.5.0+dfsg1/graphics/src/STLLoader.cc:351:8: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c2 = fgetc(_filein); data/ignition-common-3.5.0+dfsg1/profiler/src/Remotery/lib/Remotery.c:343:9: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. usleep(time_ms * 1000); data/ignition-common-3.5.0+dfsg1/profiler/src/Remotery/lib/Remotery.c:642:17: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(buf, name, sizeof(buf)); data/ignition-common-3.5.0+dfsg1/profiler/src/Remotery/lib/Remotery.c:2987:14: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). field += strlen(field_name); data/ignition-common-3.5.0+dfsg1/src/Base64.cc:127:32: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). base64Chars + std::strlen(base64Chars), data/ignition-common-3.5.0+dfsg1/src/Base64.cc:153:30: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). base64Chars + std::strlen(base64Chars), data/ignition-common-3.5.0+dfsg1/src/SystemPaths.cc:305:44: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). const auto filename = _uri.substr(std::strlen("file://")); data/ignition-common-3.5.0+dfsg1/src/SystemPaths.cc:388:37: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). filename = filename.substr(std::strlen("file://")); data/ignition-common-3.5.0+dfsg1/src/URI.cc:700:37: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). auto from = schemeDelimPos + std::strlen(kSchemeDelim); data/ignition-common-3.5.0+dfsg1/src/URI.cc:737:37: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). auto from = schemeDelimPos + std::strlen(kSchemeDelim); data/ignition-common-3.5.0+dfsg1/src/win_dirent.h:350:17: [1] (buffer) wcslen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). n = wcslen(dirname); ANALYSIS SUMMARY: Hits = 154 Lines analyzed = 38594 in approximately 0.89 seconds (43355 lines/second) Physical Source Lines of Code (SLOC) = 25891 Hits@level = [0] 48 [1] 61 [2] 62 [3] 23 [4] 8 [5] 0 Hits@level+ = [0+] 202 [1+] 154 [2+] 93 [3+] 31 [4+] 8 [5+] 0 Hits/KSLOC@level+ = [0+] 7.80194 [1+] 5.94801 [2+] 3.59198 [3+] 1.19733 [4+] 0.308988 [5+] 0 Dot directories skipped = 1 (--followdotdir overrides) Minimum risk level = 1 Not every hit is necessarily a security vulnerability. There may be other security vulnerabilities; review your code! See 'Secure Programming HOWTO' (https://dwheeler.com/secure-programs) for more information.