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/libquota-perl-1.8.1+dfsg/stdio_wrap.c Examining data/libquota-perl-1.8.1+dfsg/hints/irix_5.h Examining data/libquota-perl-1.8.1+dfsg/hints/hpux.h Examining data/libquota-perl-1.8.1+dfsg/hints/aix_4_1.h Examining data/libquota-perl-1.8.1+dfsg/hints/sunos_4_1.h Examining data/libquota-perl-1.8.1+dfsg/hints/irix_6.h Examining data/libquota-perl-1.8.1+dfsg/hints/none.h Examining data/libquota-perl-1.8.1+dfsg/hints/solaris_2.h Examining data/libquota-perl-1.8.1+dfsg/hints/dec_osf.h Examining data/libquota-perl-1.8.1+dfsg/hints/bsd.h Examining data/libquota-perl-1.8.1+dfsg/hints/linux.h Examining data/libquota-perl-1.8.1+dfsg/hints/gnu.h Examining data/libquota-perl-1.8.1+dfsg/afsquota.c Examining data/libquota-perl-1.8.1+dfsg/include/vxquotactl.h Examining data/libquota-perl-1.8.1+dfsg/include/rquota.h Examining data/libquota-perl-1.8.1+dfsg/include/quotaio_xfs.h Examining data/libquota-perl-1.8.1+dfsg/include/stdio_wrap.h Examining data/libquota-perl-1.8.1+dfsg/include/afsquota.h Examining data/libquota-perl-1.8.1+dfsg/linuxapi.c FINAL RESULTS: data/libquota-perl-1.8.1+dfsg/afsquota.c:35: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 space[MAXSIZE]; data/libquota-perl-1.8.1+dfsg/include/quotaio_xfs.h:76:2: [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_padding4[8]; /* yet more padding */ data/libquota-perl-1.8.1+dfsg/linuxapi.c:155: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 tmp[1024]; /* Just temporary buffer */ data/libquota-perl-1.8.1+dfsg/linuxapi.c:179:23: [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). if ((qf = fopen("/proc/fs/quota", "r"))) { data/libquota-perl-1.8.1+dfsg/stdio_wrap.c:10:10: [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). return fopen(filename, mode); data/libquota-perl-1.8.1+dfsg/afsquota.c:104: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). insize = sizeof(struct VolumeStatus) + strlen(path) + 2; ANALYSIS SUMMARY: Hits = 6 Lines analyzed = 1679 in approximately 0.08 seconds (20052 lines/second) Physical Source Lines of Code (SLOC) = 1021 Hits@level = [0] 8 [1] 1 [2] 5 [3] 0 [4] 0 [5] 0 Hits@level+ = [0+] 14 [1+] 6 [2+] 5 [3+] 0 [4+] 0 [5+] 0 Hits/KSLOC@level+ = [0+] 13.712 [1+] 5.87659 [2+] 4.89716 [3+] 0 [4+] 0 [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.