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/radium-compressor-0.5.1+git20190909/Qt/EditorWidget.h Examining data/radium-compressor-0.5.1+git20190909/Qt/OS_Visual.h Examining data/radium-compressor-0.5.1+git20190909/Qt/Qt_.h Examining data/radium-compressor-0.5.1+git20190909/Qt/Qt_MyQButton.h Examining data/radium-compressor-0.5.1+git20190909/Qt/Qt_MyQCheckBox.h Examining data/radium-compressor-0.5.1+git20190909/Qt/Qt_MyQSlider.cpp Examining data/radium-compressor-0.5.1+git20190909/Qt/Qt_MyQSlider.h Examining data/radium-compressor-0.5.1+git20190909/Qt/Qt_ReqType.h Examining data/radium-compressor-0.5.1+git20190909/Qt/Qt_SliderPainter.cpp Examining data/radium-compressor-0.5.1+git20190909/Qt/Qt_SliderPainterPainter.h Examining data/radium-compressor-0.5.1+git20190909/Qt/Qt_SliderPainter_proc.h Examining data/radium-compressor-0.5.1+git20190909/Qt/Qt_compressor_widget.h Examining data/radium-compressor-0.5.1+git20190909/Qt/Qt_compressor_widget_callbacks.h Examining data/radium-compressor-0.5.1+git20190909/Qt/Qt_instruments_proc.h Examining data/radium-compressor-0.5.1+git20190909/Qt/compressor_vertical_sliders.cpp Examining data/radium-compressor-0.5.1+git20190909/Qt/mQt__callbacks.h Examining data/radium-compressor-0.5.1+git20190909/Qt/mQt_compressor_widget_callbacks.h Examining data/radium-compressor-0.5.1+git20190909/audio/Smooth_proc.h Examining data/radium-compressor-0.5.1+git20190909/audio/SoundPlugin.h Examining data/radium-compressor-0.5.1+git20190909/audio/SoundPlugin_proc.h Examining data/radium-compressor-0.5.1+git20190909/audio/faudiostream/architecture/faust/audio/alsa-dsp.h Examining data/radium-compressor-0.5.1+git20190909/audio/faudiostream/architecture/faust/audio/audio.h Examining data/radium-compressor-0.5.1+git20190909/audio/faudiostream/architecture/faust/audio/coreaudio-dsp.h Examining data/radium-compressor-0.5.1+git20190909/audio/faudiostream/architecture/faust/audio/dsp.h Examining data/radium-compressor-0.5.1+git20190909/audio/faudiostream/architecture/faust/audio/jack-dsp.h Examining data/radium-compressor-0.5.1+git20190909/audio/faudiostream/architecture/faust/audio/netjack-dsp.h Examining data/radium-compressor-0.5.1+git20190909/audio/faudiostream/architecture/faust/audio/oscdsp.h Examining data/radium-compressor-0.5.1+git20190909/audio/faudiostream/architecture/faust/audio/portaudio-dsp.h Examining data/radium-compressor-0.5.1+git20190909/audio/faudiostream/architecture/faust/gui/FUI.h Examining data/radium-compressor-0.5.1+git20190909/audio/faudiostream/architecture/faust/gui/GUI.h Examining data/radium-compressor-0.5.1+git20190909/audio/faudiostream/architecture/faust/gui/OSCUI.h Examining data/radium-compressor-0.5.1+git20190909/audio/faudiostream/architecture/faust/gui/UI.h Examining data/radium-compressor-0.5.1+git20190909/audio/faudiostream/architecture/faust/gui/console.h Examining data/radium-compressor-0.5.1+git20190909/audio/faudiostream/architecture/faust/gui/faustgtk.h Examining data/radium-compressor-0.5.1+git20190909/audio/faudiostream/architecture/faust/gui/faustqt.h Examining data/radium-compressor-0.5.1+git20190909/audio/faudiostream/architecture/faust/gui/httpdUI.h Examining data/radium-compressor-0.5.1+git20190909/audio/faudiostream/architecture/faust/gui/meta.h Examining data/radium-compressor-0.5.1+git20190909/audio/faudiostream/architecture/faust/gui/mocfaustqt.cpp Examining data/radium-compressor-0.5.1+git20190909/audio/system_compressor.cpp Examining data/radium-compressor-0.5.1+git20190909/audio/system_compressor_wrapper.cpp Examining data/radium-compressor-0.5.1+git20190909/audio/system_compressor_wrapper_proc.h Examining data/radium-compressor-0.5.1+git20190909/audio/typepunning.h Examining data/radium-compressor-0.5.1+git20190909/audio/undo_audio_effect_proc.h Examining data/radium-compressor-0.5.1+git20190909/benchmark.cpp Examining data/radium-compressor-0.5.1+git20190909/common/OS_Semaphores.h Examining data/radium-compressor-0.5.1+git20190909/common/OS_error_proc.h Examining data/radium-compressor-0.5.1+git20190909/common/OS_visual_input.h Examining data/radium-compressor-0.5.1+git20190909/common/debug_proc.h Examining data/radium-compressor-0.5.1+git20190909/common/hashmap_proc.h Examining data/radium-compressor-0.5.1+git20190909/common/instruments_proc.h Examining data/radium-compressor-0.5.1+git20190909/common/keyboard_sub_ids.h Examining data/radium-compressor-0.5.1+git20190909/common/memory_proc.h Examining data/radium-compressor-0.5.1+git20190909/common/mouse.h Examining data/radium-compressor-0.5.1+git20190909/common/nsmtracker.h Examining data/radium-compressor-0.5.1+git20190909/common/nsmtracker_events.h Examining data/radium-compressor-0.5.1+git20190909/common/settings_proc.h Examining data/radium-compressor-0.5.1+git20190909/common/undo_patchvoice_proc.h Examining data/radium-compressor-0.5.1+git20190909/common/vector_proc.h Examining data/radium-compressor-0.5.1+git20190909/common/visual_op_queue_proc.h Examining data/radium-compressor-0.5.1+git20190909/common/visual_proc.h Examining data/radium-compressor-0.5.1+git20190909/common/windows_proc.h Examining data/radium-compressor-0.5.1+git20190909/faudiostream/architecture/faust/audio/alsa-dsp.h Examining data/radium-compressor-0.5.1+git20190909/faudiostream/architecture/faust/audio/audio.h Examining data/radium-compressor-0.5.1+git20190909/faudiostream/architecture/faust/audio/coreaudio-dsp.h Examining data/radium-compressor-0.5.1+git20190909/faudiostream/architecture/faust/audio/dsp.h Examining data/radium-compressor-0.5.1+git20190909/faudiostream/architecture/faust/audio/jack-dsp.h Examining data/radium-compressor-0.5.1+git20190909/faudiostream/architecture/faust/audio/netjack-dsp.h Examining data/radium-compressor-0.5.1+git20190909/faudiostream/architecture/faust/audio/oscdsp.h Examining data/radium-compressor-0.5.1+git20190909/faudiostream/architecture/faust/audio/portaudio-dsp.h Examining data/radium-compressor-0.5.1+git20190909/faudiostream/architecture/faust/gui/FUI.h Examining data/radium-compressor-0.5.1+git20190909/faudiostream/architecture/faust/gui/GUI.h Examining data/radium-compressor-0.5.1+git20190909/faudiostream/architecture/faust/gui/OSCUI.h Examining data/radium-compressor-0.5.1+git20190909/faudiostream/architecture/faust/gui/UI.h Examining data/radium-compressor-0.5.1+git20190909/faudiostream/architecture/faust/gui/console.h Examining data/radium-compressor-0.5.1+git20190909/faudiostream/architecture/faust/gui/faustgtk.h Examining data/radium-compressor-0.5.1+git20190909/faudiostream/architecture/faust/gui/faustqt.h Examining data/radium-compressor-0.5.1+git20190909/faudiostream/architecture/faust/gui/httpdUI.h Examining data/radium-compressor-0.5.1+git20190909/faudiostream/architecture/faust/gui/meta.h Examining data/radium-compressor-0.5.1+git20190909/faudiostream/architecture/faust/gui/mocfaustqt.cpp Examining data/radium-compressor-0.5.1+git20190909/faudiostream/architecture/faust/misc.h Examining data/radium-compressor-0.5.1+git20190909/main.cpp Examining data/radium-compressor-0.5.1+git20190909/myladspa.cpp Examining data/radium-compressor-0.5.1+git20190909/nonlib/nsm.h Examining data/radium-compressor-0.5.1+git20190909/myjack-dsp.h FINAL RESULTS: data/radium-compressor-0.5.1+git20190909/audio/faudiostream/architecture/faust/audio/alsa-dsp.h:670:3: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(rt ? "RT : ":"NRT: "); fAudio->shortinfo(); data/radium-compressor-0.5.1+git20190909/audio/faudiostream/architecture/faust/audio/coreaudio-dsp.h:544:12: [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. SInt32 system; data/radium-compressor-0.5.1+git20190909/audio/faudiostream/architecture/faust/audio/coreaudio-dsp.h:545:36: [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. Gestalt(gestaltSystemVersion, &system); data/radium-compressor-0.5.1+git20190909/audio/faudiostream/architecture/faust/audio/coreaudio-dsp.h:547:92: [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. printf("TCoreAudioRenderer::CreateAggregateDevice : system version = %x limit = %x\n", system, 0x00001054); data/radium-compressor-0.5.1+git20190909/audio/faudiostream/architecture/faust/audio/coreaudio-dsp.h:550:9: [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. if (system < 0x00001054) { data/radium-compressor-0.5.1+git20190909/audio/faudiostream/architecture/faust/gui/faustgtk.h:1200:5: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. snprintf(s, 63, format[1-1], v); data/radium-compressor-0.5.1+git20190909/audio/faudiostream/architecture/faust/gui/faustgtk.h:1205:5: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. snprintf(s, 63, format[2-1], v); data/radium-compressor-0.5.1+git20190909/audio/faudiostream/architecture/faust/gui/faustgtk.h:1210:5: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. snprintf(s, 63, format[3-1], v); data/radium-compressor-0.5.1+git20190909/audio/faudiostream/architecture/faust/gui/faustgtk.h:1421:13: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. snprintf(s, 63, format[fPrecision-1], v); data/radium-compressor-0.5.1+git20190909/faudiostream/architecture/faust/audio/alsa-dsp.h:670:3: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(rt ? "RT : ":"NRT: "); fAudio->shortinfo(); data/radium-compressor-0.5.1+git20190909/faudiostream/architecture/faust/audio/coreaudio-dsp.h:544:12: [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. SInt32 system; data/radium-compressor-0.5.1+git20190909/faudiostream/architecture/faust/audio/coreaudio-dsp.h:545:36: [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. Gestalt(gestaltSystemVersion, &system); data/radium-compressor-0.5.1+git20190909/faudiostream/architecture/faust/audio/coreaudio-dsp.h:547:92: [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. printf("TCoreAudioRenderer::CreateAggregateDevice : system version = %x limit = %x\n", system, 0x00001054); data/radium-compressor-0.5.1+git20190909/faudiostream/architecture/faust/audio/coreaudio-dsp.h:550:9: [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. if (system < 0x00001054) { data/radium-compressor-0.5.1+git20190909/faudiostream/architecture/faust/gui/faustgtk.h:1200:5: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. snprintf(s, 63, format[1-1], v); data/radium-compressor-0.5.1+git20190909/faudiostream/architecture/faust/gui/faustgtk.h:1205:5: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. snprintf(s, 63, format[2-1], v); data/radium-compressor-0.5.1+git20190909/faudiostream/architecture/faust/gui/faustgtk.h:1210:5: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. snprintf(s, 63, format[3-1], v); data/radium-compressor-0.5.1+git20190909/faudiostream/architecture/faust/gui/faustgtk.h:1421:13: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. snprintf(s, 63, format[fPrecision-1], v); data/radium-compressor-0.5.1+git20190909/main.cpp:155:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(temp, "Open. name: %s, display_name: %s, client_id: %s\n",name, display_name, client_id); data/radium-compressor-0.5.1+git20190909/myladspa.cpp:595:25: [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. printf("system: %d\n",system(QString(QString("xterm -e gdb --args /home/kjetil/radium_compressor/radium_compressor --ladspa-slave ")+key+" &").toUtf8().constData())); data/radium-compressor-0.5.1+git20190909/audio/faudiostream/architecture/faust/audio/alsa-dsp.h:599:23: [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. const char* str = getenv(name); data/radium-compressor-0.5.1+git20190909/audio/faudiostream/architecture/faust/audio/alsa-dsp.h:612:23: [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. const char* str = getenv(name); data/radium-compressor-0.5.1+git20190909/faudiostream/architecture/faust/audio/alsa-dsp.h:599:23: [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. const char* str = getenv(name); data/radium-compressor-0.5.1+git20190909/faudiostream/architecture/faust/audio/alsa-dsp.h:612:23: [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. const char* str = getenv(name); data/radium-compressor-0.5.1+git20190909/main.cpp:190:29: [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. const char *nsm_url = getenv( "NSM_URL" ); data/radium-compressor-0.5.1+git20190909/Qt/Qt_compressor_widget_callbacks.h:360: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 temp[512] = {0}; data/radium-compressor-0.5.1+git20190909/Qt/Qt_compressor_widget_callbacks.h:438: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 *file = fopen(filename.toUtf8().constData(),"r"); data/radium-compressor-0.5.1+git20190909/Qt/Qt_compressor_widget_callbacks.h:477: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 *file = fopen(filename.toUtf8().constData(),"w"); data/radium-compressor-0.5.1+git20190909/Qt/Qt_compressor_widget_callbacks.h:523: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 temp[512]; data/radium-compressor-0.5.1+git20190909/Qt/Qt_compressor_widget_callbacks.h:524:5: [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(temp,"Attack: %.2fms",attack); data/radium-compressor-0.5.1+git20190909/Qt/Qt_compressor_widget_callbacks.h:531: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 temp[512]; data/radium-compressor-0.5.1+git20190909/Qt/Qt_compressor_widget_callbacks.h:532:5: [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(temp,"Release: %.2fms",release); data/radium-compressor-0.5.1+git20190909/Qt/compressor_vertical_sliders.cpp:989: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 temp[32]; data/radium-compressor-0.5.1+git20190909/Qt/compressor_vertical_sliders.cpp:990:5: [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(temp,"%.1f",value); data/radium-compressor-0.5.1+git20190909/Qt/mQt_compressor_widget_callbacks.h:25: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 stringdata0[175]; data/radium-compressor-0.5.1+git20190909/audio/faudiostream/architecture/faust/audio/alsa-dsp.h:208:7: [2] (misc) open: 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). void open() data/radium-compressor-0.5.1+git20190909/audio/faudiostream/architecture/faust/audio/alsa-dsp.h:572:11: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). return atoi(argv[i]); data/radium-compressor-0.5.1+git20190909/audio/faudiostream/architecture/faust/audio/alsa-dsp.h:601:16: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). return atoi(str); data/radium-compressor-0.5.1+git20190909/audio/faudiostream/architecture/faust/audio/alsa-dsp.h:649:11: [2] (misc) open: 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). fAudio->open(); data/radium-compressor-0.5.1+git20190909/audio/faudiostream/architecture/faust/audio/coreaudio-dsp.h:491: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 device_name[256]; data/radium-compressor-0.5.1+git20190909/audio/faudiostream/architecture/faust/audio/jack-dsp.h:58: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 buf[256]; data/radium-compressor-0.5.1+git20190909/audio/faudiostream/architecture/faust/audio/jack-dsp.h:63: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 buf[256]; data/radium-compressor-0.5.1+git20190909/audio/faudiostream/architecture/faust/gui/OSCUI.h:108:9: [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[1024]; data/radium-compressor-0.5.1+git20190909/audio/faudiostream/architecture/faust/gui/faustgtk.h:1190: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 s[64]; data/radium-compressor-0.5.1+git20190909/audio/faudiostream/architecture/faust/gui/faustgtk.h:1414:9: [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 s[64]; data/radium-compressor-0.5.1+git20190909/audio/faudiostream/architecture/faust/gui/httpdUI.h:84:9: [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[1024]; data/radium-compressor-0.5.1+git20190909/faudiostream/architecture/faust/audio/alsa-dsp.h:208:7: [2] (misc) open: 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). void open() data/radium-compressor-0.5.1+git20190909/faudiostream/architecture/faust/audio/alsa-dsp.h:572:11: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). return atoi(argv[i]); data/radium-compressor-0.5.1+git20190909/faudiostream/architecture/faust/audio/alsa-dsp.h:601:16: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). return atoi(str); data/radium-compressor-0.5.1+git20190909/faudiostream/architecture/faust/audio/alsa-dsp.h:649:11: [2] (misc) open: 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). fAudio->open(); data/radium-compressor-0.5.1+git20190909/faudiostream/architecture/faust/audio/coreaudio-dsp.h:491: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 device_name[256]; data/radium-compressor-0.5.1+git20190909/faudiostream/architecture/faust/audio/jack-dsp.h:58: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 buf[256]; data/radium-compressor-0.5.1+git20190909/faudiostream/architecture/faust/audio/jack-dsp.h:63: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 buf[256]; data/radium-compressor-0.5.1+git20190909/faudiostream/architecture/faust/gui/OSCUI.h:108:9: [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[1024]; data/radium-compressor-0.5.1+git20190909/faudiostream/architecture/faust/gui/faustgtk.h:1190: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 s[64]; data/radium-compressor-0.5.1+git20190909/faudiostream/architecture/faust/gui/faustgtk.h:1414:9: [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 s[64]; data/radium-compressor-0.5.1+git20190909/faudiostream/architecture/faust/gui/httpdUI.h:84:9: [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[1024]; data/radium-compressor-0.5.1+git20190909/faudiostream/architecture/faust/misc.h:47:63: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). for (i = 0; argv[i]; i++) if (!strcmp(argv[i], name)) return atoi(argv[i+1]); data/radium-compressor-0.5.1+git20190909/main.cpp:154: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 temp[1000]; data/radium-compressor-0.5.1+git20190909/main.cpp:168: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 temp[1000]; data/radium-compressor-0.5.1+git20190909/main.cpp:169:3: [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(temp, "Save. userdata: %p\n", userdata); data/radium-compressor-0.5.1+git20190909/myjack-dsp.h:60: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 buf[256]; data/radium-compressor-0.5.1+git20190909/myjack-dsp.h:65: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 buf[256]; data/radium-compressor-0.5.1+git20190909/myladspa.cpp:614: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 *argv[1]={(char*)"radium_compressor"}; data/radium-compressor-0.5.1+git20190909/nonlib/nsm.h:110:24: [2] (misc) open: 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). nsm_open_callback *open; data/radium-compressor-0.5.1+git20190909/nonlib/nsm.h:366:17: [2] (misc) open: 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 ( ! nsm->open ) data/radium-compressor-0.5.1+git20190909/nonlib/nsm.h:369:18: [2] (misc) open: 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). int r = nsm->open( &argv[0]->s, &argv[1]->s, &argv[2]->s, &out_msg, nsm->open_userdata ); data/radium-compressor-0.5.1+git20190909/audio/faudiostream/architecture/faust/audio/alsa-dsp.h:335:7: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). void read() data/radium-compressor-0.5.1+git20190909/audio/faudiostream/architecture/faust/audio/alsa-dsp.h:674:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). fAudio->read(); data/radium-compressor-0.5.1+git20190909/audio/faudiostream/architecture/faust/audio/coreaudio-dsp.h:396:13: [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. usleep(100000); data/radium-compressor-0.5.1+git20190909/audio/faudiostream/architecture/faust/gui/console.h:128:15: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while ((c = getchar()) != 'q') { data/radium-compressor-0.5.1+git20190909/audio/faudiostream/architecture/faust/gui/faustgtk.h:389:2: [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. usleep(5000); data/radium-compressor-0.5.1+git20190909/faudiostream/architecture/faust/audio/alsa-dsp.h:335:7: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). void read() data/radium-compressor-0.5.1+git20190909/faudiostream/architecture/faust/audio/alsa-dsp.h:674:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). fAudio->read(); data/radium-compressor-0.5.1+git20190909/faudiostream/architecture/faust/audio/coreaudio-dsp.h:396:13: [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. usleep(100000); data/radium-compressor-0.5.1+git20190909/faudiostream/architecture/faust/gui/console.h:128:15: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while ((c = getchar()) != 'q') { data/radium-compressor-0.5.1+git20190909/faudiostream/architecture/faust/gui/faustgtk.h:389:2: [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. usleep(5000); ANALYSIS SUMMARY: Hits = 77 Lines analyzed = 22620 in approximately 0.58 seconds (39323 lines/second) Physical Source Lines of Code (SLOC) = 15244 Hits@level = [0] 323 [1] 10 [2] 42 [3] 5 [4] 20 [5] 0 Hits@level+ = [0+] 400 [1+] 77 [2+] 67 [3+] 25 [4+] 20 [5+] 0 Hits/KSLOC@level+ = [0+] 26.2398 [1+] 5.05117 [2+] 4.39517 [3+] 1.63999 [4+] 1.31199 [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.