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/field3d-1.7.2/apps/f3dinfo/main.cpp Examining data/field3d-1.7.2/apps/f3dmakemip/main.cpp Examining data/field3d-1.7.2/apps/f3dmerge/main.cpp Examining data/field3d-1.7.2/apps/f3dsample/main.cpp Examining data/field3d-1.7.2/apps/sample_code/create_and_write/main.cpp Examining data/field3d-1.7.2/apps/sample_code/mixed_types/main.cpp Examining data/field3d-1.7.2/apps/sample_code/read/main.cpp Examining data/field3d-1.7.2/apps/sample_code/sparse_field_io/main.cpp Examining data/field3d-1.7.2/contrib/maya_plugin/exportF3d/exportF3d.cpp Examining data/field3d-1.7.2/export/ClassFactory.h Examining data/field3d-1.7.2/export/CoordSys.h Examining data/field3d-1.7.2/export/Curve.h Examining data/field3d-1.7.2/export/DenseField.h Examining data/field3d-1.7.2/export/Documentation.h Examining data/field3d-1.7.2/export/EmptyField.h Examining data/field3d-1.7.2/export/Exception.h Examining data/field3d-1.7.2/export/Field.h Examining data/field3d-1.7.2/export/Field3DFile.h Examining data/field3d-1.7.2/export/Field3DFileHDF5.h Examining data/field3d-1.7.2/export/FieldCache.h Examining data/field3d-1.7.2/export/FieldGroup.h Examining data/field3d-1.7.2/export/FieldIO.h Examining data/field3d-1.7.2/export/FieldInterp.h Examining data/field3d-1.7.2/export/FieldMapping.h Examining data/field3d-1.7.2/export/FieldMappingIO.h Examining data/field3d-1.7.2/export/FieldMetadata.h Examining data/field3d-1.7.2/export/FieldSampler.h Examining data/field3d-1.7.2/export/FieldWrapper.h Examining data/field3d-1.7.2/export/FileSequence.h Examining data/field3d-1.7.2/export/Hdf5Util.h Examining data/field3d-1.7.2/export/InitIO.h Examining data/field3d-1.7.2/export/Log.h Examining data/field3d-1.7.2/export/MACField.h Examining data/field3d-1.7.2/export/MACFieldUtil.h Examining data/field3d-1.7.2/export/MIPBase.h Examining data/field3d-1.7.2/export/MIPField.h Examining data/field3d-1.7.2/export/MIPInterp.h Examining data/field3d-1.7.2/export/MIPUtil.h Examining data/field3d-1.7.2/export/MinMaxUtil.h Examining data/field3d-1.7.2/export/OgawaFwd.h Examining data/field3d-1.7.2/export/PatternMatch.h Examining data/field3d-1.7.2/export/PluginLoader.h Examining data/field3d-1.7.2/export/ProceduralField.h Examining data/field3d-1.7.2/export/RefCount.h Examining data/field3d-1.7.2/export/Resample.h Examining data/field3d-1.7.2/export/SparseDataReader.h Examining data/field3d-1.7.2/export/SparseField.h Examining data/field3d-1.7.2/export/SparseFile.h Examining data/field3d-1.7.2/export/SpiMathLib.h Examining data/field3d-1.7.2/export/StdMathLib.h Examining data/field3d-1.7.2/export/Traits.h Examining data/field3d-1.7.2/export/Types.h Examining data/field3d-1.7.2/export/ns.h Examining data/field3d-1.7.2/include/All.h Examining data/field3d-1.7.2/include/DenseFieldIO.h Examining data/field3d-1.7.2/include/Foundation.h Examining data/field3d-1.7.2/include/IArchive.h Examining data/field3d-1.7.2/include/IData.h Examining data/field3d-1.7.2/include/IGroup.h Examining data/field3d-1.7.2/include/IStreams.h Examining data/field3d-1.7.2/include/MACFieldIO.h Examining data/field3d-1.7.2/include/MIPFieldIO.h Examining data/field3d-1.7.2/include/OArchive.h Examining data/field3d-1.7.2/include/OData.h Examining data/field3d-1.7.2/include/OGroup.h Examining data/field3d-1.7.2/include/OStream.h Examining data/field3d-1.7.2/include/OgIAttribute.h Examining data/field3d-1.7.2/include/OgIDataset.h Examining data/field3d-1.7.2/include/OgIGroup.h Examining data/field3d-1.7.2/include/OgIO.h Examining data/field3d-1.7.2/include/OgOAttribute.h Examining data/field3d-1.7.2/include/OgODataset.h Examining data/field3d-1.7.2/include/OgOGroup.h Examining data/field3d-1.7.2/include/OgSparseDataReader.h Examining data/field3d-1.7.2/include/OgUtil.h Examining data/field3d-1.7.2/include/OgawaUtil.h Examining data/field3d-1.7.2/include/SparseFieldIO.h Examining data/field3d-1.7.2/include/UtilFoundation.h Examining data/field3d-1.7.2/include/UtilPlainOldDataType.h Examining data/field3d-1.7.2/src/ClassFactory.cpp Examining data/field3d-1.7.2/src/DenseFieldIO.cpp Examining data/field3d-1.7.2/src/Field.cpp Examining data/field3d-1.7.2/src/Field3DFile.cpp Examining data/field3d-1.7.2/src/Field3DFileHDF5.cpp Examining data/field3d-1.7.2/src/FieldCache.cpp Examining data/field3d-1.7.2/src/FieldInterp.cpp Examining data/field3d-1.7.2/src/FieldMapping.cpp Examining data/field3d-1.7.2/src/FieldMappingIO.cpp Examining data/field3d-1.7.2/src/FieldMetadata.cpp Examining data/field3d-1.7.2/src/FileSequence.cpp Examining data/field3d-1.7.2/src/Hdf5Util.cpp Examining data/field3d-1.7.2/src/IArchive.cpp Examining data/field3d-1.7.2/src/IData.cpp Examining data/field3d-1.7.2/src/IGroup.cpp Examining data/field3d-1.7.2/src/IStreams.cpp Examining data/field3d-1.7.2/src/InitIO.cpp Examining data/field3d-1.7.2/src/Log.cpp Examining data/field3d-1.7.2/src/MACFieldIO.cpp Examining data/field3d-1.7.2/src/MIPFieldIO.cpp Examining data/field3d-1.7.2/src/MIPUtil.cpp Examining data/field3d-1.7.2/src/MinMaxUtil.cpp Examining data/field3d-1.7.2/src/OArchive.cpp Examining data/field3d-1.7.2/src/OData.cpp Examining data/field3d-1.7.2/src/OGroup.cpp Examining data/field3d-1.7.2/src/OStream.cpp Examining data/field3d-1.7.2/src/OgIGroup.cpp Examining data/field3d-1.7.2/src/OgUtil.cpp Examining data/field3d-1.7.2/src/PatternMatch.cpp Examining data/field3d-1.7.2/src/PluginLoader.cpp Examining data/field3d-1.7.2/src/ProceduralField.cpp Examining data/field3d-1.7.2/src/Resample.cpp Examining data/field3d-1.7.2/src/SparseFieldIO.cpp Examining data/field3d-1.7.2/src/SparseFile.cpp Examining data/field3d-1.7.2/test/misc_tests/access_speed/main.cpp Examining data/field3d-1.7.2/test/misc_tests/lib_perf_test/src/main.cpp Examining data/field3d-1.7.2/test/misc_tests/threading_and_virtual_calls/main.cpp Examining data/field3d-1.7.2/test/unit_tests/UnitTest.cpp FINAL RESULTS: data/field3d-1.7.2/contrib/maya_plugin/exportF3d/exportF3d.cpp:383:7: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(fluidPath, "%s/%s.%04d.f3d", m_outputPath.asChar(), data/field3d-1.7.2/src/ClassFactory.cpp:102: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. char *debugEnvVar = getenv("FIELD3D_DEBUG"); data/field3d-1.7.2/src/ClassFactory.cpp:153: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. char *debugEnvVar = getenv("FIELD3D_DEBUG"); data/field3d-1.7.2/src/ClassFactory.cpp:205: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. char *debugEnvVar = getenv("FIELD3D_DEBUG"); data/field3d-1.7.2/src/ClassFactory.cpp:255: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. char *debugEnvVar = getenv("FIELD3D_DEBUG"); data/field3d-1.7.2/src/Field3DFileHDF5.cpp:298:7: [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("DEBUG_HDF")) { data/field3d-1.7.2/src/PluginLoader.cpp:224:25: [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. char *debugEnvVar = getenv("FIELD3D_DEBUG"); data/field3d-1.7.2/src/PluginLoader.cpp:255:16: [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. char *cptr = getenv("FIELD3D_DSO_PATH"); data/field3d-1.7.2/src/PluginLoader.cpp:377:17: [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. char *cptr = getenv("HOUDINI_DSO_PATH"); data/field3d-1.7.2/test/unit_tests/UnitTest.cpp:137: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. std::string tempDir = ::getenv("TMP"); data/field3d-1.7.2/apps/f3dinfo/main.cpp:267:11: [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). if (!in.open(filename)) { data/field3d-1.7.2/apps/f3dmakemip/main.cpp:351:11: [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). if (!in.open(filename)) { data/field3d-1.7.2/apps/f3dmerge/main.cpp:219:11: [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). if (!in.open(filename)) { data/field3d-1.7.2/apps/sample_code/read/main.cpp:151:11: [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). if (!in.open(filename)) { data/field3d-1.7.2/apps/sample_code/sparse_field_io/main.cpp:133:6: [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). in.open(filename); data/field3d-1.7.2/contrib/maya_plugin/exportF3d/exportF3d.cpp:362: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 fluidPath[1024]; data/field3d-1.7.2/export/Field3DFile.h:431: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). bool open(const std::string &filename); data/field3d-1.7.2/export/Field3DFile.h:668: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 c[4]; data/field3d-1.7.2/export/Field3DFileHDF5.h:677: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). bool open(const std::string &filename); data/field3d-1.7.2/export/FieldGroup.h:640:13: [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). if (!in.open(fn)) { data/field3d-1.7.2/export/Hdf5Util.h:204:5: [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). open(parentLocation, name); data/field3d-1.7.2/export/Hdf5Util.h:208:5: [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). open(parentLocation, name, gapl_id); data/field3d-1.7.2/export/Hdf5Util.h:210: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). void open(hid_t parentLocation, const std::string &name) data/field3d-1.7.2/export/Hdf5Util.h: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). void open(hid_t parentLocation, const std::string &name, hid_t gapl_id) data/field3d-1.7.2/export/Hdf5Util.h:366:5: [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). open(parentLocation, name, dapl_id); data/field3d-1.7.2/export/Hdf5Util.h:368: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). void open(hid_t parentLocation, const std::string &name, hid_t dapl_id) data/field3d-1.7.2/export/Hdf5Util.h:396:5: [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). open(dataset_id); data/field3d-1.7.2/export/Hdf5Util.h:398: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). void open(hid_t dataset_id) data/field3d-1.7.2/export/Hdf5Util.h:426:5: [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). open(dataset_id); data/field3d-1.7.2/export/Hdf5Util.h:428: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). void open(hid_t dataset_id) data/field3d-1.7.2/export/SparseDataReader.h:136:11: [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). dataSet.open(m_location, k_dataStr, H5P_DEFAULT); data/field3d-1.7.2/export/SparseDataReader.h:141:17: [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). fileDataSpace.open(dataSet.id()); data/field3d-1.7.2/export/SparseDataReader.h:142: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). dataType.open(dataSet.id()); data/field3d-1.7.2/export/SparseDataReader.h:205:11: [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). dataSet.open(m_location, k_dataStr, H5P_DEFAULT); data/field3d-1.7.2/export/SparseDataReader.h:210:17: [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). fileDataSpace.open(dataSet.id()); data/field3d-1.7.2/export/SparseDataReader.h:211: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). dataType.open(dataSet.id()); data/field3d-1.7.2/export/SparseDataReader.h:288: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(memoryList[i], data/field3d-1.7.2/export/SparseFile.h:638:18: [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). m_layerGroup.open(m_fileHandle, layerPath.c_str()); data/field3d-1.7.2/src/Field3DFile.cpp:714:24: [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). bool Field3DInputFile::open(const string &filename) data/field3d-1.7.2/src/Field3DFile.cpp:735:19: [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). if (m_hdf5->open(filename)) { data/field3d-1.7.2/src/Field3DFileHDF5.cpp:586:28: [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). bool Field3DInputFileHDF5::open(const string &filename) data/field3d-1.7.2/src/FileSequence.cpp:142:21: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). const int start = atoi(startStr.c_str()); data/field3d-1.7.2/src/FileSequence.cpp:143:21: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). const int end = atoi(endStr.c_str()); data/field3d-1.7.2/src/IStreams.cpp:92:17: [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). filestream->open(iFileName.c_str(), std::ios::binary); data/field3d-1.7.2/src/IStreams.cpp:140: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 c[4]; data/field3d-1.7.2/src/IStreams.cpp:160: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 header[16] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}; data/field3d-1.7.2/src/IStreams.cpp:236:25: [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). filestream->open(mData->fileName.c_str(), std::ios::binary); data/field3d-1.7.2/src/OStream.cpp:132: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 c[4]; data/field3d-1.7.2/src/SparseFile.cpp:576:20: [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). m_layerGroup.open(m_fileHandle, layerPath.c_str()); data/field3d-1.7.2/test/misc_tests/lib_perf_test/src/main.cpp:2013: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). in.open(filename); data/field3d-1.7.2/test/misc_tests/lib_perf_test/src/main.cpp:2050: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). in.open(filename); data/field3d-1.7.2/test/misc_tests/lib_perf_test/src/main.cpp:2087:10: [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(); data/field3d-1.7.2/test/misc_tests/lib_perf_test/src/main.cpp:2158: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). in.open(filename); data/field3d-1.7.2/test/misc_tests/lib_perf_test/src/main.cpp:2195: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). in.open(filename); data/field3d-1.7.2/test/misc_tests/lib_perf_test/src/main.cpp:2232:10: [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(); data/field3d-1.7.2/test/unit_tests/UnitTest.cpp:1107:11: [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). iFile.open(filename); data/field3d-1.7.2/test/unit_tests/UnitTest.cpp:1308:6: [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). in.open(filename); data/field3d-1.7.2/test/unit_tests/UnitTest.cpp:1422:6: [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). in.open(filename); data/field3d-1.7.2/test/unit_tests/UnitTest.cpp:1533:26: [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). BOOST_CHECK_EQUAL(in.open(getTempFile("test_DenseField_float_hdf5.f3d")), data/field3d-1.7.2/test/unit_tests/UnitTest.cpp:1539:26: [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). BOOST_CHECK_EQUAL(in.open(getTempFile("test_DenseField_float_ogawa.f3d")), data/field3d-1.7.2/test/unit_tests/UnitTest.cpp:1858:24: [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). BOOST_CHECK_EQUAL(in.open(filename), true); data/field3d-1.7.2/test/unit_tests/UnitTest.cpp:1996:25: [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). bool readSuccess = in.open(filename); data/field3d-1.7.2/test/unit_tests/UnitTest.cpp:2048:6: [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). in.open(filename); data/field3d-1.7.2/test/unit_tests/UnitTest.cpp:2105:6: [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). in.open(filename); data/field3d-1.7.2/test/unit_tests/UnitTest.cpp:2466:6: [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). in.open(filename); data/field3d-1.7.2/test/unit_tests/UnitTest.cpp:2583: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). in.open(filename); data/field3d-1.7.2/export/Field3DFileHDF5.h:1660:30: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). FieldBase::Ptr field = io->read(layerGroup, filename, layerPath, typeEnum); data/field3d-1.7.2/export/FieldIO.h:118:26: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). virtual FieldBase::Ptr read(hid_t layerGroup, const std::string &filename, data/field3d-1.7.2/export/FieldIO.h:125:26: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). virtual FieldBase::Ptr read(const OgIGroup &layerGroup, data/field3d-1.7.2/export/FieldMappingIO.h:100:29: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). virtual FieldMapping::Ptr read(hid_t mappingGroup) = 0; data/field3d-1.7.2/export/FieldMappingIO.h:105:29: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). virtual FieldMapping::Ptr read(const OgIGroup &mappingGroup) = 0; data/field3d-1.7.2/export/FieldMappingIO.h:172:29: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). virtual FieldMapping::Ptr read(hid_t mappingGroup); data/field3d-1.7.2/export/FieldMappingIO.h:177:29: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). virtual FieldMapping::Ptr read(const OgIGroup &mappingGroup); data/field3d-1.7.2/export/FieldMappingIO.h:244:29: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). virtual FieldMapping::Ptr read(hid_t mappingGroup); data/field3d-1.7.2/export/FieldMappingIO.h:249:29: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). virtual FieldMapping::Ptr read(const OgIGroup &mappingGroup); data/field3d-1.7.2/export/FieldMappingIO.h:316:29: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). virtual FieldMapping::Ptr read(hid_t mappingGroup); data/field3d-1.7.2/export/FieldMappingIO.h:321:29: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). virtual FieldMapping::Ptr read(const OgIGroup &mappingGroup); data/field3d-1.7.2/include/DenseFieldIO.h:117:26: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). virtual FieldBase::Ptr read(hid_t layerGroup, const std::string &filename, data/field3d-1.7.2/include/DenseFieldIO.h:124:26: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). virtual FieldBase::Ptr read(const OgIGroup &layerGroup, data/field3d-1.7.2/include/IData.h:52:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). void read(Alembic::Util::uint64_t iSize, void * iData, data/field3d-1.7.2/include/IStreams.h:59:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). void read(std::size_t iThreadId, Alembic::Util::uint64_t iPos, data/field3d-1.7.2/include/MACFieldIO.h:116:26: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). virtual FieldBase::Ptr read(hid_t layerGroup, const std::string &filename, data/field3d-1.7.2/include/MACFieldIO.h:123:26: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). virtual FieldBase::Ptr read(const OgIGroup &layerGroup, data/field3d-1.7.2/include/MIPFieldIO.h:127:26: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). virtual FieldBase::Ptr read(hid_t layerGroup, data/field3d-1.7.2/include/MIPFieldIO.h:135:26: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). virtual FieldBase::Ptr read(const OgIGroup &layerGroup, data/field3d-1.7.2/include/MIPFieldIO.h:281:32: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). FieldBase::Ptr field = io->read(*levelGroup, m_filename, m_path, m_typeEnum); data/field3d-1.7.2/include/MIPFieldIO.h:362:32: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). FieldBase::Ptr field = io->read(levelGroup, m_filename, m_path, m_typeEnum); data/field3d-1.7.2/include/OgIDataset.h:205:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). idata->read(dataSize, data, 0, threadId); data/field3d-1.7.2/include/OgIDataset.h:285:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). idata->read(dataSize, data, 0, threadId); data/field3d-1.7.2/include/OgUtil.h:117:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). data->read(length, &value, 0, OGAWA_THREAD); data/field3d-1.7.2/include/SparseFieldIO.h:120:26: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). virtual FieldBase::Ptr read(hid_t layerGroup, const std::string &filename, data/field3d-1.7.2/include/SparseFieldIO.h:127:26: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). virtual FieldBase::Ptr read(const OgIGroup &layerGroup, data/field3d-1.7.2/src/DenseFieldIO.cpp:83:15: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). DenseFieldIO::read(hid_t layerGroup, const std::string &/*filename*/, data/field3d-1.7.2/src/DenseFieldIO.cpp:168:15: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). DenseFieldIO::read(const OgIGroup &lg, const std::string &/*filename*/, data/field3d-1.7.2/src/Field3DFile.cpp:210:37: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). FieldMapping::Ptr mapping = io->read(mappingGroup); data/field3d-1.7.2/src/Field3DFile.cpp:264:32: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). FieldBase::Ptr field = io->read(layerGroup, filename, layerPath, typeEnum); data/field3d-1.7.2/src/Field3DFileHDF5.cpp:1634:35: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). FieldMapping::Ptr mapping = io->read(mappingGroup); data/field3d-1.7.2/src/FieldMappingIO.cpp:88:21: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). NullFieldMappingIO::read(hid_t mappingGroup) data/field3d-1.7.2/src/FieldMappingIO.cpp:101:21: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). NullFieldMappingIO::read(const OgIGroup &mappingGroup) data/field3d-1.7.2/src/FieldMappingIO.cpp:148:23: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). MatrixFieldMappingIO::read(hid_t mappingGroup) data/field3d-1.7.2/src/FieldMappingIO.cpp:204:23: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). MatrixFieldMappingIO::read(const OgIGroup &mappingGroup) data/field3d-1.7.2/src/FieldMappingIO.cpp:344:24: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). FrustumFieldMappingIO::read(hid_t mappingGroup) data/field3d-1.7.2/src/FieldMappingIO.cpp:414:24: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). FrustumFieldMappingIO::read(const OgIGroup &mappingGroup) data/field3d-1.7.2/src/IArchive.cpp:59:19: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). mStreams->read(0, 8, 8, &pos); data/field3d-1.7.2/src/IData.cpp:82:25: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). mData->streams->read(iThreadId, mData->pos, 8, &size); data/field3d-1.7.2/src/IData.cpp:87:13: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). void IData::read(Alembic::Util::uint64_t iSize, void * iData, data/field3d-1.7.2/src/IData.cpp:97:21: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). mData->streams->read(iThreadId, mData->pos + iOffset + 8, iSize, iData); data/field3d-1.7.2/src/IGroup.cpp:77:21: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). mData->streams->read(iThreadIndex, iPos, 8, &mData->numChildren); data/field3d-1.7.2/src/IGroup.cpp:87:25: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). mData->streams->read(iThreadIndex, iPos + 8, mData->numChildren * 8, data/field3d-1.7.2/src/IGroup.cpp:106:29: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). mData->streams->read(iThreadIndex, mData->pos + 8 * iIndex + 8, 8, data/field3d-1.7.2/src/IGroup.cpp:134:29: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). mData->streams->read(iThreadIndex, mData->pos + 8 * iIndex + 8, 8, data/field3d-1.7.2/src/IStreams.cpp:162:28: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). mData->streams[i]->read(header, 16); data/field3d-1.7.2/src/IStreams.cpp:214:16: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). void IStreams::read(std::size_t iThreadId, Alembic::Util::uint64_t iPos, data/field3d-1.7.2/src/IStreams.cpp:252:21: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). read(0, iPos, iSize, oBuf); data/field3d-1.7.2/src/IStreams.cpp:258:17: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). stream->read((char *)oBuf, iSize); data/field3d-1.7.2/src/MACFieldIO.cpp:79:13: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). MACFieldIO::read(hid_t layerGroup, const std::string & /* filename */, data/field3d-1.7.2/src/MACFieldIO.cpp:158:13: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). MACFieldIO::read(const OgIGroup & /* layerGroup */, data/field3d-1.7.2/src/MIPFieldIO.cpp:87:13: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). MIPFieldIO::read(hid_t layerGroup, const std::string &filename, data/field3d-1.7.2/src/MIPFieldIO.cpp:195:13: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). MIPFieldIO::read(const OgIGroup &layerGroup, const std::string &filename, data/field3d-1.7.2/src/OgUtil.cpp:56:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). data->read(length, &temp[0], 0, OGAWA_THREAD); data/field3d-1.7.2/src/OgUtil.cpp:79:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). data->read(length, &dataType, 0, OGAWA_THREAD); data/field3d-1.7.2/src/SparseFieldIO.cpp:321:16: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). SparseFieldIO::read(hid_t layerGroup, const std::string &filename, data/field3d-1.7.2/src/SparseFieldIO.cpp:460:16: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). SparseFieldIO::read(const OgIGroup &layerGroup, const std::string &filename, ANALYSIS SUMMARY: Hits = 123 Lines analyzed = 48573 in approximately 1.08 seconds (44934 lines/second) Physical Source Lines of Code (SLOC) = 27845 Hits@level = [0] 2 [1] 57 [2] 56 [3] 9 [4] 1 [5] 0 Hits@level+ = [0+] 125 [1+] 123 [2+] 66 [3+] 10 [4+] 1 [5+] 0 Hits/KSLOC@level+ = [0+] 4.48914 [1+] 4.41731 [2+] 2.37026 [3+] 0.359131 [4+] 0.0359131 [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.