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/brp-pacu-2.1.1+git20111020/ige-mac-dock.c Examining data/brp-pacu-2.1.1+git20111020/testfft.c Examining data/brp-pacu-2.1.1+git20111020/config.h Examining data/brp-pacu-2.1.1+git20111020/ige-mac-menu.c Examining data/brp-pacu-2.1.1+git20111020/ige-mac-menu.h Examining data/brp-pacu-2.1.1+git20111020/main.h Examining data/brp-pacu-2.1.1+git20111020/testfft.h Examining data/brp-pacu-2.1.1+git20111020/ige-mac-image-utils.h Examining data/brp-pacu-2.1.1+git20111020/ige-mac-dock.h Examining data/brp-pacu-2.1.1+git20111020/ige-mac-private.h Examining data/brp-pacu-2.1.1+git20111020/gui.h Examining data/brp-pacu-2.1.1+git20111020/BRP_PACU.c Examining data/brp-pacu-2.1.1+git20111020/gui.c FINAL RESULTS: data/brp-pacu-2.1.1+git20111020/BRP_PACU.c:506:7: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. system("open -b gpl.elementicaotici.JackPilot"); // Launch JackPilot so that the user has not to search around data/brp-pacu-2.1.1+git20111020/gui.c:133:4: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, format, text); data/brp-pacu-2.1.1+git20111020/gui.c:683:19: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(strBuffer, bn); data/brp-pacu-2.1.1+git20111020/gui.c:1187:4: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(gtkbuilder_path, "%s/BRP_PACU.ui", datadir); data/brp-pacu-2.1.1+git20111020/gui.c:1258:4: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(tmp_string, "BRP-PACU v%s", VERSION); data/brp-pacu-2.1.1+git20111020/gui.c:1442:4: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(file_path1, "%s/Library/Caches/BRP-PACU", home_string); data/brp-pacu-2.1.1+git20111020/gui.c:1444:4: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(file_path1, "%s/.BRP_PACU", home_string); data/brp-pacu-2.1.1+git20111020/gui.c:1446:4: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(file_path2, "%s/buff_store.brp", file_path1 ); data/brp-pacu-2.1.1+git20111020/gui.c:1437:18: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. home_string = getenv ("HOME"); data/brp-pacu-2.1.1+git20111020/BRP_PACU.c:115:10: [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 (audio1, in_buffer1, data/brp-pacu-2.1.1+git20111020/BRP_PACU.c:117:10: [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 (audio2, in_buffer2, data/brp-pacu-2.1.1+git20111020/BRP_PACU.c:119:10: [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 (out_buffer, pink_noise, data/brp-pacu-2.1.1+git20111020/BRP_PACU.c:205: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(temp_frame_data->buffer_data_1, frame_data->buffer_data_1, N_FFT*sizeof(short)); data/brp-pacu-2.1.1+git20111020/BRP_PACU.c:206: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(temp_frame_data->buffer_data_2, frame_data->buffer_data_2, N_FFT*sizeof(short)); data/brp-pacu-2.1.1+git20111020/BRP_PACU.c:207: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(temp_frame_data->plan, frame_data->plan, sizeof(frame_data->plan)); data/brp-pacu-2.1.1+git20111020/BRP_PACU.c:212: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(frame_data->fft_returned_1, temp_frame_data->fft_returned_1, N_FFT*sizeof(double)); data/brp-pacu-2.1.1+git20111020/BRP_PACU.c:213: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(frame_data->fft_returned_2, temp_frame_data->fft_returned_2, N_FFT*sizeof(double)); data/brp-pacu-2.1.1+git20111020/BRP_PACU.c:267: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(temp_frame_data->fft_returned_1, frame_data->fft_returned_1, N_FFT*sizeof(double)); data/brp-pacu-2.1.1+git20111020/BRP_PACU.c:268: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(temp_frame_data->fft_returned_2, frame_data->fft_returned_2, N_FFT*sizeof(double)); data/brp-pacu-2.1.1+git20111020/BRP_PACU.c:269: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(temp_frame_data->buffer_data_1, frame_data->buffer_data_1, N_FFT*sizeof(short)); data/brp-pacu-2.1.1+git20111020/BRP_PACU.c:270: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(temp_frame_data->buffer_data_2, frame_data->buffer_data_2, N_FFT*sizeof(short)); data/brp-pacu-2.1.1+git20111020/BRP_PACU.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(temp_frame_data->rfft_returned_1, frame_data->rfft_returned_1, N_FFT*sizeof(double)); data/brp-pacu-2.1.1+git20111020/BRP_PACU.c:482: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 * jackErrMessage [8] = {"OK", data/brp-pacu-2.1.1+git20111020/gui.c:86:8: [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 char buffer[N_BUFF] = {2, 2, 2, 2, 2}; data/brp-pacu-2.1.1+git20111020/gui.c:495:24: [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). file_handle = fopen(file_path2, "wb"); data/brp-pacu-2.1.1+git20111020/gui.c:593:18: [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). file_handle = fopen( fn, "rb"); data/brp-pacu-2.1.1+git20111020/gui.c:629:18: [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). file_handle = fopen(fn, "wb"); data/brp-pacu-2.1.1+git20111020/gui.c:648:8: [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 char strBuffer[PATH_MAX]; data/brp-pacu-2.1.1+git20111020/gui.c:663:4: [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 bn[256]; data/brp-pacu-2.1.1+git20111020/gui.c:1158:4: [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 gtkbuilder_path[400]; data/brp-pacu-2.1.1+git20111020/gui.c:1178:7: [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 buffer[PATH_MAX]; data/brp-pacu-2.1.1+git20111020/gui.c:1265:4: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(tmp_string, "BRP-PACU Impulse"); data/brp-pacu-2.1.1+git20111020/gui.c:1447: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 ((file_handle = fopen(file_path2, "rb")) <= 0) data/brp-pacu-2.1.1+git20111020/gui.c:682:19: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(strBuffer, "/"); ANALYSIS SUMMARY: Hits = 34 Lines analyzed = 4187 in approximately 0.12 seconds (34755 lines/second) Physical Source Lines of Code (SLOC) = 3023 Hits@level = [0] 41 [1] 1 [2] 24 [3] 1 [4] 8 [5] 0 Hits@level+ = [0+] 75 [1+] 34 [2+] 33 [3+] 9 [4+] 8 [5+] 0 Hits/KSLOC@level+ = [0+] 24.8098 [1+] 11.2471 [2+] 10.9163 [3+] 2.97717 [4+] 2.64638 [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.