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/nomad-0.10.5+dfsg1/vendor/github.com/NVIDIA/gpu-monitoring-tools/bindings/go/nvml/nvml.h Examining data/nomad-0.10.5+dfsg1/vendor/github.com/NVIDIA/gpu-monitoring-tools/bindings/go/nvml/nvml_dl.c Examining data/nomad-0.10.5+dfsg1/vendor/github.com/NVIDIA/gpu-monitoring-tools/bindings/go/nvml/nvml_dl.h FINAL RESULTS: data/nomad-0.10.5+dfsg1/vendor/github.com/NVIDIA/gpu-monitoring-tools/bindings/go/nvml/nvml.h:139: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 busIdLegacy[NVML_DEVICE_PCI_BUS_ID_BUFFER_V2_SIZE]; //!< The legacy tuple domain:bus:device.function PCI identifier (& NULL terminator) data/nomad-0.10.5+dfsg1/vendor/github.com/NVIDIA/gpu-monitoring-tools/bindings/go/nvml/nvml.h:148: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 busId[NVML_DEVICE_PCI_BUS_ID_BUFFER_SIZE]; //!< The tuple domain:bus:device.function PCI identifier (& NULL terminator) data/nomad-0.10.5+dfsg1/vendor/github.com/NVIDIA/gpu-monitoring-tools/bindings/go/nvml/nvml.h:955: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 firmwareVersion[32]; data/nomad-0.10.5+dfsg1/vendor/github.com/NVIDIA/gpu-monitoring-tools/bindings/go/nvml/nvml.h:982: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 cause[256]; //!< If amber, a text description of the cause data/nomad-0.10.5+dfsg1/vendor/github.com/NVIDIA/gpu-monitoring-tools/bindings/go/nvml/nvml.h:991: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 name[96]; //!< Product name data/nomad-0.10.5+dfsg1/vendor/github.com/NVIDIA/gpu-monitoring-tools/bindings/go/nvml/nvml.h:992: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[96]; //!< Product identifier data/nomad-0.10.5+dfsg1/vendor/github.com/NVIDIA/gpu-monitoring-tools/bindings/go/nvml/nvml.h:993: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 serial[96]; //!< Product serial number data/nomad-0.10.5+dfsg1/vendor/github.com/NVIDIA/gpu-monitoring-tools/bindings/go/nvml/nvml.h:994: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 firmwareVersion[96]; //!< Firmware version data/nomad-0.10.5+dfsg1/vendor/github.com/NVIDIA/gpu-monitoring-tools/bindings/go/nvml/nvml.h:1014: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 state[256]; //!< The power supply state data/nomad-0.10.5+dfsg1/vendor/github.com/NVIDIA/gpu-monitoring-tools/bindings/go/nvml/nvml.h:1357: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 processName[NVML_VGPU_NAME_BUFFER_SIZE]; //!< Name of process running within the vGPU VM data/nomad-0.10.5+dfsg1/vendor/github.com/NVIDIA/gpu-monitoring-tools/bindings/go/nvml/nvml.h:1385: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 licenseInfo[NVML_GRID_LICENSE_BUFFER_SIZE]; data/nomad-0.10.5+dfsg1/vendor/github.com/NVIDIA/gpu-monitoring-tools/bindings/go/nvml/nvml.h:5724: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 guestDriverVersion[NVML_SYSTEM_DRIVER_VERSION_BUFFER_SIZE]; //!< Version of driver installed in guest data/nomad-0.10.5+dfsg1/vendor/github.com/NVIDIA/gpu-monitoring-tools/bindings/go/nvml/nvml.h:5725: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 hostDriverVersion[NVML_SYSTEM_DRIVER_VERSION_BUFFER_SIZE]; //!< Version of driver installed in host data/nomad-0.10.5+dfsg1/vendor/github.com/NVIDIA/gpu-monitoring-tools/bindings/go/nvml/nvml.h:5728: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 opaqueData[4]; //!< Opaque data data/nomad-0.10.5+dfsg1/vendor/github.com/NVIDIA/gpu-monitoring-tools/bindings/go/nvml/nvml.h:5738: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 hostDriverVersion[NVML_SYSTEM_DRIVER_VERSION_BUFFER_SIZE]; //!< Host driver version data/nomad-0.10.5+dfsg1/vendor/github.com/NVIDIA/gpu-monitoring-tools/bindings/go/nvml/nvml.h:5742: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 opaqueData[4]; //!< Opaque data ANALYSIS SUMMARY: Hits = 16 Lines analyzed = 5932 in approximately 0.75 seconds (7858 lines/second) Physical Source Lines of Code (SLOC) = 967 Hits@level = [0] 0 [1] 0 [2] 16 [3] 0 [4] 0 [5] 0 Hits@level+ = [0+] 16 [1+] 16 [2+] 16 [3+] 0 [4+] 0 [5+] 0 Hits/KSLOC@level+ = [0+] 16.546 [1+] 16.546 [2+] 16.546 [3+] 0 [4+] 0 [5+] 0 Dot directories skipped = 5 (--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.