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/rem-0.6.0/include/rem.h Examining data/rem-0.6.0/include/rem_au.h Examining data/rem-0.6.0/include/rem_aubuf.h Examining data/rem-0.6.0/include/rem_auconv.h Examining data/rem-0.6.0/include/rem_audio.h Examining data/rem-0.6.0/include/rem_aufile.h Examining data/rem-0.6.0/include/rem_aumix.h Examining data/rem-0.6.0/include/rem_auresamp.h Examining data/rem-0.6.0/include/rem_autone.h Examining data/rem-0.6.0/include/rem_avc.h Examining data/rem-0.6.0/include/rem_dsp.h Examining data/rem-0.6.0/include/rem_dtmf.h Examining data/rem-0.6.0/include/rem_fir.h Examining data/rem-0.6.0/include/rem_flv.h Examining data/rem-0.6.0/include/rem_g711.h Examining data/rem-0.6.0/include/rem_goertzel.h Examining data/rem-0.6.0/include/rem_vid.h Examining data/rem-0.6.0/include/rem_vidconv.h Examining data/rem-0.6.0/include/rem_video.h Examining data/rem-0.6.0/include/rem_vidmix.h Examining data/rem-0.6.0/src/au/fmt.c Examining data/rem-0.6.0/src/aubuf/aubuf.c Examining data/rem-0.6.0/src/auconv/auconv.c Examining data/rem-0.6.0/src/aufile/aufile.c Examining data/rem-0.6.0/src/aufile/aufile.h Examining data/rem-0.6.0/src/aufile/wave.c Examining data/rem-0.6.0/src/aumix/aumix.c Examining data/rem-0.6.0/src/auresamp/resamp.c Examining data/rem-0.6.0/src/autone/tone.c Examining data/rem-0.6.0/src/avc/config.c Examining data/rem-0.6.0/src/dtmf/dec.c Examining data/rem-0.6.0/src/fir/fir.c Examining data/rem-0.6.0/src/g711/g711.c Examining data/rem-0.6.0/src/goertzel/goertzel.c Examining data/rem-0.6.0/src/vid/draw.c Examining data/rem-0.6.0/src/vid/fmt.c Examining data/rem-0.6.0/src/vid/frame.c Examining data/rem-0.6.0/src/vidconv/vconv.c Examining data/rem-0.6.0/src/vidmix/vidmix.c FINAL RESULTS: data/rem-0.6.0/src/aufile/aufile.c:127: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). af->f = fopen(filename, mode == AUFILE_READ ? "rb" : "wb"); data/rem-0.6.0/src/aumix/aumix.c:159:4: [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(mix_frame, base_frame, mix->frame_size*2); data/rem-0.6.0/src/dtmf/dec.c:23:14: [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. static const char keyv[4][4] = {{'1', '2', '3', 'A'}, data/rem-0.6.0/src/vid/frame.c:271:4: [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(dd0, ds0, w); data/rem-0.6.0/src/vid/frame.c:275:4: [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(dd0, ds0, w); data/rem-0.6.0/src/vid/frame.c:279:4: [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(dd1, ds1, w/2); data/rem-0.6.0/src/vid/frame.c:283:4: [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(dd2, ds2, w/2); data/rem-0.6.0/src/vid/frame.c:307:4: [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(dd0, ds0, w); data/rem-0.6.0/src/vid/frame.c:312:4: [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(dd1, ds1, w); data/rem-0.6.0/src/vid/frame.c:317:4: [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(dd2, ds2, w); data/rem-0.6.0/src/vid/frame.c:339:4: [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(dd0, ds0, w); data/rem-0.6.0/src/vid/frame.c:343:4: [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(dd0, ds0, w); data/rem-0.6.0/src/vid/frame.c:347:4: [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(dd1, ds1, w); data/rem-0.6.0/src/aumix/aumix.c:114:10: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. (void)usleep(4000); data/rem-0.6.0/src/vidmix/vidmix.c:202:9: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. (void)usleep(4000); data/rem-0.6.0/src/vidmix/vidmix.c:288:9: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. (void)usleep(4000); ANALYSIS SUMMARY: Hits = 16 Lines analyzed = 6028 in approximately 0.19 seconds (32309 lines/second) Physical Source Lines of Code (SLOC) = 4083 Hits@level = [0] 5 [1] 3 [2] 13 [3] 0 [4] 0 [5] 0 Hits@level+ = [0+] 21 [1+] 16 [2+] 13 [3+] 0 [4+] 0 [5+] 0 Hits/KSLOC@level+ = [0+] 5.14328 [1+] 3.91869 [2+] 3.18393 [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.