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/octave-fits-1.0.7/src/read_fits_image.cc Examining data/octave-fits-1.0.7/src/save_fits_image.cc Examining data/octave-fits-1.0.7/src/save_fits_image_multi_ext.cc FINAL RESULTS: data/octave-fits-1.0.7/src/read_fits_image.cc:103: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 card[FLEN_CARD]; // standard string lengths defined in fitsioc.h data/octave-fits-1.0.7/src/save_fits_image_multi_ext.cc:131: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 keyname[9] = "XTENSION"; data/octave-fits-1.0.7/src/save_fits_image_multi_ext.cc: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 value[6] = "IMAGE"; data/octave-fits-1.0.7/src/save_fits_image_multi_ext.cc:133: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 comment[16] = "IMAGE extension"; ANALYSIS SUMMARY: Hits = 4 Lines analyzed = 547 in approximately 0.03 seconds (16372 lines/second) Physical Source Lines of Code (SLOC) = 393 Hits@level = [0] 21 [1] 0 [2] 4 [3] 0 [4] 0 [5] 0 Hits@level+ = [0+] 25 [1+] 4 [2+] 4 [3+] 0 [4+] 0 [5+] 0 Hits/KSLOC@level+ = [0+] 63.6132 [1+] 10.1781 [2+] 10.1781 [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.