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/cadvisor-0.37.0+ds1/debian/vendor/github.com/mindprince/gonvml/nvml.h FINAL RESULTS: data/cadvisor-0.37.0+ds1/debian/vendor/github.com/mindprince/gonvml/nvml.h:132: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/cadvisor-0.37.0+ds1/debian/vendor/github.com/mindprince/gonvml/nvml.h:929: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/cadvisor-0.37.0+ds1/debian/vendor/github.com/mindprince/gonvml/nvml.h:956: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/cadvisor-0.37.0+ds1/debian/vendor/github.com/mindprince/gonvml/nvml.h:965: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/cadvisor-0.37.0+ds1/debian/vendor/github.com/mindprince/gonvml/nvml.h:966: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/cadvisor-0.37.0+ds1/debian/vendor/github.com/mindprince/gonvml/nvml.h:967: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/cadvisor-0.37.0+ds1/debian/vendor/github.com/mindprince/gonvml/nvml.h:968: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/cadvisor-0.37.0+ds1/debian/vendor/github.com/mindprince/gonvml/nvml.h:988: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/cadvisor-0.37.0+ds1/debian/vendor/github.com/mindprince/gonvml/nvml.h:1289: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/cadvisor-0.37.0+ds1/debian/vendor/github.com/mindprince/gonvml/nvml.h:1317: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_INFO_MAX_LENGTH]; ANALYSIS SUMMARY: Hits = 10 Lines analyzed = 5605 in approximately 0.29 seconds (19203 lines/second) Physical Source Lines of Code (SLOC) = 839 Hits@level = [0] 0 [1] 0 [2] 10 [3] 0 [4] 0 [5] 0 Hits@level+ = [0+] 10 [1+] 10 [2+] 10 [3+] 0 [4+] 0 [5+] 0 Hits/KSLOC@level+ = [0+] 11.919 [1+] 11.919 [2+] 11.919 [3+] 0 [4+] 0 [5+] 0 Dot directories skipped = 2 (--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.