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/buzztrax-0.10.2/tests/m-bt-cmd.c Examining data/buzztrax-0.10.2/tests/bt-test-application.c Examining data/buzztrax-0.10.2/tests/bt-test-plugin.h Examining data/buzztrax-0.10.2/tests/bt-test-application.h Examining data/buzztrax-0.10.2/tests/btic-test-device.c Examining data/buzztrax-0.10.2/tests/m-bt-ic.c Examining data/buzztrax-0.10.2/tests/bt-test-plugin.c Examining data/buzztrax-0.10.2/tests/bt-check.c Examining data/buzztrax-0.10.2/tests/lib/gst/e-envelope-ad.c Examining data/buzztrax-0.10.2/tests/lib/gst/m-bt-gst.h Examining data/buzztrax-0.10.2/tests/lib/gst/e-toneconversion.c Examining data/buzztrax-0.10.2/tests/lib/gst/e-envelope-d.c Examining data/buzztrax-0.10.2/tests/lib/gst/t-toneconversion.c Examining data/buzztrax-0.10.2/tests/lib/gst/t-elements.c Examining data/buzztrax-0.10.2/tests/lib/gst/e-osc-synth.c Examining data/buzztrax-0.10.2/tests/lib/gst/e-filter-svf.c Examining data/buzztrax-0.10.2/tests/lib/gst/e-combine.c Examining data/buzztrax-0.10.2/tests/lib/bml/bmltest_process.c Examining data/buzztrax-0.10.2/tests/lib/bml/bmltest_info.h Examining data/buzztrax-0.10.2/tests/lib/bml/bmltest_process.h Examining data/buzztrax-0.10.2/tests/lib/bml/bmltest_info.c Examining data/buzztrax-0.10.2/tests/lib/ic/m-bt-ic.h Examining data/buzztrax-0.10.2/tests/lib/ic/e-aseq-discoverer.c Examining data/buzztrax-0.10.2/tests/lib/ic/e-registry.c Examining data/buzztrax-0.10.2/tests/lib/ic/t-ic.c Examining data/buzztrax-0.10.2/tests/lib/ic/e-device.c Examining data/buzztrax-0.10.2/tests/lib/ic/e-ic.c Examining data/buzztrax-0.10.2/tests/lib/ic/e-learn.c Examining data/buzztrax-0.10.2/tests/lib/core/t-processor-machine.c Examining data/buzztrax-0.10.2/tests/lib/core/e-value-group.c Examining data/buzztrax-0.10.2/tests/lib/core/e-pattern-control-source.c Examining data/buzztrax-0.10.2/tests/lib/core/t-pattern-control-source.c Examining data/buzztrax-0.10.2/tests/lib/core/t-wire.c Examining data/buzztrax-0.10.2/tests/lib/core/m-bt-core.h Examining data/buzztrax-0.10.2/tests/lib/core/t-song.c Examining data/buzztrax-0.10.2/tests/lib/core/e-song-io-native.c Examining data/buzztrax-0.10.2/tests/lib/core/e-sink-bin.c Examining data/buzztrax-0.10.2/tests/lib/core/t-machine.c Examining data/buzztrax-0.10.2/tests/lib/core/e-source-machine.c Examining data/buzztrax-0.10.2/tests/lib/core/t-pattern.c Examining data/buzztrax-0.10.2/tests/lib/core/e-song-io.c Examining data/buzztrax-0.10.2/tests/lib/core/t-song-io-native.c Examining data/buzztrax-0.10.2/tests/lib/core/e-sink-machine.c Examining data/buzztrax-0.10.2/tests/lib/core/t-setup.c Examining data/buzztrax-0.10.2/tests/lib/core/t-source-machine.c Examining data/buzztrax-0.10.2/tests/lib/core/e-processor-machine.c Examining data/buzztrax-0.10.2/tests/lib/core/e-audio-session.c Examining data/buzztrax-0.10.2/tests/lib/core/e-sequence.c Examining data/buzztrax-0.10.2/tests/lib/core/t-song-io.c Examining data/buzztrax-0.10.2/tests/lib/core/t-sink-bin.c Examining data/buzztrax-0.10.2/tests/lib/core/t-core.c Examining data/buzztrax-0.10.2/tests/lib/core/t-sequence.c Examining data/buzztrax-0.10.2/tests/lib/core/e-pattern.c Examining data/buzztrax-0.10.2/tests/lib/core/e-wave-table.c Examining data/buzztrax-0.10.2/tests/lib/core/t-wave-table.c Examining data/buzztrax-0.10.2/tests/lib/core/t-sink-machine.c Examining data/buzztrax-0.10.2/tests/lib/core/t-value-group.c Examining data/buzztrax-0.10.2/tests/lib/core/e-tools.c Examining data/buzztrax-0.10.2/tests/lib/core/e-wire.c Examining data/buzztrax-0.10.2/tests/lib/core/e-song-info.c Examining data/buzztrax-0.10.2/tests/lib/core/e-core.c Examining data/buzztrax-0.10.2/tests/lib/core/e-setup.c Examining data/buzztrax-0.10.2/tests/lib/core/t-tools.c Examining data/buzztrax-0.10.2/tests/lib/core/e-cmd-pattern.c Examining data/buzztrax-0.10.2/tests/lib/core/t-parameter-group.c Examining data/buzztrax-0.10.2/tests/lib/core/t-song-info.c Examining data/buzztrax-0.10.2/tests/lib/core/t-wave.c Examining data/buzztrax-0.10.2/tests/lib/core/e-wave.c Examining data/buzztrax-0.10.2/tests/lib/core/e-application.c Examining data/buzztrax-0.10.2/tests/lib/core/e-machine.c Examining data/buzztrax-0.10.2/tests/lib/core/e-settings.c Examining data/buzztrax-0.10.2/tests/lib/core/e-parameter-group.c Examining data/buzztrax-0.10.2/tests/lib/core/e-song.c Examining data/buzztrax-0.10.2/tests/lib/core/t-cmd-pattern.c Examining data/buzztrax-0.10.2/tests/bt-check-ui.h Examining data/buzztrax-0.10.2/tests/ui/edit/t-object-list-model.c Examining data/buzztrax-0.10.2/tests/ui/edit/e-wave-list-model.c Examining data/buzztrax-0.10.2/tests/ui/edit/e-signal-analysis-dialog.c Examining data/buzztrax-0.10.2/tests/ui/edit/e-object-list-model.c Examining data/buzztrax-0.10.2/tests/ui/edit/e-sequence-grid-model.c Examining data/buzztrax-0.10.2/tests/ui/edit/t-change-log.c Examining data/buzztrax-0.10.2/tests/ui/edit/e-main-page-info.c Examining data/buzztrax-0.10.2/tests/ui/edit/e-pattern-properties-dialog.c Examining data/buzztrax-0.10.2/tests/ui/edit/e-main-page-sequence.c Examining data/buzztrax-0.10.2/tests/ui/edit/e-main-page-patterns.c Examining data/buzztrax-0.10.2/tests/ui/edit/e-crash-recover-dialog.c Examining data/buzztrax-0.10.2/tests/ui/edit/e-machine-actions.c Examining data/buzztrax-0.10.2/tests/ui/edit/e-pattern-list-model.c Examining data/buzztrax-0.10.2/tests/ui/edit/t-main-page-patterns.c Examining data/buzztrax-0.10.2/tests/ui/edit/e-settings-dialog.c Examining data/buzztrax-0.10.2/tests/ui/edit/e-about-dialog.c Examining data/buzztrax-0.10.2/tests/ui/edit/e-machine-properties-dialog.c Examining data/buzztrax-0.10.2/tests/ui/edit/e-machine-list-model.c Examining data/buzztrax-0.10.2/tests/ui/edit/e-main-window.c Examining data/buzztrax-0.10.2/tests/ui/edit/e-tip-dialog.c Examining data/buzztrax-0.10.2/tests/ui/edit/e-machine-rename-dialog.c Examining data/buzztrax-0.10.2/tests/ui/edit/e-missing-song-elements-dialog.c Examining data/buzztrax-0.10.2/tests/ui/edit/e-machine-preferences-dialog.c Examining data/buzztrax-0.10.2/tests/ui/edit/e-main-page-machines.c Examining data/buzztrax-0.10.2/tests/ui/edit/e-main-pages.c Examining data/buzztrax-0.10.2/tests/ui/edit/e-change-log.c Examining data/buzztrax-0.10.2/tests/ui/edit/e-wire-canvas-item.c Examining data/buzztrax-0.10.2/tests/ui/edit/e-machine-canvas-item.c Examining data/buzztrax-0.10.2/tests/ui/edit/e-interaction-controller-menu.c Examining data/buzztrax-0.10.2/tests/ui/edit/e-ui-resources.c Examining data/buzztrax-0.10.2/tests/ui/edit/m-bt-edit.h Examining data/buzztrax-0.10.2/tests/ui/edit/e-wavelevel-list-model.c Examining data/buzztrax-0.10.2/tests/ui/edit/e-missing-framework-elements-dialog.c Examining data/buzztrax-0.10.2/tests/ui/edit/t-main-page-waves.c Examining data/buzztrax-0.10.2/tests/ui/edit/e-edit-application.c Examining data/buzztrax-0.10.2/tests/ui/edit/e-machine-preset-properties-dialog.c Examining data/buzztrax-0.10.2/tests/ui/edit/e-render-dialog.c Examining data/buzztrax-0.10.2/tests/ui/cmd/t-cmd-application.c Examining data/buzztrax-0.10.2/tests/ui/cmd/m-bt-cmd.h Examining data/buzztrax-0.10.2/tests/ui/cmd/e-cmd-application.c Examining data/buzztrax-0.10.2/tests/m-bt-gst.c Examining data/buzztrax-0.10.2/tests/bt-check.h Examining data/buzztrax-0.10.2/tests/btic-test-device.h Examining data/buzztrax-0.10.2/tests/m-bt-edit.c Examining data/buzztrax-0.10.2/tests/m-bt-core.c Examining data/buzztrax-0.10.2/tests/bt-check-ui.c Examining data/buzztrax-0.10.2/src/gst/sidsyn/wave6581_PS_.cc Examining data/buzztrax-0.10.2/src/gst/sidsyn/voice.cc Examining data/buzztrax-0.10.2/src/gst/sidsyn/wave6581_PST.cc Examining data/buzztrax-0.10.2/src/gst/sidsyn/voice.h Examining data/buzztrax-0.10.2/src/gst/sidsyn/extfilt.cc Examining data/buzztrax-0.10.2/src/gst/sidsyn/wave8580_PS_.cc Examining data/buzztrax-0.10.2/src/gst/sidsyn/sidemu.cc Examining data/buzztrax-0.10.2/src/gst/sidsyn/siddefs.h Examining data/buzztrax-0.10.2/src/gst/sidsyn/filter.h Examining data/buzztrax-0.10.2/src/gst/sidsyn/wave6581_P_T.cc Examining data/buzztrax-0.10.2/src/gst/sidsyn/wave8580__ST.cc Examining data/buzztrax-0.10.2/src/gst/sidsyn/envelope.h Examining data/buzztrax-0.10.2/src/gst/sidsyn/sidsyn.h Examining data/buzztrax-0.10.2/src/gst/sidsyn/sidsyn.cc Examining data/buzztrax-0.10.2/src/gst/sidsyn/sidsynv.h Examining data/buzztrax-0.10.2/src/gst/sidsyn/spline.h Examining data/buzztrax-0.10.2/src/gst/sidsyn/wave8580_P_T.cc Examining data/buzztrax-0.10.2/src/gst/sidsyn/filter.cc Examining data/buzztrax-0.10.2/src/gst/sidsyn/wave6581__ST.cc Examining data/buzztrax-0.10.2/src/gst/sidsyn/extfilt.h Examining data/buzztrax-0.10.2/src/gst/sidsyn/pot.h Examining data/buzztrax-0.10.2/src/gst/sidsyn/wave.h Examining data/buzztrax-0.10.2/src/gst/sidsyn/wave8580_PST.cc Examining data/buzztrax-0.10.2/src/gst/sidsyn/envelope.cc Examining data/buzztrax-0.10.2/src/gst/sidsyn/pot.cc Examining data/buzztrax-0.10.2/src/gst/sidsyn/sidemu.h Examining data/buzztrax-0.10.2/src/gst/sidsyn/wave.cc Examining data/buzztrax-0.10.2/src/gst/sidsyn/sidsynv.cc Examining data/buzztrax-0.10.2/src/gst/bml/gstbmlsrc.c Examining data/buzztrax-0.10.2/src/gst/bml/gstbmlorc-dist.h Examining data/buzztrax-0.10.2/src/gst/bml/gstbml.h Examining data/buzztrax-0.10.2/src/gst/bml/gstbmlv.h Examining data/buzztrax-0.10.2/src/gst/bml/common.h Examining data/buzztrax-0.10.2/src/gst/bml/plugin.c Examining data/buzztrax-0.10.2/src/gst/bml/gstbmltransform.c Examining data/buzztrax-0.10.2/src/gst/bml/gstbmlsrc.h Examining data/buzztrax-0.10.2/src/gst/bml/common.c Examining data/buzztrax-0.10.2/src/gst/bml/gstbmltransform.h Examining data/buzztrax-0.10.2/src/gst/bml/gstbmlv.c Examining data/buzztrax-0.10.2/src/gst/bml/gstbml.c Examining data/buzztrax-0.10.2/src/gst/bml/plugin.h Examining data/buzztrax-0.10.2/src/gst/bml/gstbmlorc-dist.c Examining data/buzztrax-0.10.2/src/gst/audio/wavetabsyn.h Examining data/buzztrax-0.10.2/src/gst/audio/simsyn.h Examining data/buzztrax-0.10.2/src/gst/audio/wavetabsyn.c Examining data/buzztrax-0.10.2/src/gst/audio/plugin.c Examining data/buzztrax-0.10.2/src/gst/audio/ebeats.c Examining data/buzztrax-0.10.2/src/gst/audio/audiodelay.c Examining data/buzztrax-0.10.2/src/gst/audio/ebeats.h Examining data/buzztrax-0.10.2/src/gst/audio/wavereplay.h Examining data/buzztrax-0.10.2/src/gst/audio/simsyn.c Examining data/buzztrax-0.10.2/src/gst/audio/audiodelay.h Examining data/buzztrax-0.10.2/src/gst/audio/wavereplay.c Examining data/buzztrax-0.10.2/src/gst/audio/plugin.h Examining data/buzztrax-0.10.2/src/gst/dec/bt-dec.h Examining data/buzztrax-0.10.2/src/gst/dec/bt-dec.c Examining data/buzztrax-0.10.2/src/gst/fluidsynth/fluidsynth.h Examining data/buzztrax-0.10.2/src/gst/fluidsynth/fluidsynth.c Examining data/buzztrax-0.10.2/src/lib/gst/osc-synth.h Examining data/buzztrax-0.10.2/src/lib/gst/filter-svf.c Examining data/buzztrax-0.10.2/src/lib/gst/audiosynth.h Examining data/buzztrax-0.10.2/src/lib/gst/osc-synth.c Examining data/buzztrax-0.10.2/src/lib/gst/gstdirectcontrolbinding.h Examining data/buzztrax-0.10.2/src/lib/gst/propertymeta.h Examining data/buzztrax-0.10.2/src/lib/gst/combine.h Examining data/buzztrax-0.10.2/src/lib/gst/osc-wave.c Examining data/buzztrax-0.10.2/src/lib/gst/musicenums.h Examining data/buzztrax-0.10.2/src/lib/gst/envelope.c Examining data/buzztrax-0.10.2/src/lib/gst/envelope-ad.c Examining data/buzztrax-0.10.2/src/lib/gst/toneconversion.c Examining data/buzztrax-0.10.2/src/lib/gst/filter-svf.h Examining data/buzztrax-0.10.2/src/lib/gst/envelope.h Examining data/buzztrax-0.10.2/src/lib/gst/childbin.c Examining data/buzztrax-0.10.2/src/lib/gst/propertymeta.c Examining data/buzztrax-0.10.2/src/lib/gst/envelope-ad.h Examining data/buzztrax-0.10.2/src/lib/gst/delay.h Examining data/buzztrax-0.10.2/src/lib/gst/tempo.c Examining data/buzztrax-0.10.2/src/lib/gst/osc-wave.h Examining data/buzztrax-0.10.2/src/lib/gst/envelope-adsr.c Examining data/buzztrax-0.10.2/src/lib/gst/envelope-d.c Examining data/buzztrax-0.10.2/src/lib/gst/envelope-d.h Examining data/buzztrax-0.10.2/src/lib/gst/gstdirectcontrolbinding.c Examining data/buzztrax-0.10.2/src/lib/gst/childbin.h Examining data/buzztrax-0.10.2/src/lib/gst/delay.c Examining data/buzztrax-0.10.2/src/lib/gst/combine.c Examining data/buzztrax-0.10.2/src/lib/gst/musicenums.c Examining data/buzztrax-0.10.2/src/lib/gst/tempo.h Examining data/buzztrax-0.10.2/src/lib/gst/envelope-adsr.h Examining data/buzztrax-0.10.2/src/lib/gst/toneconversion.h Examining data/buzztrax-0.10.2/src/lib/gst/audiosynth.c Examining data/buzztrax-0.10.2/src/lib/bml/bml.h Examining data/buzztrax-0.10.2/src/lib/bml/bmllog.h Examining data/buzztrax-0.10.2/src/lib/bml/strpool.c Examining data/buzztrax-0.10.2/src/lib/bml/bml.c Examining data/buzztrax-0.10.2/src/lib/bml/bmlw.h Examining data/buzztrax-0.10.2/src/lib/bml/bmlw.c Examining data/buzztrax-0.10.2/src/lib/bml/strpool.h Examining data/buzztrax-0.10.2/src/lib/bml/bmlipc.c Examining data/buzztrax-0.10.2/src/lib/bml/bmlhost.c Examining data/buzztrax-0.10.2/src/lib/bml/bmllog.c Examining data/buzztrax-0.10.2/src/lib/bml/bmlipc.h Examining data/buzztrax-0.10.2/src/lib/bml/BuzzMachineLoader/MachineInterface.h Examining data/buzztrax-0.10.2/src/lib/bml/BuzzMachineLoader/BuzzMachineLoader.cpp Examining data/buzztrax-0.10.2/src/lib/bml/BuzzMachineLoader/CMachine.h Examining data/buzztrax-0.10.2/src/lib/bml/BuzzMachineLoader/BuzzMachineCallbacks.cpp Examining data/buzztrax-0.10.2/src/lib/bml/BuzzMachineLoader/debug.cpp Examining data/buzztrax-0.10.2/src/lib/bml/BuzzMachineLoader/BuzzMachineCallbacks.h Examining data/buzztrax-0.10.2/src/lib/bml/BuzzMachineLoader/debug.h Examining data/buzztrax-0.10.2/src/lib/bml/BuzzMachineLoader/CLibInterface.h Examining data/buzztrax-0.10.2/src/lib/bml/BuzzMachineLoader/MachineDataImpl.h Examining data/buzztrax-0.10.2/src/lib/bml/BuzzMachineLoader/BuzzMachineLoader.h Examining data/buzztrax-0.10.2/src/lib/bml/BuzzMachineLoader/OscTable.cpp Examining data/buzztrax-0.10.2/src/lib/bml/BuzzMachineLoader/OscTable.h Examining data/buzztrax-0.10.2/src/lib/bml/BuzzMachineLoader/CMICallbacks.h Examining data/buzztrax-0.10.2/src/lib/bml/BuzzMachineLoader/mdkimp.h Examining data/buzztrax-0.10.2/src/lib/bml/BuzzMachineLoader/MachineDataImpl.cpp Examining data/buzztrax-0.10.2/src/lib/bml/BuzzMachineLoader/mdkimp.cpp Examining data/buzztrax-0.10.2/src/lib/bml/BuzzMachineLoader/BuzzMachineCallbacksPre12.cpp Examining data/buzztrax-0.10.2/src/lib/bml/BuzzMachineLoader/BuzzMachineCallbacksPre12.h Examining data/buzztrax-0.10.2/src/lib/ic/abs-range-control.c Examining data/buzztrax-0.10.2/src/lib/ic/gudev-discoverer.h Examining data/buzztrax-0.10.2/src/lib/ic/ic_private.h Examining data/buzztrax-0.10.2/src/lib/ic/abs-range-control.h Examining data/buzztrax-0.10.2/src/lib/ic/ic.c Examining data/buzztrax-0.10.2/src/lib/ic/midi-device.h Examining data/buzztrax-0.10.2/src/lib/ic/learn.h Examining data/buzztrax-0.10.2/src/lib/ic/control.c Examining data/buzztrax-0.10.2/src/lib/ic/device.c Examining data/buzztrax-0.10.2/src/lib/ic/version.h Examining data/buzztrax-0.10.2/src/lib/ic/aseq-discoverer.c Examining data/buzztrax-0.10.2/src/lib/ic/input-device.c Examining data/buzztrax-0.10.2/src/lib/ic/trigger-control.h Examining data/buzztrax-0.10.2/src/lib/ic/learn.c Examining data/buzztrax-0.10.2/src/lib/ic/registry.h Examining data/buzztrax-0.10.2/src/lib/ic/midi-device.c Examining data/buzztrax-0.10.2/src/lib/ic/aseq-discoverer.h Examining data/buzztrax-0.10.2/src/lib/ic/input-device.h Examining data/buzztrax-0.10.2/src/lib/ic/device.h Examining data/buzztrax-0.10.2/src/lib/ic/ic.h Examining data/buzztrax-0.10.2/src/lib/ic/aseq-device.c Examining data/buzztrax-0.10.2/src/lib/ic/control.h Examining data/buzztrax-0.10.2/src/lib/ic/trigger-control.c Examining data/buzztrax-0.10.2/src/lib/ic/aseq-device.h Examining data/buzztrax-0.10.2/src/lib/ic/registry.c Examining data/buzztrax-0.10.2/src/lib/ic/gudev-discoverer.c Examining data/buzztrax-0.10.2/src/lib/dllwrapper/windef.h Examining data/buzztrax-0.10.2/src/lib/dllwrapper/winuser.h Examining data/buzztrax-0.10.2/src/lib/dllwrapper/wineacm.h Examining data/buzztrax-0.10.2/src/lib/dllwrapper/pe_image.h Examining data/buzztrax-0.10.2/src/lib/dllwrapper/ldt_keeper.h Examining data/buzztrax-0.10.2/src/lib/dllwrapper/ldt.h Examining data/buzztrax-0.10.2/src/lib/dllwrapper/pshpack2.h Examining data/buzztrax-0.10.2/src/lib/dllwrapper/driver.c Examining data/buzztrax-0.10.2/src/lib/dllwrapper/debugtools.h Examining data/buzztrax-0.10.2/src/lib/dllwrapper/winestring.h Examining data/buzztrax-0.10.2/src/lib/dllwrapper/pshpack1.h Examining data/buzztrax-0.10.2/src/lib/dllwrapper/winreg.h Examining data/buzztrax-0.10.2/src/lib/dllwrapper/poppack.h Examining data/buzztrax-0.10.2/src/lib/dllwrapper/msacm.h Examining data/buzztrax-0.10.2/src/lib/dllwrapper/winbase.h Examining data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c Examining data/buzztrax-0.10.2/src/lib/dllwrapper/module.h Examining data/buzztrax-0.10.2/src/lib/dllwrapper/pe_image.c Examining data/buzztrax-0.10.2/src/lib/dllwrapper/pshpack4.h Examining data/buzztrax-0.10.2/src/lib/dllwrapper/winnt.h Examining data/buzztrax-0.10.2/src/lib/dllwrapper/ext.h Examining data/buzztrax-0.10.2/src/lib/dllwrapper/msacmdrv.h Examining data/buzztrax-0.10.2/src/lib/dllwrapper/ntdef.h Examining data/buzztrax-0.10.2/src/lib/dllwrapper/windows.h Examining data/buzztrax-0.10.2/src/lib/dllwrapper/ldt_keeper.c Examining data/buzztrax-0.10.2/src/lib/dllwrapper/vfw.h Examining data/buzztrax-0.10.2/src/lib/dllwrapper/heap.h Examining data/buzztrax-0.10.2/src/lib/dllwrapper/elfdll.c Examining data/buzztrax-0.10.2/src/lib/dllwrapper/ext.c Examining data/buzztrax-0.10.2/src/lib/dllwrapper/loader.h Examining data/buzztrax-0.10.2/src/lib/dllwrapper/vfl.c Examining data/buzztrax-0.10.2/src/lib/dllwrapper/com.h Examining data/buzztrax-0.10.2/src/lib/dllwrapper/avifmt.h Examining data/buzztrax-0.10.2/src/lib/dllwrapper/registry.h Examining data/buzztrax-0.10.2/src/lib/dllwrapper/pshpack8.h Examining data/buzztrax-0.10.2/src/lib/dllwrapper/mmreg.h Examining data/buzztrax-0.10.2/src/lib/dllwrapper/elfdll.h Examining data/buzztrax-0.10.2/src/lib/dllwrapper/resource.c Examining data/buzztrax-0.10.2/src/lib/dllwrapper/resource.h Examining data/buzztrax-0.10.2/src/lib/dllwrapper/win32.h Examining data/buzztrax-0.10.2/src/lib/dllwrapper/basetsd.h Examining data/buzztrax-0.10.2/src/lib/dllwrapper/registry.c Examining data/buzztrax-0.10.2/src/lib/dllwrapper/pe_resource.c Examining data/buzztrax-0.10.2/src/lib/dllwrapper/afl.c Examining data/buzztrax-0.10.2/src/lib/dllwrapper/module.c Examining data/buzztrax-0.10.2/src/lib/dllwrapper/driver.h Examining data/buzztrax-0.10.2/src/lib/dllwrapper/wrapper.h Examining data/buzztrax-0.10.2/src/lib/dllwrapper/winerror.h Examining data/buzztrax-0.10.2/src/lib/core/persistence.h Examining data/buzztrax-0.10.2/src/lib/core/processor-machine.h Examining data/buzztrax-0.10.2/src/lib/core/application.c Examining data/buzztrax-0.10.2/src/lib/core/core.h Examining data/buzztrax-0.10.2/src/lib/core/sink-machine.c Examining data/buzztrax-0.10.2/src/lib/core/song.h Examining data/buzztrax-0.10.2/src/lib/core/value-group.h Examining data/buzztrax-0.10.2/src/lib/core/sequence.h Examining data/buzztrax-0.10.2/src/lib/core/wavetable.c Examining data/buzztrax-0.10.2/src/lib/core/pattern-control-source.h Examining data/buzztrax-0.10.2/src/lib/core/buzzcallbacks.c Examining data/buzztrax-0.10.2/src/lib/core/parameter-group.c Examining data/buzztrax-0.10.2/src/lib/core/childproxy.c Examining data/buzztrax-0.10.2/src/lib/core/sink-bin.c Examining data/buzztrax-0.10.2/src/lib/core/song-io-native.c Examining data/buzztrax-0.10.2/src/lib/core/wavelevel.c Examining data/buzztrax-0.10.2/src/lib/core/tools.h Examining data/buzztrax-0.10.2/src/lib/core/pattern.h Examining data/buzztrax-0.10.2/src/lib/core/song-io-native.h Examining data/buzztrax-0.10.2/src/lib/core/application.h Examining data/buzztrax-0.10.2/src/lib/core/setup.c Examining data/buzztrax-0.10.2/src/lib/core/song-io-native-bzt.c Examining data/buzztrax-0.10.2/src/lib/core/songio/bsl/bsl.c Examining data/buzztrax-0.10.2/src/lib/core/songio/bsl/song-io-buzz.h Examining data/buzztrax-0.10.2/src/lib/core/songio/bsl/bsl.h Examining data/buzztrax-0.10.2/src/lib/core/songio/bsl/song-io-buzz.c Examining data/buzztrax-0.10.2/src/lib/core/songio/bsl/song-io-buzz-private.h Examining data/buzztrax-0.10.2/src/lib/core/parameter-group.h Examining data/buzztrax-0.10.2/src/lib/core/audio-session.h Examining data/buzztrax-0.10.2/src/lib/core/song-io.c Examining data/buzztrax-0.10.2/src/lib/core/processor-machine.c Examining data/buzztrax-0.10.2/src/lib/core/wavelevel.h Examining data/buzztrax-0.10.2/src/lib/core/pattern-control-source.c Examining data/buzztrax-0.10.2/src/lib/core/song-info.c Examining data/buzztrax-0.10.2/src/lib/core/cmd-pattern.c Examining data/buzztrax-0.10.2/src/lib/core/version.h Examining data/buzztrax-0.10.2/src/lib/core/pattern.c Examining data/buzztrax-0.10.2/src/lib/core/source-machine.c Examining data/buzztrax-0.10.2/src/lib/core/song-io.h Examining data/buzztrax-0.10.2/src/lib/core/settings.c Examining data/buzztrax-0.10.2/src/lib/core/value-group.c Examining data/buzztrax-0.10.2/src/lib/core/machine.h Examining data/buzztrax-0.10.2/src/lib/core/core_private.h Examining data/buzztrax-0.10.2/src/lib/core/song-io-native-bzt.h Examining data/buzztrax-0.10.2/src/lib/core/song-io-native-xml.h Examining data/buzztrax-0.10.2/src/lib/core/song.c Examining data/buzztrax-0.10.2/src/lib/core/settings.h Examining data/buzztrax-0.10.2/src/lib/core/song-io-native-xml.c Examining data/buzztrax-0.10.2/src/lib/core/wire.c Examining data/buzztrax-0.10.2/src/lib/core/song-info.h Examining data/buzztrax-0.10.2/src/lib/core/tools.c Examining data/buzztrax-0.10.2/src/lib/core/wavetable.h Examining data/buzztrax-0.10.2/src/lib/core/cmd-pattern.h Examining data/buzztrax-0.10.2/src/lib/core/sink-machine.h Examining data/buzztrax-0.10.2/src/lib/core/wave.c Examining data/buzztrax-0.10.2/src/lib/core/sink-bin.h Examining data/buzztrax-0.10.2/src/lib/core/persistence.c Examining data/buzztrax-0.10.2/src/lib/core/wave.h Examining data/buzztrax-0.10.2/src/lib/core/childproxy.h Examining data/buzztrax-0.10.2/src/lib/core/wire.h Examining data/buzztrax-0.10.2/src/lib/core/source-machine.h Examining data/buzztrax-0.10.2/src/lib/core/sequence.c Examining data/buzztrax-0.10.2/src/lib/core/setup.h Examining data/buzztrax-0.10.2/src/lib/core/core.c Examining data/buzztrax-0.10.2/src/lib/core/audio-session.c Examining data/buzztrax-0.10.2/src/lib/core/machine.c Examining data/buzztrax-0.10.2/src/ui/edit/change-logger.c Examining data/buzztrax-0.10.2/src/ui/edit/machine-properties-dialog.h Examining data/buzztrax-0.10.2/src/ui/edit/settings-page-playback-controller.h Examining data/buzztrax-0.10.2/src/ui/edit/machine-preferences-dialog.h Examining data/buzztrax-0.10.2/src/ui/edit/main-page-sequence.h Examining data/buzztrax-0.10.2/src/ui/edit/settings-page-directories.h Examining data/buzztrax-0.10.2/src/ui/edit/wavelevel-list-model.c Examining data/buzztrax-0.10.2/src/ui/edit/settings-page-shortcuts.c Examining data/buzztrax-0.10.2/src/ui/edit/object-list-model.c Examining data/buzztrax-0.10.2/src/ui/edit/btmemoryaudiosrc.c Examining data/buzztrax-0.10.2/src/ui/edit/panorama-popup.c Examining data/buzztrax-0.10.2/src/ui/edit/main-menu.h Examining data/buzztrax-0.10.2/src/ui/edit/machine-list-model.c Examining data/buzztrax-0.10.2/src/ui/edit/missing-framework-elements-dialog.c Examining data/buzztrax-0.10.2/src/ui/edit/interaction-controller-menu.h Examining data/buzztrax-0.10.2/src/ui/edit/settings-page-ui.c Examining data/buzztrax-0.10.2/src/ui/edit/settings-page-audiodevices.h Examining data/buzztrax-0.10.2/src/ui/edit/pattern-properties-dialog.c Examining data/buzztrax-0.10.2/src/ui/edit/main-menu.c Examining data/buzztrax-0.10.2/src/ui/edit/settings-page-playback-controller.c Examining data/buzztrax-0.10.2/src/ui/edit/main-pages.c Examining data/buzztrax-0.10.2/src/ui/edit/tip-dialog.c Examining data/buzztrax-0.10.2/src/ui/edit/wavelevel-list-model.h Examining data/buzztrax-0.10.2/src/ui/edit/about-dialog.h Examining data/buzztrax-0.10.2/src/ui/edit/machine-actions.c Examining data/buzztrax-0.10.2/src/ui/edit/settings-page-audiodevices.c Examining data/buzztrax-0.10.2/src/ui/edit/machine-list-model.h Examining data/buzztrax-0.10.2/src/ui/edit/preset-list-model.h Examining data/buzztrax-0.10.2/src/ui/edit/preset-list-model.c Examining data/buzztrax-0.10.2/src/ui/edit/tools.h Examining data/buzztrax-0.10.2/src/ui/edit/playback-controller-ic.h Examining data/buzztrax-0.10.2/src/ui/edit/main-window.h Examining data/buzztrax-0.10.2/src/ui/edit/edit-application.h Examining data/buzztrax-0.10.2/src/ui/edit/machine-preferences-dialog.c Examining data/buzztrax-0.10.2/src/ui/edit/main-page-machines.h Examining data/buzztrax-0.10.2/src/ui/edit/main-statusbar.c Examining data/buzztrax-0.10.2/src/ui/edit/main-page-info.h Examining data/buzztrax-0.10.2/src/ui/edit/pattern-list-model.c Examining data/buzztrax-0.10.2/src/ui/edit/volume-popup.h Examining data/buzztrax-0.10.2/src/ui/edit/gtkvumeter.h Examining data/buzztrax-0.10.2/src/ui/edit/machine-menu.c Examining data/buzztrax-0.10.2/src/ui/edit/sequence-grid-model.c Examining data/buzztrax-0.10.2/src/ui/edit/volume-popup.c Examining data/buzztrax-0.10.2/src/ui/edit/main-pages.h Examining data/buzztrax-0.10.2/src/ui/edit/settings-page-ui.h Examining data/buzztrax-0.10.2/src/ui/edit/machine-preset-properties-dialog.c Examining data/buzztrax-0.10.2/src/ui/edit/sequence-view.h Examining data/buzztrax-0.10.2/src/ui/edit/settings-dialog.h Examining data/buzztrax-0.10.2/src/ui/edit/btmemoryaudiosrc.h Examining data/buzztrax-0.10.2/src/ui/edit/pattern-list-model.h Examining data/buzztrax-0.10.2/src/ui/edit/sequence-view.c Examining data/buzztrax-0.10.2/src/ui/edit/ui-resources.h Examining data/buzztrax-0.10.2/src/ui/edit/crash-recover-dialog.h Examining data/buzztrax-0.10.2/src/ui/edit/main-statusbar.h Examining data/buzztrax-0.10.2/src/ui/edit/wire-canvas-item.c Examining data/buzztrax-0.10.2/src/ui/edit/settings-page-directories.c Examining data/buzztrax-0.10.2/src/ui/edit/settings-dialog.c Examining data/buzztrax-0.10.2/src/ui/edit/main-page-waves.h Examining data/buzztrax-0.10.2/src/ui/edit/main-page-patterns.h Examining data/buzztrax-0.10.2/src/ui/edit/main-page-waves.c Examining data/buzztrax-0.10.2/src/ui/edit/change-logger.h Examining data/buzztrax-0.10.2/src/ui/edit/signal-analysis-dialog.c Examining data/buzztrax-0.10.2/src/ui/edit/main-toolbar.h Examining data/buzztrax-0.10.2/src/ui/edit/waveform-viewer.h Examining data/buzztrax-0.10.2/src/ui/edit/machine-actions.h Examining data/buzztrax-0.10.2/src/ui/edit/pattern-editor.c Examining data/buzztrax-0.10.2/src/ui/edit/playback-controller-ic.c Examining data/buzztrax-0.10.2/src/ui/edit/machine-canvas-item.h Examining data/buzztrax-0.10.2/src/ui/edit/interaction-controller-menu.c Examining data/buzztrax-0.10.2/src/ui/edit/bt-edit.h Examining data/buzztrax-0.10.2/src/ui/edit/settings-page-interaction-controller.h Examining data/buzztrax-0.10.2/src/ui/edit/main-page-info.c Examining data/buzztrax-0.10.2/src/ui/edit/sequence-grid-model.h Examining data/buzztrax-0.10.2/src/ui/edit/gtkscrolledsyncwindow.c Examining data/buzztrax-0.10.2/src/ui/edit/tools.c Examining data/buzztrax-0.10.2/src/ui/edit/missing-song-elements-dialog.c Examining data/buzztrax-0.10.2/src/ui/edit/main-toolbar.c Examining data/buzztrax-0.10.2/src/ui/edit/waveform-viewer.c Examining data/buzztrax-0.10.2/src/ui/edit/wave-list-model.c Examining data/buzztrax-0.10.2/src/ui/edit/machine-canvas-item.c Examining data/buzztrax-0.10.2/src/ui/edit/machine-rename-dialog.h Examining data/buzztrax-0.10.2/src/ui/edit/machine-properties-dialog.c Examining data/buzztrax-0.10.2/src/ui/edit/missing-song-elements-dialog.h Examining data/buzztrax-0.10.2/src/ui/edit/main-page-patterns.c Examining data/buzztrax-0.10.2/src/ui/edit/pattern-properties-dialog.h Examining data/buzztrax-0.10.2/src/ui/edit/signal-analysis-dialog.h Examining data/buzztrax-0.10.2/src/ui/edit/machine-preset-properties-dialog.h Examining data/buzztrax-0.10.2/src/ui/edit/gtkscrolledsyncwindow.h Examining data/buzztrax-0.10.2/src/ui/edit/main-page-machines.c Examining data/buzztrax-0.10.2/src/ui/edit/wire-canvas-item.h Examining data/buzztrax-0.10.2/src/ui/edit/missing-framework-elements-dialog.h Examining data/buzztrax-0.10.2/src/ui/edit/wave-list-model.h Examining data/buzztrax-0.10.2/src/ui/edit/machine-rename-dialog.c Examining data/buzztrax-0.10.2/src/ui/edit/render-dialog.h Examining data/buzztrax-0.10.2/src/ui/edit/gtkvumeter.c Examining data/buzztrax-0.10.2/src/ui/edit/bt-edit.c Examining data/buzztrax-0.10.2/src/ui/edit/panorama-popup.h Examining data/buzztrax-0.10.2/src/ui/edit/main-window.c Examining data/buzztrax-0.10.2/src/ui/edit/pattern-editor.h Examining data/buzztrax-0.10.2/src/ui/edit/crash-recover-dialog.c Examining data/buzztrax-0.10.2/src/ui/edit/tip-dialog.h Examining data/buzztrax-0.10.2/src/ui/edit/machine-menu.h Examining data/buzztrax-0.10.2/src/ui/edit/playback-controller-socket.h Examining data/buzztrax-0.10.2/src/ui/edit/render-dialog.c Examining data/buzztrax-0.10.2/src/ui/edit/settings-page-shortcuts.h Examining data/buzztrax-0.10.2/src/ui/edit/playback-controller-socket.c Examining data/buzztrax-0.10.2/src/ui/edit/change-log.h Examining data/buzztrax-0.10.2/src/ui/edit/object-list-model.h Examining data/buzztrax-0.10.2/src/ui/edit/about-dialog.c Examining data/buzztrax-0.10.2/src/ui/edit/change-log.c Examining data/buzztrax-0.10.2/src/ui/edit/edit-application.c Examining data/buzztrax-0.10.2/src/ui/edit/main-page-sequence.c Examining data/buzztrax-0.10.2/src/ui/edit/settings-page-interaction-controller.c Examining data/buzztrax-0.10.2/src/ui/edit/ui-resources.c Examining data/buzztrax-0.10.2/src/ui/cmd/bt-cmd.h Examining data/buzztrax-0.10.2/src/ui/cmd/cmd-application.h Examining data/buzztrax-0.10.2/src/ui/cmd/bt-cmd.c Examining data/buzztrax-0.10.2/src/ui/cmd/cmd-application.c FINAL RESULTS: data/buzztrax-0.10.2/src/lib/bml/BuzzMachineLoader/debug.cpp:35:13: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(str,"%s:%d:%s:%s ",file,line,func,obj); data/buzztrax-0.10.2/src/lib/bml/BuzzMachineLoader/debug.cpp:38:13: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(str,"%s:%d:%s ",file,line,func); data/buzztrax-0.10.2/src/lib/bml/BuzzMachineLoader/debug.cpp:41:9: [4] (format) vsprintf: Potential format string problem (CWE-134). Make format string constant. vsprintf(str,fmt,args); data/buzztrax-0.10.2/src/lib/bml/BuzzMachineLoader/debug.cpp:51:9: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(stdout,fmt,args); data/buzztrax-0.10.2/src/lib/bml/bml.c:117:7: [4] (shell) execvp: 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. execvp ("bmlhost", args); data/buzztrax-0.10.2/src/lib/bml/bml.c:133:3: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (&address.sun_path[1], socket_file); data/buzztrax-0.10.2/src/lib/bml/bmlhost.c:430:3: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (&address.sun_path[1], socket_file); data/buzztrax-0.10.2/src/lib/bml/bmllog.c:62:3: [4] (format) vsnprintf: 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. vsnprintf (msg, 4000, fmt, ap); data/buzztrax-0.10.2/src/lib/bml/strpool.c:317:9: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (pair->value, value); data/buzztrax-0.10.2/src/lib/bml/strpool.c:396:7: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (pair->key, key); data/buzztrax-0.10.2/src/lib/bml/strpool.c:398:1: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (pair->value, value); data/buzztrax-0.10.2/src/lib/core/song-info.c:626:11: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (self->priv->create_dts, dts); data/buzztrax-0.10.2/src/lib/core/song-info.c:644:11: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (self->priv->change_dts, dts); data/buzztrax-0.10.2/src/lib/core/songio/bsl/song-io-buzz.c:943:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (plugin_name, "bml-%s", mach->dllname); data/buzztrax-0.10.2/src/lib/dllwrapper/afl.c:297:3: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (padid->pszFileName, pszFileName); data/buzztrax-0.10.2/src/lib/dllwrapper/debugtools.h:24:22: [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. # define dbg_printf printf data/buzztrax-0.10.2/src/lib/dllwrapper/debugtools.h:83:71: [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. extern int dbg_printf(const char *format, ...) __attribute__((format (printf,1,2))); data/buzztrax-0.10.2/src/lib/dllwrapper/debugtools.h:92:17: [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. #define ERR_(X) printf data/buzztrax-0.10.2/src/lib/dllwrapper/debugtools.h:93:13: [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. #define ERR printf data/buzztrax-0.10.2/src/lib/dllwrapper/driver.c:68:3: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (win32_def_path, path); data/buzztrax-0.10.2/src/lib/dllwrapper/elfdll.c:92:7: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (buffer + len + 1, libname); data/buzztrax-0.10.2/src/lib/dllwrapper/elfdll.c:94:7: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (buffer + len, libname); data/buzztrax-0.10.2/src/lib/dllwrapper/elfdll.c:128:3: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (name, cptr); data/buzztrax-0.10.2/src/lib/dllwrapper/elfdll.c:191:3: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (wm->filename, path); data/buzztrax-0.10.2/src/lib/dllwrapper/elfdll.c:240:3: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (soname, name); data/buzztrax-0.10.2/src/lib/dllwrapper/ext.c:76:3: [4] (format) vprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vprintf (format, va); data/buzztrax-0.10.2/src/lib/dllwrapper/ext.c:139:1: [4] (buffer) lstrcpynA: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). lstrcpynA (LPSTR dest, LPCSTR src, INT num) data/buzztrax-0.10.2/src/lib/dllwrapper/ext.c:222:3: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (answ, string); data/buzztrax-0.10.2/src/lib/dllwrapper/ext.c:449:7: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (fm->name, name); data/buzztrax-0.10.2/src/lib/dllwrapper/ext.c:663:25: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. OpenFileMappingA (DWORD access, WIN_BOOL prot, LPCSTR name) data/buzztrax-0.10.2/src/lib/dllwrapper/ext.h:12:36: [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. extern int __attribute__ ((format (printf, 1, 2))) __vprintf( const char *format, ... ); data/buzztrax-0.10.2/src/lib/dllwrapper/pe_image.c:812:3: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (wm->filename, filename); data/buzztrax-0.10.2/src/lib/dllwrapper/pe_image.c:869:13: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (libname, dp->d_name); data/buzztrax-0.10.2/src/lib/dllwrapper/registry.c:243:3: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (t->name, name); data/buzztrax-0.10.2/src/lib/dllwrapper/registry.c:261:3: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (full_name, t->name); data/buzztrax-0.10.2/src/lib/dllwrapper/registry.c:263:3: [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 (full_name, subkey); data/buzztrax-0.10.2/src/lib/dllwrapper/registry.c:301:3: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (v->name, fullname); data/buzztrax-0.10.2/src/lib/dllwrapper/registry.c:320:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (localregpathname, "%s/.xine/win32registry", xine_get_homedir ()); data/buzztrax-0.10.2/src/lib/dllwrapper/registry.c:338:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (localregpathname, pthn); data/buzztrax-0.10.2/src/lib/dllwrapper/registry.c:369:3: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (full_name, t->name); data/buzztrax-0.10.2/src/lib/dllwrapper/registry.c:371:3: [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 (full_name, subkey); data/buzztrax-0.10.2/src/lib/dllwrapper/registry.c:379:66: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. RegOpenKeyExA (long key, const char *subkey, long reserved, long access, data/buzztrax-0.10.2/src/lib/dllwrapper/registry.h:18:11: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. long access, int* newkey); data/buzztrax-0.10.2/src/lib/dllwrapper/resource.c:451:5: [4] (buffer) lstrcpynA: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). lstrcpynA (buffer, (char *) mre->Text, i); data/buzztrax-0.10.2/src/lib/dllwrapper/vfl.c:23:19: [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. #define FIXME_(X) printf data/buzztrax-0.10.2/src/lib/dllwrapper/vfl.c:24:15: [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. #define FIXME printf data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:67:5: [4] (buffer) vsscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. If the scanf format is influenceable by an attacker, it's exploitable. int vsscanf (const char *str, const char *format, va_list ap); data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:72:1: [4] (buffer) vsscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. If the scanf format is influenceable by an attacker, it's exploitable. vsscanf (const char *str, const char *format, va_list ap) data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:79:10: [4] (buffer) sscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. If the scanf format is influenceable by an attacker, it's exploitable. return sscanf (str, format, p1, p2, p3, p4, p5); data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:1908:69: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. expRegOpenKeyExA (long key, const char *subkey, long reserved, long access, data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:1911:55: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. long result = RegOpenKeyExA (key, subkey, reserved, access, newkey); data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:1914:30: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. key, subkey, reserved, access, newkey, result); data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:2428:7: [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 (s, mr->filename); data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:2430:7: [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 (s, strrchr (mr->filename, '/') + 1); data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:2902:3: [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 (fullname, appname); data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:2904:3: [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 (fullname, keyname); data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:2906:3: [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 (fullname, filename); data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:2947:3: [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 (fullname, appname); data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:2949:3: [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 (fullname, keyname); data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:2951:3: [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 (fullname, filename); data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:2982:3: [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 (fullname, appname); data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:2984:3: [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 (fullname, keyname); data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:2986:3: [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 (fullname, filename); data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:3657:7: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (lpfd->cFileName, d->d_name); data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:3756:12: [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). chdir (strcat (strrchr (pathname, '\\') + 1, '/')); data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:3769:3: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (&buf[0], p); /* should be strncpy */ data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:3776:12: [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). mkdir (strcat (strrchr (pathname, '\\') + 1, '/'), 666); data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:3834:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (tmp, win32_def_path); data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:3845:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (tmp, "%s/%s", win32_def_path, x ? (x + 1) : cs1); data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:3856:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (tmp, win32_def_path); data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:3868:5: [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 (tmp, cs1); data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:3908:41: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. expCreateFileW (LPCWSTR filename, DWORD access, DWORD sharing, data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:3912:45: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. return expCreateFileA ((LPCSTR) filename, access, sharing, sa, creation, data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:4036:3: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (lpFilePart, lpFileName); data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:4044:3: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (lpBuffer, lpFileName); data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:4055:3: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (shortpath, longpath); data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:4181:22: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). int result = (int) strcpy (str1, str2); data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:4193:20: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). result = (int) strcpy (str1, str2); data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:4202:22: [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). int result = (int) strcat (str1, str2); data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:4485:12: [4] (format) vsprintf: Potential format string problem (CWE-134). Make format string constant. result = vsprintf (string, format, va); data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:4499:7: [4] (format) vsprintf: Potential format string problem (CWE-134). Make format string constant. r = vsprintf (str, format, args); data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:4512:7: [4] (buffer) vsscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. If the scanf format is influenceable by an attacker, it's exploitable. r = vsscanf (str, format, args); data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:4534:7: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. r = vfprintf ((FILE *) stream, format, args); data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:4548:7: [4] (format) vprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. r = vprintf (format, args); data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:4604:18: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). char *result = strcpy (str1, str2); data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:4638:18: [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). char *result = strcat (str1, str2); data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:4650:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (result, str1); data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:5651:11: [4] (buffer) lstrcpyA: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). FF (lstrcpyA, -1) data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:5652:11: [4] (buffer) lstrcatA: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). FF (lstrcatA, -1) data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:5653:11: [4] (buffer) lstrcpynA: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). FF (lstrcpynA, -1) data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:5685:11: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). FF (strcpy, -1) data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:5687:11: [4] (buffer) wcscpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using a function version that stops copying at the end of the buffer. FF (wcscpy, -1) data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:5690:11: [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). FF (strcat, -1) data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:5724:11: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. FF (sprintf, -1) data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:5725:11: [4] (buffer) sscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. FF (sscanf, -1) data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:5727:11: [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. FF (fprintf, -1) data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:5728:11: [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. FF (printf, -1) data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:5736:30: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. {"vfprintf", -1, (void *) &vfprintf}, data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:5850:11: [4] (buffer) wcscpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using a function version that stops copying at the end of the buffer. FF (wcscpy, -1) data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:5902:11: [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. FF (fprintf, -1) // just test data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:6008:36: [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. *((long *) (answ + 10)) = (long) printf; data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:6090:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (export_names[pos], "%s:%d", library, ordinal); data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:6129:3: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (export_names[pos], name); data/buzztrax-0.10.2/src/lib/dllwrapper/winbase.h:1736:20: [4] (buffer) lstrcatA: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). LPSTR WINAPI lstrcatA(LPSTR,LPCSTR); data/buzztrax-0.10.2/src/lib/dllwrapper/winbase.h:1737:20: [4] (buffer) lstrcatW: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). LPWSTR WINAPI lstrcatW(LPWSTR,LPCWSTR); data/buzztrax-0.10.2/src/lib/dllwrapper/winbase.h:1738:13: [4] (buffer) lstrcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). #define lstrcat WINELIB_NAME_AW(lstrcat) data/buzztrax-0.10.2/src/lib/dllwrapper/winbase.h:1738:37: [4] (buffer) lstrcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). #define lstrcat WINELIB_NAME_AW(lstrcat) data/buzztrax-0.10.2/src/lib/dllwrapper/winbase.h:1739:20: [4] (buffer) lstrcpyA: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). LPSTR WINAPI lstrcpyA(LPSTR,LPCSTR); data/buzztrax-0.10.2/src/lib/dllwrapper/winbase.h:1740:20: [4] (buffer) lstrcpyW: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). LPWSTR WINAPI lstrcpyW(LPWSTR,LPCWSTR); data/buzztrax-0.10.2/src/lib/dllwrapper/winbase.h:1741:13: [4] (buffer) lstrcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using a function version that stops copying at the end of the buffer. #define lstrcpy WINELIB_NAME_AW(lstrcpy) data/buzztrax-0.10.2/src/lib/dllwrapper/winbase.h:1741:37: [4] (buffer) lstrcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using a function version that stops copying at the end of the buffer. #define lstrcpy WINELIB_NAME_AW(lstrcpy) data/buzztrax-0.10.2/src/lib/dllwrapper/winbase.h:1742:20: [4] (buffer) lstrcpynA: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). LPSTR WINAPI lstrcpynA(LPSTR,LPCSTR,INT); data/buzztrax-0.10.2/src/lib/dllwrapper/winbase.h:1743:20: [4] (buffer) lstrcpynW: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). LPWSTR WINAPI lstrcpynW(LPWSTR,LPCWSTR,INT); data/buzztrax-0.10.2/src/lib/dllwrapper/winbase.h:1748:18: [4] (shell) WinExec: 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. HINSTANCE WINAPI WinExec(LPCSTR,UINT); data/buzztrax-0.10.2/src/lib/gst/toneconversion.c:387:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (str, "%2s%1d", key[tone], octave); data/buzztrax-0.10.2/src/lib/ic/gudev-discoverer.c:107:9: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if (access (devnode, R_OK) == -1) { data/buzztrax-0.10.2/tests/bt-check.c:1315: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. ret = system (cmd); data/buzztrax-0.10.2/tests/bt-check.c:1337: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. ret = system (cmd); data/buzztrax-0.10.2/tests/lib/gst/e-filter-svf.c:122:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (name, "%s cut-off=0.5 resonance=%.1lf", enum_value->value_name, data/buzztrax-0.10.2/src/lib/bml/bml.c:111:8: [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. if (!getenv ("BMLIPC_DEBUG")) { data/buzztrax-0.10.2/src/lib/bml/bml.c:855:36: [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 *debug_log_flag_str = getenv ("BML_DEBUG"); data/buzztrax-0.10.2/src/lib/bml/bml.c:871:7: [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. if (getenv ("BMLIPC_DEBUG")) { data/buzztrax-0.10.2/src/lib/bml/bmlhost.c:396:36: [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 *debug_log_flag_str = getenv ("BML_DEBUG"); data/buzztrax-0.10.2/src/lib/core/settings.c:1015:42: [3] (buffer) g_get_home_dir: This function is synonymous with 'getenv("HOME")';it returns untrustable input if the environment can beset by an attacker. It 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. "default directory for songs", g_get_home_dir (), data/buzztrax-0.10.2/src/lib/core/settings.c:1020:47: [3] (buffer) g_get_home_dir: This function is synonymous with 'getenv("HOME")';it returns untrustable input if the environment can beset by an attacker. It 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. "default directory for recordings", g_get_home_dir (), data/buzztrax-0.10.2/src/lib/core/settings.c:1025:53: [3] (buffer) g_get_home_dir: This function is synonymous with 'getenv("HOME")';it returns untrustable input if the environment can beset by an attacker. It 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. "default directory for sample-waveforms", g_get_home_dir (), data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:4556:13: [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. char *v = getenv (varname); data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:5528:11: [3] (misc) InitializeCriticalSection: Exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. FF (InitializeCriticalSection, -1) data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:5529:11: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. FF (EnterCriticalSection, -1) data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:5703:27: [3] (random) srand: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. {"srand", -1, (void *) &srand}, data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:5729:11: [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. FF (getenv, -1) data/buzztrax-0.10.2/src/lib/dllwrapper/winbase.h:1112:18: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. void WINAPI EnterCriticalSection(CRITICAL_SECTION *lpCrit); data/buzztrax-0.10.2/src/lib/dllwrapper/winbase.h:1114:18: [3] (misc) InitializeCriticalSection: Exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. void WINAPI InitializeCriticalSection(CRITICAL_SECTION *lpCrit); data/buzztrax-0.10.2/src/lib/dllwrapper/winbase.h:1194:13: [3] (shell) CreateProcess: This causes a new process to execute and is difficult to use safely (CWE-78). Specify the application path in the first argument, NOT as part of the second, or embedded spaces could allow an attacker to force a different program to run. #define CreateProcess WINELIB_NAME_AW(CreateProcess) data/buzztrax-0.10.2/src/lib/dllwrapper/winbase.h:1194:43: [3] (shell) CreateProcess: This causes a new process to execute and is difficult to use safely (CWE-78). Specify the application path in the first argument, NOT as part of the second, or embedded spaces could allow an attacker to force a different program to run. #define CreateProcess WINELIB_NAME_AW(CreateProcess) data/buzztrax-0.10.2/src/lib/dllwrapper/winbase.h:1628:13: [3] (tmpfile) GetTempFileName: Temporary file race condition in certain cases (e.g., if run as SYSTEM in many versions of Windows) (CWE-377). #define GetTempFileName WINELIB_NAME_AW(GetTempFileName) data/buzztrax-0.10.2/src/lib/dllwrapper/winbase.h:1628:45: [3] (tmpfile) GetTempFileName: Temporary file race condition in certain cases (e.g., if run as SYSTEM in many versions of Windows) (CWE-377). #define GetTempFileName WINELIB_NAME_AW(GetTempFileName) data/buzztrax-0.10.2/src/lib/dllwrapper/winbase.h:1676:13: [3] (misc) LoadLibrary: Ensure that the full path to the library is specified, or current directory may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to find library path, if you aren't already. #define LoadLibrary WINELIB_NAME_AW(LoadLibrary) data/buzztrax-0.10.2/src/lib/dllwrapper/winbase.h:1676:41: [3] (misc) LoadLibrary: Ensure that the full path to the library is specified, or current directory may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to find library path, if you aren't already. #define LoadLibrary WINELIB_NAME_AW(LoadLibrary) data/buzztrax-0.10.2/src/lib/dllwrapper/winbase.h:1679:13: [3] (misc) LoadLibraryEx: Ensure that the full path to the library is specified, or current directory may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to find library path, if you aren't already. #define LoadLibraryEx WINELIB_NAME_AW(LoadLibraryEx) data/buzztrax-0.10.2/src/lib/dllwrapper/winbase.h:1679:43: [3] (misc) LoadLibraryEx: Ensure that the full path to the library is specified, or current directory may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to find library path, if you aren't already. #define LoadLibraryEx WINELIB_NAME_AW(LoadLibraryEx) data/buzztrax-0.10.2/src/ui/edit/machine-list-model.c:516:23: [3] (random) g_random_int: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. self->priv->stamp = g_random_int (); data/buzztrax-0.10.2/src/ui/edit/object-list-model.c:419:23: [3] (random) g_random_int: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. self->priv->stamp = g_random_int (); data/buzztrax-0.10.2/src/ui/edit/pattern-list-model.c:645:23: [3] (random) g_random_int: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. self->priv->stamp = g_random_int (); data/buzztrax-0.10.2/src/ui/edit/preset-list-model.c:462:23: [3] (random) g_random_int: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. self->priv->stamp = g_random_int (); data/buzztrax-0.10.2/src/ui/edit/sequence-grid-model.c:705:23: [3] (random) g_random_int: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. self->priv->stamp = g_random_int (); data/buzztrax-0.10.2/src/ui/edit/tip-dialog.c:110:33: [3] (random) g_random_int_range: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. ix = self->priv->pending_tips[g_random_int_range (0, data/buzztrax-0.10.2/src/ui/edit/wave-list-model.c:420:23: [3] (random) g_random_int: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. self->priv->stamp = g_random_int (); data/buzztrax-0.10.2/src/ui/edit/wavelevel-list-model.c:425:23: [3] (random) g_random_int: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. self->priv->stamp = g_random_int (); data/buzztrax-0.10.2/tests/bt-check-ui.c:365:9: [3] (buffer) g_get_tmp_dir: This function is synonymous with 'getenv("TMP")';it returns untrustable input if the environment can beset by an attacker. It 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. g_get_tmp_dir (), g_get_prgname (), gtk_widget_get_name (widget)); data/buzztrax-0.10.2/tests/bt-check-ui.c:368:9: [3] (buffer) g_get_tmp_dir: This function is synonymous with 'getenv("TMP")';it returns untrustable input if the environment can beset by an attacker. It 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. g_get_tmp_dir (), g_get_prgname (), gtk_widget_get_name (widget), name); data/buzztrax-0.10.2/tests/bt-check.c:381:16: [3] (buffer) g_get_tmp_dir: This function is synonymous with 'getenv("TMP")';it returns untrustable input if the environment can beset by an attacker. It 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. __log_root = g_get_tmp_dir (); data/buzztrax-0.10.2/tests/bt-check.c:1295:7: [3] (buffer) g_get_tmp_dir: This function is synonymous with 'getenv("TMP")';it returns untrustable input if the environment can beset by an attacker. It 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. g_get_tmp_dir (), g_get_prgname (), full_name); data/buzztrax-0.10.2/tests/lib/core/e-sink-bin.c:150:40: [3] (buffer) g_get_tmp_dir: This function is synonymous with 'getenv("TMP")';it returns untrustable input if the environment can beset by an attacker. It 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. gchar *song_path = g_build_filename (g_get_tmp_dir (), song_name, NULL); data/buzztrax-0.10.2/tests/lib/core/e-song-io-native.c:130:40: [3] (buffer) g_get_tmp_dir: This function is synonymous with 'getenv("TMP")';it returns untrustable input if the environment can beset by an attacker. It 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. gchar *song_path = g_build_filename (g_get_tmp_dir (), song_name, NULL); data/buzztrax-0.10.2/tests/lib/core/e-song-io-native.c:440:44: [3] (buffer) g_get_tmp_dir: This function is synonymous with 'getenv("TMP")';it returns untrustable input if the environment can beset by an attacker. It 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. gchar *ext_data_path = g_build_filename (g_get_tmp_dir (), "test.wav", NULL); data/buzztrax-0.10.2/tests/lib/core/e-wave-table.c:39:37: [3] (buffer) g_get_tmp_dir: This function is synonymous with 'getenv("TMP")';it returns untrustable input if the environment can beset by an attacker. It 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. ext_data_path = g_build_filename (g_get_tmp_dir (), "test.wav", NULL); data/buzztrax-0.10.2/tests/lib/core/e-wave.c:39:37: [3] (buffer) g_get_tmp_dir: This function is synonymous with 'getenv("TMP")';it returns untrustable input if the environment can beset by an attacker. It 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. ext_data_path = g_build_filename (g_get_tmp_dir (), "test.wav", NULL); data/buzztrax-0.10.2/tests/lib/core/t-wave.c:39:37: [3] (buffer) g_get_tmp_dir: This function is synonymous with 'getenv("TMP")';it returns untrustable input if the environment can beset by an attacker. It 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. ext_data_path = g_build_filename (g_get_tmp_dir (), "test.wav", NULL); data/buzztrax-0.10.2/tests/ui/cmd/e-cmd-application.c:113:25: [3] (buffer) g_get_tmp_dir: This function is synonymous with 'getenv("TMP")';it returns untrustable input if the environment can beset by an attacker. It 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. g_build_filename (g_get_tmp_dir (), "test-simple1.xml.txt", NULL); data/buzztrax-0.10.2/tests/ui/edit/e-change-log.c:537:39: [3] (buffer) g_get_tmp_dir: This function is synonymous with 'getenv("TMP")';it returns untrustable input if the environment can beset by an attacker. It 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. gchar *log_name = g_build_filename (g_get_tmp_dir (), "bt-crash.log", NULL); data/buzztrax-0.10.2/tests/ui/edit/e-wavelevel-list-model.c:40:37: [3] (buffer) g_get_tmp_dir: This function is synonymous with 'getenv("TMP")';it returns untrustable input if the environment can beset by an attacker. It 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. ext_data_path = g_build_filename (g_get_tmp_dir (), "test.wav", NULL); data/buzztrax-0.10.2/tests/ui/edit/t-change-log.c:68:39: [3] (buffer) g_get_tmp_dir: This function is synonymous with 'getenv("TMP")';it returns untrustable input if the environment can beset by an attacker. It 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. gchar *log_name = g_build_filename (g_get_tmp_dir (), "bt-crash.log", NULL); data/buzztrax-0.10.2/src/gst/bml/common.c:50:13: [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 ((in = fopen (preset_path, "rb"))) { data/buzztrax-0.10.2/src/gst/bml/common.c:364:16: [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 ((out = fopen (preset_path, "wb"))) { data/buzztrax-0.10.2/src/gst/bml/gstbml.c:262:19: [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 ((bmh = bml (open (file_name)))) { data/buzztrax-0.10.2/src/gst/bml/gstbml.c:375:9: [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 (def, "%d", g_value_get_int (value)); data/buzztrax-0.10.2/src/gst/bml/gstbml.c:383:9: [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 (def, "%u", g_value_get_uint (value)); data/buzztrax-0.10.2/src/gst/bml/gstbml.c:392:9: [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 (def, "%d", g_value_get_enum (value)); data/buzztrax-0.10.2/src/gst/bml/gstbml.c:490:14: [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). bmh = bml (open (klass->dll_name)); data/buzztrax-0.10.2/src/gst/bml/gstbmlv.c:57:9: [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 (def, "%d", g_value_get_int (value)); data/buzztrax-0.10.2/src/gst/bml/gstbmlv.c:65:9: [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 (def, "%u", g_value_get_uint (value)); data/buzztrax-0.10.2/src/gst/bml/gstbmlv.c:74:9: [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 (def, "%d", g_value_get_enum (value)); data/buzztrax-0.10.2/src/gst/bml/plugin.c:71:15: [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 = fopen (file_name, "rt"))) { data/buzztrax-0.10.2/src/gst/dec/bt-dec.c:170:5: [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 (&seeksegment, &self->segment, sizeof (GstSegment)); data/buzztrax-0.10.2/src/gst/dec/bt-dec.c:196:5: [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 (&self->segment, &seeksegment, sizeof (GstSegment)); data/buzztrax-0.10.2/src/gst/sidsyn/sidemu.h:64: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 sid_register[0x20]; data/buzztrax-0.10.2/src/gst/sidsyn/sidsyn.cc:616: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 (name, "voice%1d",i); data/buzztrax-0.10.2/src/lib/bml/BuzzMachineLoader/CMachine.h:31: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 _placeholder[16]; // 0x04: all 0 data/buzztrax-0.10.2/src/lib/bml/BuzzMachineLoader/CMachine.h:33: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 _placeholder2[52]; // 0x18: data/buzztrax-0.10.2/src/lib/bml/BuzzMachineLoader/CMachine.h:36: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 _placeholder3[20]; // 0x54: ptr ptr? ptr NULL NULL data/buzztrax-0.10.2/src/lib/bml/BuzzMachineLoader/CMachine.h:39: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 _placeholder4[16]; // 0x70: ptr ptr NULL 0x28d13d00 data/buzztrax-0.10.2/src/lib/bml/BuzzMachineLoader/CMachine.h:47: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 _placeholder5[76]; // 0x9C: data/buzztrax-0.10.2/src/lib/bml/BuzzMachineLoader/CMachine.h:49: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 _placeholder6[17]; data/buzztrax-0.10.2/src/lib/bml/BuzzMachineLoader/MachineDataImpl.cpp:44: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(pmem, m_pbyBuffer, n_size); data/buzztrax-0.10.2/src/lib/bml/BuzzMachineLoader/MachineDataImpl.cpp:50: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(pmem, m_pbyBuffer, m_dwBufferLen); data/buzztrax-0.10.2/src/lib/bml/BuzzMachineLoader/debug.cpp:32: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 str[2048]; data/buzztrax-0.10.2/src/lib/bml/BuzzMachineLoader/mdkimp.cpp:157:2: [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(pout, pin, n*sizeof(float)); data/buzztrax-0.10.2/src/lib/bml/bml.c:54: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 socket_file[SOCKET_PATH_MAX]; data/buzztrax-0.10.2/src/lib/bml/bml.c:418:10: [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 desc[1024]; data/buzztrax-0.10.2/src/lib/bml/bml.c:450:10: [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 desc[1024]; data/buzztrax-0.10.2/src/lib/bml/bml.c:857:28: [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). debug_log_flag_str ? atoi (debug_log_flag_str) : 0; data/buzztrax-0.10.2/src/lib/bml/bmlhost.c:324:15: [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 ((df = fopen ("/tmp/bmlout_m.raw", "ab"))) { data/buzztrax-0.10.2/src/lib/bml/bmlhost.c:353:15: [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 ((df = fopen ("/tmp/bmlout_s.raw", "ab"))) { data/buzztrax-0.10.2/src/lib/bml/bmlhost.c:398:28: [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). debug_log_flag_str ? atoi (debug_log_flag_str) : 0; data/buzztrax-0.10.2/src/lib/bml/bmlipc.c:122:9: [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 (v, bmlipc_read_data (self, *s), *s); data/buzztrax-0.10.2/src/lib/bml/bmlipc.h:29: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 buffer[IPC_BUF_SIZE]; data/buzztrax-0.10.2/src/lib/bml/bmllog.c:59: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 msg[4000]; data/buzztrax-0.10.2/src/lib/bml/bmllog.c:83:10: [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 lbuf[1000]; data/buzztrax-0.10.2/src/lib/core/machine.c:2898:19: [2] (integer) atol: 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). voice = atol ((char *) voice_str); data/buzztrax-0.10.2/src/lib/core/pattern.c:1087:25: [2] (integer) atol: 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). length = length_str ? atol ((char *) length_str) : 0; data/buzztrax-0.10.2/src/lib/core/pattern.c:1131:14: [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). tick = atoi ((char *) tick_str); data/buzztrax-0.10.2/src/lib/core/pattern.c:1153:21: [2] (integer) atol: 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). voice = atol ((char *) voice_str); data/buzztrax-0.10.2/src/lib/core/processor-machine.c:127:25: [2] (integer) atol: 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). voices = voices_str ? atol ((char *) voices_str) : 0; data/buzztrax-0.10.2/src/lib/core/sequence.c:355:7: [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 (self->priv->patterns, patterns, count * sizeof (gpointer)); data/buzztrax-0.10.2/src/lib/core/sequence.c:379:7: [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 (self->priv->labels, labels, count * sizeof (gpointer)); data/buzztrax-0.10.2/src/lib/core/sequence.c:430:9: [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 (dst, src, count * sizeof (gpointer)); data/buzztrax-0.10.2/src/lib/core/sequence.c:458:9: [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 (self->priv->machines, machines, count * sizeof (gpointer)); data/buzztrax-0.10.2/src/lib/core/sequence.c:1423:38: [2] (integer) atol: 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). const gulong length = length_str ? atol ((char *) length_str) : 0; data/buzztrax-0.10.2/src/lib/core/sequence.c:1424:38: [2] (integer) atol: 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). const gulong tracks = tracks_str ? atol ((char *) tracks_str) : 0; data/buzztrax-0.10.2/src/lib/core/sequence.c:1426:24: [2] (integer) atol: 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). loop_start_str ? atol ((char *) loop_start_str) : -1; data/buzztrax-0.10.2/src/lib/core/sequence.c:1427:42: [2] (integer) atol: 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). const gulong loop_end = loop_end_str ? atol ((char *) loop_end_str) : -1; data/buzztrax-0.10.2/src/lib/core/sequence.c:1450:42: [2] (integer) atol: 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). bt_sequence_set_label (self, atol ((const char *) time_str), data/buzztrax-0.10.2/src/lib/core/sequence.c:1469:46: [2] (integer) atol: 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). const gulong index = index_str ? atol ((char *) index_str) : 0; data/buzztrax-0.10.2/src/lib/core/sequence.c:1505:29: [2] (integer) atol: 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). atol ((char *) time_str), index, pattern); data/buzztrax-0.10.2/src/lib/core/song-info.c:427:59: [2] (integer) atol: 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). g_object_set ((gpointer) self, property_name, atol ((char *) elem), data/buzztrax-0.10.2/src/lib/core/song.c:1116:14: [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 ((out = fopen (file_name, "wb"))) { data/buzztrax-0.10.2/src/lib/core/songio/bsl/song-io-buzz.c:123:5: [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 (ptr, &self->priv->data[self->priv->data_pos], bytes); data/buzztrax-0.10.2/src/lib/core/songio/bsl/song-io-buzz.c:1587:17: [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 (value, "%d", par); data/buzztrax-0.10.2/src/lib/core/songio/bsl/song-io-buzz.c:1671:17: [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 (value, "%d", par); data/buzztrax-0.10.2/src/lib/core/source-machine.c:117:38: [2] (integer) atol: 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). const gulong voices = voices_str ? atol ((char *) voices_str) : 0; data/buzztrax-0.10.2/src/lib/core/tools.c:1033:37: [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). const gboolean val = svalue ? atoi (svalue) : FALSE; data/buzztrax-0.10.2/src/lib/core/tools.c:1053:35: [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). const gint val = svalue ? atoi (svalue) : 0; data/buzztrax-0.10.2/src/lib/core/tools.c:1068:33: [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). const gint val = svalue ? atoi (svalue) : 0; data/buzztrax-0.10.2/src/lib/core/tools.c:1072:34: [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). const guint val = svalue ? atoi (svalue) : 0; data/buzztrax-0.10.2/src/lib/core/tools.c:1084:34: [2] (integer) atol: 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). const glong val = svalue ? atol (svalue) : 0; data/buzztrax-0.10.2/src/lib/core/tools.c:1088:35: [2] (integer) atol: 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). const gulong val = svalue ? atol (svalue) : 0; data/buzztrax-0.10.2/src/lib/core/value-group.c:103:7: [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 (self->priv->data, data, count * sizeof (GValue)); data/buzztrax-0.10.2/src/lib/core/wave.c:215:26: [2] (tmpfile) tmpfile: Function tmpfile() has a security flaw on some systems (e.g., older System V systems) (CWE-377). if (!(self->priv->tf = tmpfile ())) { data/buzztrax-0.10.2/src/lib/core/wave.c:423:14: [2] (tmpfile) tmpfile: Function tmpfile() has a security flaw on some systems (e.g., older System V systems) (CWE-377). if (!(tf = tmpfile ())) { data/buzztrax-0.10.2/src/lib/core/wave.c:429:30: [2] (tmpfile) tmpfile: Function tmpfile() has a security flaw on some systems (e.g., older System V systems) (CWE-377). if (!(self->priv->ext_tf = tmpfile ())) { data/buzztrax-0.10.2/src/lib/core/wave.c:717:36: [2] (integer) atol: 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). const gulong index = index_str ? atol ((char *) index_str) : 0; data/buzztrax-0.10.2/src/lib/core/wave.c:781:33: [2] (tmpfile) tmpfile: Function tmpfile() has a security flaw on some systems (e.g., older System V systems) (CWE-377). if ((self->priv->ext_tf = tmpfile ())) { data/buzztrax-0.10.2/src/lib/core/wavelevel.c:157:31: [2] (integer) atol: 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). root_note = root_note_str ? atol ((char *) root_note_str) : GSTBT_NOTE_NONE; data/buzztrax-0.10.2/src/lib/core/wavelevel.c:158:21: [2] (integer) atol: 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). rate = rate_str ? atol ((char *) rate_str) : 0; data/buzztrax-0.10.2/src/lib/core/wavelevel.c:159:33: [2] (integer) atol: 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). loop_start = loop_start_str ? atol ((char *) loop_start_str) : 0; data/buzztrax-0.10.2/src/lib/core/wavelevel.c:160:29: [2] (integer) atol: 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). loop_end = loop_end_str ? atol ((char *) loop_end_str) : self->priv->length; data/buzztrax-0.10.2/src/lib/core/wire.c:1176:26: [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). tick = atoi ((char *) tick_str); data/buzztrax-0.10.2/src/lib/dllwrapper/afl.c:430:3: [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 (was->drvInst.pwfxSrc, pwfxSrc, wfxSrcSize); data/buzztrax-0.10.2/src/lib/dllwrapper/afl.c:436:3: [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 (was->drvInst.pwfxDst, pwfxDst, wfxDstSize); data/buzztrax-0.10.2/src/lib/dllwrapper/afl.c:440:5: [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 (was->drvInst.pwfltr, pwfltr, sizeof (WAVEFILTER)); data/buzztrax-0.10.2/src/lib/dllwrapper/driver.c:81: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 qw[300]; data/buzztrax-0.10.2/src/lib/dllwrapper/driver.c:140: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 unknown[0x124]; data/buzztrax-0.10.2/src/lib/dllwrapper/elfdll.c:56: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 buffer[256]; data/buzztrax-0.10.2/src/lib/dllwrapper/elfdll.c:235: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 name[129]; data/buzztrax-0.10.2/src/lib/dllwrapper/elfdll.c:236: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 soname[129]; data/buzztrax-0.10.2/src/lib/dllwrapper/elfdll.c:241:3: [2] (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 string. strcat (soname, ".so"); data/buzztrax-0.10.2/src/lib/dllwrapper/ext.c:284:21: [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 ((fdzero = open ("/dev/zero", O_RDONLY)) == -1) { data/buzztrax-0.10.2/src/lib/dllwrapper/ext.c:414:13: [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). hFile = open ("/dev/zero", O_RDWR); data/buzztrax-0.10.2/src/lib/dllwrapper/ext.c:510:8: [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). fd = open ("/dev/zero", O_RDWR); data/buzztrax-0.10.2/src/lib/dllwrapper/ext.c:656:1: [2] (buffer) MultiByteToWideChar: Requires maximum length in CHARACTERS, not bytes (CWE-120). MultiByteToWideChar (UINT codepage, DWORD flags, LPCSTR src, INT srclen, data/buzztrax-0.10.2/src/lib/dllwrapper/ldt.h:77:17: [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. extern unsigned char ldt_flags_copy[LDT_SIZE]; data/buzztrax-0.10.2/src/lib/dllwrapper/ldt_keeper.c:278: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). ldt_fs->fd = open ("/dev/zero", O_RDWR); data/buzztrax-0.10.2/src/lib/dllwrapper/ldt_keeper.c:311:5: [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 (&global_ldt_fs, ldt_fs, sizeof (ldt_fs_t)); data/buzztrax-0.10.2/src/lib/dllwrapper/ldt_keeper.c:315:5: [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 (ldt_fs, &global_ldt_fs, sizeof (ldt_fs_t)); data/buzztrax-0.10.2/src/lib/dllwrapper/mmreg.h:67: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. unsigned char f4[8]; data/buzztrax-0.10.2/src/lib/dllwrapper/module.c:354: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 path[512]; data/buzztrax-0.10.2/src/lib/dllwrapper/module.c:356:10: [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 *unavailable_lib_names[100]; data/buzztrax-0.10.2/src/lib/dllwrapper/module.c:438:11: [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 *) 0x10004e86)[i] = 0x90; data/buzztrax-0.10.2/src/lib/dllwrapper/module.c:440:11: [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 *) 0x10005a23)[i] = 0x90; data/buzztrax-0.10.2/src/lib/dllwrapper/module.c:442:11: [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 *) 0x10005bff)[i] = 0x90; data/buzztrax-0.10.2/src/lib/dllwrapper/module.c:454:11: [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 *) 0x10007268)[i] = 0x90; data/buzztrax-0.10.2/src/lib/dllwrapper/module.c:456:11: [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 *) 0x10007e83)[i] = 0x90; data/buzztrax-0.10.2/src/lib/dllwrapper/module.c:458:11: [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 *) 0x1000806a)[i] = 0x90; data/buzztrax-0.10.2/src/lib/dllwrapper/module.c:463:11: [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 *) 0x10007688)[i] = 0x90; data/buzztrax-0.10.2/src/lib/dllwrapper/module.c:465:11: [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 *) 0x100082c3)[i] = 0x90; data/buzztrax-0.10.2/src/lib/dllwrapper/module.c:467:11: [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 *) 0x100084aa)[i] = 0x90; data/buzztrax-0.10.2/src/lib/dllwrapper/module.c:472:11: [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 *) 0x10007559)[i] = 0x90; data/buzztrax-0.10.2/src/lib/dllwrapper/module.c:474:11: [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 *) 0x100081c3)[i] = 0x90; data/buzztrax-0.10.2/src/lib/dllwrapper/module.c:476:11: [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 *) 0x1000839e)[i] = 0x90; data/buzztrax-0.10.2/src/lib/dllwrapper/module.c:495:11: [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 *) 0x6299e842)[i] = 0x90; // make_new_region ? data/buzztrax-0.10.2/src/lib/dllwrapper/module.c:497:11: [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 *) 0x6299e86d)[i] = 0x90; // call__call_CreateCompatibleDC ? data/buzztrax-0.10.2/src/lib/dllwrapper/module.c:499:11: [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 *) 0x6299e898)[i] = 0x90; // jmp_to_call_loadbitmap ? data/buzztrax-0.10.2/src/lib/dllwrapper/module.c:501:11: [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 *) 0x6299e8ac)[i] = 0x90; // call__calls_OLE_shit ? data/buzztrax-0.10.2/src/lib/dllwrapper/module.c:503:11: [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 *) 0x62a61b10)[i] = 0x90; // disable threads data/buzztrax-0.10.2/src/lib/dllwrapper/module.c:507:11: [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 *) 0x629487c5)[i] = 0x90; data/buzztrax-0.10.2/src/lib/dllwrapper/module.c:509:11: [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 *) 0x6294b275)[i] = 0x90; data/buzztrax-0.10.2/src/lib/dllwrapper/module.c:511:11: [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 *) 0x629a24b1)[i] = 0x90; data/buzztrax-0.10.2/src/lib/dllwrapper/module.c:513:11: [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 *) 0x629afc5a)[i] = 0x90; data/buzztrax-0.10.2/src/lib/dllwrapper/module.c:515:11: [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 *) 0x62af799c)[i] = 0x90; data/buzztrax-0.10.2/src/lib/dllwrapper/module.c:517:11: [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 *) 0x62af7efe)[i] = 0x90; data/buzztrax-0.10.2/src/lib/dllwrapper/module.c:519:11: [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 *) 0x62afa33e)[i] = 0x90; data/buzztrax-0.10.2/src/lib/dllwrapper/module.c:525:11: [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 *) 0x62afa3b8)[i] = 0x90; // terminate thread data/buzztrax-0.10.2/src/lib/dllwrapper/module.c:527:11: [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 *) 0x62af7f78)[i] = 0x90; // terminate thread data/buzztrax-0.10.2/src/lib/dllwrapper/module.c:529:11: [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 *) 0x629a13d5)[i] = 0x90; data/buzztrax-0.10.2/src/lib/dllwrapper/module.c:530: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 *) 0x6288e0ae)[0] = 0xc3; // font/dc remover data/buzztrax-0.10.2/src/lib/dllwrapper/module.c:532:11: [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 *) 0x6287a1ad)[i] = 0x90; // destroy window data/buzztrax-0.10.2/src/lib/dllwrapper/module.c:538:11: [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 *) 0x66a730cc)[i] = 0x90; // make_new_region data/buzztrax-0.10.2/src/lib/dllwrapper/module.c:540:11: [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 *) 0x66a730f7)[i] = 0x90; // call__call_CreateCompatibleDC data/buzztrax-0.10.2/src/lib/dllwrapper/module.c:542:11: [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 *) 0x66a73122)[i] = 0x90; // jmp_to_call_loadbitmap data/buzztrax-0.10.2/src/lib/dllwrapper/module.c:544:11: [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 *) 0x66a73131)[i] = 0x90; // call__calls_OLE_shit data/buzztrax-0.10.2/src/lib/dllwrapper/module.c:546:11: [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 *) 0x66aac852)[i] = 0x90; // disable threads data/buzztrax-0.10.2/src/lib/dllwrapper/module.c:551:11: [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 *) 0x66a68f6c)[i] = 0x90; // make_new_region data/buzztrax-0.10.2/src/lib/dllwrapper/module.c:553:11: [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 *) 0x66a68f97)[i] = 0x90; // call__call_CreateCompatibleDC data/buzztrax-0.10.2/src/lib/dllwrapper/module.c:555:11: [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 *) 0x66a68fc2)[i] = 0x90; // jmp_to_call_loadbitmap data/buzztrax-0.10.2/src/lib/dllwrapper/module.c:557:11: [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 *) 0x66a68fd1)[i] = 0x90; // call__calls_OLE_shit data/buzztrax-0.10.2/src/lib/dllwrapper/module.c:559:11: [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 *) 0x66ab4722)[i] = 0x90; // disable threads data/buzztrax-0.10.2/src/lib/dllwrapper/msacm.h:385: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 szFilterTag[ACMFILTERTAGDETAILS_FILTERTAG_CHARS]; data/buzztrax-0.10.2/src/lib/dllwrapper/msacm.h:386: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 szFilter[ACMFILTERDETAILS_FILTER_CHARS]; data/buzztrax-0.10.2/src/lib/dllwrapper/pe_image.c:110:29: [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. DPRINTF (" %s", (char *) RVA (name[j])); data/buzztrax-0.10.2/src/lib/dllwrapper/pe_image.c:224: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 module[256]; data/buzztrax-0.10.2/src/lib/dllwrapper/pe_image.c:236:5: [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 (module, forward, end - forward); data/buzztrax-0.10.2/src/lib/dllwrapper/pe_image.c:621:3: [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 (PE_SECTIONS (load_addr), PE_SECTIONS (hModule), data/buzztrax-0.10.2/src/lib/dllwrapper/pe_image.c:625:3: [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 (load_addr, hModule, lowest_fa); data/buzztrax-0.10.2/src/lib/dllwrapper/pe_image.c:842: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 filename[256]; data/buzztrax-0.10.2/src/lib/dllwrapper/pe_image.c:848: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). hFile = open (filename, O_RDONLY); data/buzztrax-0.10.2/src/lib/dllwrapper/pe_image.c:875:19: [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). hFile = open (filename, O_RDONLY); data/buzztrax-0.10.2/src/lib/dllwrapper/pe_resource.c:59: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 buf[10]; data/buzztrax-0.10.2/src/lib/dllwrapper/pe_resource.c:63:52: [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 GetResDirEntryW (resdirptr, (LPCWSTR) atoi (buf), root, data/buzztrax-0.10.2/src/lib/dllwrapper/registry.c:69:3: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy (regs[0].name, "HKLM"); data/buzztrax-0.10.2/src/lib/dllwrapper/registry.c:71:3: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy (regs[1].name, "HKCU"); data/buzztrax-0.10.2/src/lib/dllwrapper/registry.c:91:8: [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). fd = open (localregpathname, O_RDONLY); data/buzztrax-0.10.2/src/lib/dllwrapper/registry.c:111:22: [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. regs[i].value = (char *) malloc (regs[i].len + 1); data/buzztrax-0.10.2/src/lib/dllwrapper/registry.c:136:8: [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). fd = open (localregpathname, O_WRONLY | O_CREAT, 00666); data/buzztrax-0.10.2/src/lib/dllwrapper/registry.c:299:3: [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 (v->value, value, len); data/buzztrax-0.10.2/src/lib/dllwrapper/registry.c:339:5: [2] (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 string. strcat (localregpathname, "/.registry"); data/buzztrax-0.10.2/src/lib/dllwrapper/registry.c:456:5: [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 (data, t->value, (t->len < *count) ? t->len : *count); data/buzztrax-0.10.2/src/lib/dllwrapper/registry.c:523:7: [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 (data, v->value, (v->len < *count) ? v->len : *count); data/buzztrax-0.10.2/src/lib/dllwrapper/resource.c:313:11: [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 (buffer, abuf, abuflen); data/buzztrax-0.10.2/src/lib/dllwrapper/resource.c:365:5: [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 (buffer, p + 1, i * sizeof (WCHAR)); data/buzztrax-0.10.2/src/lib/dllwrapper/vfw.h:521: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 szName[64]; data/buzztrax-0.10.2/src/lib/dllwrapper/vfw.h:591: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 szFileType[64]; data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:182:1: [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 export_names[NUM_STUB_ENTRIES][32] = { data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:440:5: [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 (ans, memory, osize); data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:571: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 name[128]; data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:874:5: [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 (si, &cachedsi, sizeof (*si)); data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:972: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 buf[20]; data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:973: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 line[200]; data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:974:15: [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 *f = fopen ("/proc/cpuinfo", "r"); data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:1019:9: [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 (buf, "CPU %ld", cachedsi.dwProcessorType); data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:1050:9: [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 (buf, "CPU %ld", cachedsi.dwProcessorType); data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:1076:9: [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 (buf, "%d", x); data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:1109:3: [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 (si, &cachedsi, sizeof (*si)); data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:1810:3: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy (c->szCSDVersion, " B"); data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:1813:3: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy (c->szCSDVersion, "Service Pack 3"); data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:2014: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 line[200]; data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:2017:7: [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). f = fopen ("/proc/cpuinfo", "r"); data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:2415:5: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy (s, "Buzz.exe"); data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:2423:5: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy (s, "c:\\windows\\system\\"); data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:2426:7: [2] (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 string. strcat (s, "Buzz.exe"); data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:2718:3: [2] (buffer) TCHAR: 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. TCHAR szDevice[CCHDEVICENAME]; data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:2888: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 buffer[256]; data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:2901:3: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy (fullname, "Software\\IniFileMapping\\"); data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:2917:14: [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). result = atoi (buffer); data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:2946:3: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy (fullname, "Software\\IniFileMapping\\"); data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:2981:3: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy (fullname, "Software\\IniFileMapping\\"); data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:3314:3: [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 (lpTimeZoneInformation->StandardName, name, sizeof (name)); data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:3319:3: [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 (lpTimeZoneInformation->DaylightName, pname, sizeof (pname)); data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:3458:5: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy (field, "__GLOBAL_HEAP_SELECTED,1"); data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:3532:7: [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 (&com_object_table[i - 1].clsid, data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:3618:3: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy (path, "/tmp"); data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:3659:7: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy (lpfd->cAlternateFileName, "foobar.qtx"); data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:3692:5: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy (lpfd->cFileName, "QuickTime.qts"); data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:3693:5: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy (lpfd->cAlternateFileName, "QuickT~1.qts"); data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:3700:5: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy (lpfd->cFileName, "msms001.vwp"); data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:3701:5: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy (lpfd->cAlternateFileName, "msms001.vwp"); data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:3802: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 mask[16] = "/tmp/AP_XXXXXX"; data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:3810:12: [2] (tmpfile) mkstemp: Potential for temporary file vulnerability in some circumstances. Some older Unix-like systems create temp files with permission to write by all by default, so be sure to set the umask to override this. Also, some older Unix systems might fail to use O_EXCL when opening the file, so make sure that O_EXCL is used by the library (CWE-377). result = mkstemp (mask); data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:3811: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 (ps, "AP%d", result); data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:3836:5: [2] (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 string. strcat (tmp, "QuickTime.qts"); data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:3837:14: [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). result = open (tmp, O_RDONLY); data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:3847:14: [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). result = open (tmp, O_RDONLY); data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:3858:5: [2] (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 string. strcat (tmp, "APmpg4v1.apl"); data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:3859:14: [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). result = open (tmp, O_RDONLY); data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:3867:5: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy (tmp, "/tmp/"); data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:3882:9: [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). r = open (tmp, flg); data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:3898:9: [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). r = open (cs1, flg); data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:4034:3: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy (lpFilePart, "Quick123.qts"); data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:4355: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 hay[0x40]; data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:4365:3: [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 (dest, src, sizeof (MY_MEDIA_TYPE)); data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:4370:5: [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 (dest->pbFormat, src->pbFormat, dest->cbFormat); data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:4706:18: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. void *result = memcpy (dest, src, n); data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:5084:5: [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 (lpmem, &cached_memstatus, sizeof (MEMORYSTATUS)); data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:5088:7: [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). f = fopen ("/proc/meminfo", "r"); data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:5090: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 buffer[256]; data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:5146:3: [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 (&cached_memstatus, lpmem, sizeof (MEMORYSTATUS)); data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:5485: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 name[64]; data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:5491: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 name[64]; data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:5545:11: [2] (buffer) MultiByteToWideChar: Requires maximum length in CHARACTERS, not bytes (CWE-120). FF (MultiByteToWideChar, 427) data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:5701:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. FF (memcpy, -1) data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:5704:26: [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). {"atoi", -1, (void *) &atoi}, data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:5726:11: [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). FF (fopen, -1) data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:5849:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. FF (memcpy, -1) data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:5867:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. FF (memcpy, -1) // just test data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:5976: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 extcode[NUM_STUB_ENTRIES * 0x30]; data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:6000:3: [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 (answ, &unk_exp1, 0x64); data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:6004:3: [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 (answ, ext_stubs, 0x2f); // 0x2c is current size data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:6019:5: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy (export_names[pos], " too many unresolved exports"); data/buzztrax-0.10.2/src/lib/dllwrapper/winbase.h:1392:18: [2] (buffer) MultiByteToWideChar: Requires maximum length in CHARACTERS, not bytes (CWE-120). INT WINAPI MultiByteToWideChar(UINT,DWORD,LPCSTR,INT,LPWSTR,INT); data/buzztrax-0.10.2/src/lib/dllwrapper/winbase.h:1769:13: [2] (buffer) CopyMemory: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. #define CopyMemory RtlCopyMemory data/buzztrax-0.10.2/src/lib/dllwrapper/winnt.h:2335: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 Sourcename[8]; data/buzztrax-0.10.2/src/lib/dllwrapper/winnt.h:2662:52: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. #define RtlCopyMemory(Destination, Source, Length) memcpy((Destination),(Source),(Length)) data/buzztrax-0.10.2/src/lib/dllwrapper/winuser.h:1195: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 rgchMember[2]; data/buzztrax-0.10.2/src/lib/gst/osc-wave.c:102:3: [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 (dst, &src[off], ct * ss); data/buzztrax-0.10.2/src/lib/gst/osc-wave.c:131:3: [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 (dst, &src[off * 2], ct * ss); data/buzztrax-0.10.2/src/lib/ic/aseq-device.c:169:13: [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 (name, "control-change-7bit %u", key); data/buzztrax-0.10.2/src/lib/ic/aseq-device.c:183:13: [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 (name, "control-change-14bit %u", key); data/buzztrax-0.10.2/src/lib/ic/input-device.c:392:13: [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 ((fd = open (self->priv->devnode, O_RDONLY)) < 0) { data/buzztrax-0.10.2/src/lib/ic/midi-device.c:262:15: [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 (name, "control-change %u", key); data/buzztrax-0.10.2/src/lib/ic/midi-device.c:473:13: [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 ((io = open (self->priv->devnode, O_NONBLOCK | O_RDWR | O_SYNC)) > 0) { data/buzztrax-0.10.2/src/ui/cmd/cmd-application.c:447:25: [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 (!(output_file = fopen (output_file_name, "wb"))) { data/buzztrax-0.10.2/src/ui/edit/about-dialog.c:70: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 (copyright, _("Copyright \xc2\xa9 2003-%d Buzztrax developer team"), data/buzztrax-0.10.2/src/ui/edit/change-log.c:508:32: [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 (!(self->priv->log_file = fopen (self->priv->log_file_name, "wt"))) { data/buzztrax-0.10.2/src/ui/edit/change-log.c:601: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 ((log_file = fopen (log_path, "rt"))) { data/buzztrax-0.10.2/src/ui/edit/change-log.c:809:19: [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 ((log_file = fopen (log_name, "rt"))) { data/buzztrax-0.10.2/src/ui/edit/machine-properties-dialog.c:2625: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). if (atoi (prop)) { data/buzztrax-0.10.2/src/ui/edit/main-page-machines.c:2309:14: [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). type = atoi (s); data/buzztrax-0.10.2/src/ui/edit/main-page-machines.c:2409:44: [2] (integer) atol: 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). g_object_set (machine, "voices", atol (val), NULL); data/buzztrax-0.10.2/src/ui/edit/main-page-patterns.c:1323:22: [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). gint val = atoi (str); data/buzztrax-0.10.2/src/ui/edit/main-page-patterns.c:1468:19: [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 (gfloat) atoi (in); data/buzztrax-0.10.2/src/ui/edit/main-page-patterns.c:2441:31: [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). self->priv->base_octave = atoi (prop); data/buzztrax-0.10.2/src/ui/edit/main-page-patterns.c:3064: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 (oct_str, "%1d", i); data/buzztrax-0.10.2/src/ui/edit/main-page-patterns.c:3457:19: [2] (integer) atol: 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). guint ticks = atol (lines[0]); data/buzztrax-0.10.2/src/ui/edit/main-page-patterns.c:3556:15: [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). s_row = atoi (s); data/buzztrax-0.10.2/src/ui/edit/main-page-patterns.c:3559:15: [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). e_row = atoi (s); data/buzztrax-0.10.2/src/ui/edit/main-page-patterns.c:3562:15: [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). param = atoi (s); data/buzztrax-0.10.2/src/ui/edit/main-page-patterns.c:3596:15: [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). s_row = atoi (s); data/buzztrax-0.10.2/src/ui/edit/main-page-patterns.c:3599:15: [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). e_row = atoi (s); data/buzztrax-0.10.2/src/ui/edit/main-page-patterns.c:3602:15: [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). voice = atoi (s); data/buzztrax-0.10.2/src/ui/edit/main-page-patterns.c:3605:15: [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). param = atoi (s); data/buzztrax-0.10.2/src/ui/edit/main-page-patterns.c:3643:15: [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). s_row = atoi (s); data/buzztrax-0.10.2/src/ui/edit/main-page-patterns.c:3646:15: [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). e_row = atoi (s); data/buzztrax-0.10.2/src/ui/edit/main-page-patterns.c:3649:15: [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). param = atoi (s); data/buzztrax-0.10.2/src/ui/edit/main-page-patterns.c:3702:42: [2] (integer) atol: 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). g_object_set (pattern, "length", atol (val), NULL); data/buzztrax-0.10.2/src/ui/edit/main-page-patterns.c:3722:16: [2] (integer) atol: 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). length = atol (s); data/buzztrax-0.10.2/src/ui/edit/main-page-patterns.c:3760:16: [2] (integer) atol: 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). voices = atol (s); data/buzztrax-0.10.2/src/ui/edit/main-page-sequence.c:2062: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 (str, "%lu", bars / 2); data/buzztrax-0.10.2/src/ui/edit/main-page-sequence.c:2073: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 (str, "%lu", i); data/buzztrax-0.10.2/src/ui/edit/main-page-sequence.c:2339:24: [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). self->priv->bars = atoi (str); data/buzztrax-0.10.2/src/ui/edit/main-page-sequence.c:3487:24: [2] (integer) atol: 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). self->priv->bars = atol (prop); data/buzztrax-0.10.2/src/ui/edit/main-page-sequence.c:3492:30: [2] (integer) atol: 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). self->priv->pos_format = atol (prop); data/buzztrax-0.10.2/src/ui/edit/main-page-sequence.c:4277:13: [2] (integer) atol: 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). ticks = atol (lines[0]); data/buzztrax-0.10.2/src/ui/edit/main-page-sequence.c:4360:15: [2] (integer) atol: 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). track = atol (s); data/buzztrax-0.10.2/src/ui/edit/main-page-sequence.c:4363:15: [2] (integer) atol: 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). s_row = atol (s); data/buzztrax-0.10.2/src/ui/edit/main-page-sequence.c:4366:15: [2] (integer) atol: 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). e_row = atol (s); data/buzztrax-0.10.2/src/ui/edit/main-page-sequence.c:4400:15: [2] (integer) atol: 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). s_row = atol (s); data/buzztrax-0.10.2/src/ui/edit/main-page-sequence.c:4403:15: [2] (integer) atol: 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). e_row = atol (s); data/buzztrax-0.10.2/src/ui/edit/main-page-sequence.c:4442:59: [2] (integer) atol: 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). g_object_set (self->priv->sequence, "loop-start", atol (val), NULL); data/buzztrax-0.10.2/src/ui/edit/main-page-sequence.c:4445:57: [2] (integer) atol: 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). g_object_set (self->priv->sequence, "loop-end", atol (val), NULL); data/buzztrax-0.10.2/src/ui/edit/main-page-sequence.c:4448:55: [2] (integer) atol: 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). g_object_set (self->priv->sequence, "length", atol (val), NULL); data/buzztrax-0.10.2/src/ui/edit/main-page-sequence.c:4467:12: [2] (integer) atol: 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). ix = atol (s); data/buzztrax-0.10.2/src/ui/edit/main-page-sequence.c:4491:12: [2] (integer) atol: 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). ix = atol (s); data/buzztrax-0.10.2/src/ui/edit/main-page-sequence.c:4506:16: [2] (integer) atol: 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). ix_cur = atol (s); data/buzztrax-0.10.2/src/ui/edit/main-page-sequence.c:4509:16: [2] (integer) atol: 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). ix_new = atol (s); data/buzztrax-0.10.2/src/ui/edit/main-page-waves.c:673:19: [2] (integer) atol: 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). gulong rate = atol (new_text); data/buzztrax-0.10.2/src/ui/edit/main-page-waves.c:696:25: [2] (integer) atol: 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). gulong loop_start = atol (new_text), loop_end; data/buzztrax-0.10.2/src/ui/edit/main-page-waves.c:721:35: [2] (integer) atol: 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). gulong loop_start, loop_end = atol (new_text); data/buzztrax-0.10.2/src/ui/edit/main-pages.c:87:18: [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). guint page = atoi (prop); data/buzztrax-0.10.2/src/ui/edit/pattern-editor.c:128: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 (buf, "%01X", v != 0 ? 1 : 0); data/buzztrax-0.10.2/src/ui/edit/pattern-editor.c:140: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 (buf, "%02X", v & 255); data/buzztrax-0.10.2/src/ui/edit/pattern-editor.c:152: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 (buf, "%04X", v & 65535); data/buzztrax-0.10.2/src/ui/edit/pattern-editor.c:163: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 (buf, "%-8f", value); data/buzztrax-0.10.2/src/ui/edit/pattern-editor.c:198: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 (buf, "%04X", row); data/buzztrax-0.10.2/src/ui/edit/pattern-properties-dialog.c:103:24: [2] (integer) atol: 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). self->priv->length = atol (gtk_entry_get_text (GTK_ENTRY (editable))); data/buzztrax-0.10.2/src/ui/edit/playback-controller-socket.c:182:15: [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). atoi (&cmd[5]))); data/buzztrax-0.10.2/src/ui/edit/playback-controller-socket.c:234:29: [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). volume = ((gdouble) atoi (&subcmd[7])) / 100.0; data/buzztrax-0.10.2/src/ui/edit/settings-page-audiodevices.c:205:7: [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). atoi (gtk_combo_box_text_get_active_text (GTK_COMBO_BOX_TEXT (self-> data/buzztrax-0.10.2/src/ui/edit/signal-analysis-dialog.c:446: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 (str, "<small>%d</small>", abs (v2)); data/buzztrax-0.10.2/src/ui/edit/signal-analysis-dialog.c:520: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 (str, "<small>0</small>"); data/buzztrax-0.10.2/src/ui/edit/signal-analysis-dialog.c:525: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 (str, "<small>%d</small>", m); data/buzztrax-0.10.2/src/ui/edit/signal-analysis-dialog.c:544:9: [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 (str, "<small>%d</small>", (gint) end); data/buzztrax-0.10.2/src/ui/edit/signal-analysis-dialog.c:612: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 (str, "<small>100</small>"); data/buzztrax-0.10.2/src/ui/edit/tip-dialog.c:186:12: [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). ix = atoi (p1); data/buzztrax-0.10.2/src/ui/edit/tip-dialog.c:192:10: [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). ix = atoi (p1); data/buzztrax-0.10.2/src/ui/edit/wave-list-model.c:274:7: [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 (hstr, "%02x", pos + 1); data/buzztrax-0.10.2/tests/bt-check-ui.c:126: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 ((pid_file = fopen (lock_file, "rt"))) { data/buzztrax-0.10.2/tests/bt-check-ui.c:131:17: [2] (integer) atol: 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). pid = atol (pid_str); data/buzztrax-0.10.2/tests/bt-check-ui.c:684:7: [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 (num_str, "%d", num); data/buzztrax-0.10.2/tests/bt-check.c:164:19: [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 (!(logfile = fopen (__log_file_name, "r"))) data/buzztrax-0.10.2/tests/bt-check.c:208:20: [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 ((logfile = fopen (__log_file_name, "a")) data/buzztrax-0.10.2/tests/bt-check.c:209: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). || (logfile = fopen (__log_file_name, "w"))) { data/buzztrax-0.10.2/tests/bt-check.c:556: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). input_file = fopen (input_file_name, "rb"); data/buzztrax-0.10.2/tests/bt-check.c:1276:12: [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 ((f = fopen (fn, "wb"))) { data/buzztrax-0.10.2/tests/lib/bml/bmltest_info.h:31:15: [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((bmh=bml(open(libpath)))) { data/buzztrax-0.10.2/tests/lib/bml/bmltest_process.h:35:15: [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((bmh=bml(open(libpath)))) { data/buzztrax-0.10.2/tests/lib/bml/bmltest_process.h:43: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. const char *type_name[3]={"","generator","effect"}; data/buzztrax-0.10.2/tests/lib/bml/bmltest_process.h:65:14: [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). infile=fopen(infilename,"rb"); data/buzztrax-0.10.2/tests/lib/bml/bmltest_process.h:66:15: [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). outfile=fopen(outfilename,"wb"); data/buzztrax-0.10.2/tests/lib/core/e-core.c:36:12: [2] (tmpfile) tmpfile: Function tmpfile() has a security flaw on some systems (e.g., older System V systems) (CWE-377). stdout = tmpfile (); data/buzztrax-0.10.2/tests/lib/core/t-core.c:36:12: [2] (tmpfile) tmpfile: Function tmpfile() has a security flaw on some systems (e.g., older System V systems) (CWE-377). stdout = tmpfile (); data/buzztrax-0.10.2/tests/lib/gst/e-envelope-ad.c:81: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 (name, "attack=%4.2f", attack); data/buzztrax-0.10.2/tests/lib/gst/e-envelope-d.c:81: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 (name, "%4.2f", curve); data/buzztrax-0.10.2/tests/lib/ic/e-ic.c:36:12: [2] (tmpfile) tmpfile: Function tmpfile() has a security flaw on some systems (e.g., older System V systems) (CWE-377). stdout = tmpfile (); data/buzztrax-0.10.2/tests/lib/ic/t-ic.c:36:12: [2] (tmpfile) tmpfile: Function tmpfile() has a security flaw on some systems (e.g., older System V systems) (CWE-377). stdout = tmpfile (); data/buzztrax-0.10.2/tests/ui/edit/e-change-log.c:51:17: [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). self->val = atoi (&data[8]); data/buzztrax-0.10.2/tests/ui/edit/e-change-log.c:57:23: [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). self->data_size = atoi (&data[9]); data/buzztrax-0.10.2/tests/ui/edit/e-change-log.c:64:15: [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). gint ix = atoi (&data[9]); data/buzztrax-0.10.2/tests/ui/edit/e-change-log.c:73:15: [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). gint ix = atoi (&data[9]); data/buzztrax-0.10.2/tests/ui/edit/e-main-page-machines.c:186: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 (buf, data/buzztrax-0.10.2/tests/ui/edit/e-main-page-machines.c:189: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 (buf, data/buzztrax-0.10.2/src/gst/bml/common.c:396:16: [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). size = strlen (preset_name); data/buzztrax-0.10.2/src/gst/bml/common.c:412:26: [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). size = comment ? strlen (comment) : 0; data/buzztrax-0.10.2/src/gst/bml/plugin.c:105:19: [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). len = strlen (entry); data/buzztrax-0.10.2/src/gst/bml/plugin.c:127:26: [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). end = &beg[strlen ("/Generator")]; data/buzztrax-0.10.2/src/gst/bml/plugin.c:128:34: [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). memmove (beg, end, strlen (end) + 1); data/buzztrax-0.10.2/src/gst/bml/plugin.c:131:26: [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). end = &beg[strlen ("/Effect")]; data/buzztrax-0.10.2/src/gst/bml/plugin.c:132:34: [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). memmove (beg, end, strlen (end) + 1); data/buzztrax-0.10.2/src/gst/bml/plugin.c:135:26: [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). end = &beg[strlen ("/Gear")]; data/buzztrax-0.10.2/src/gst/bml/plugin.c:136:34: [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). memmove (beg, end, strlen (end) + 1); data/buzztrax-0.10.2/src/gst/sidsyn/sidemu.cc:167:11: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). reg8 SID::read(reg8 offset) data/buzztrax-0.10.2/src/gst/sidsyn/sidemu.cc:350:29: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). state.sid_register[j] = read(j); data/buzztrax-0.10.2/src/gst/sidsyn/sidemu.h:54:8: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). reg8 read(reg8 offset); data/buzztrax-0.10.2/src/lib/bml/BuzzMachineLoader/MachineDataImpl.h:65:57: [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). void Write(char const *str) { Write((void *)str, (int)(strlen(str)+1)); } data/buzztrax-0.10.2/src/lib/bml/bml.c:138:40: [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). sizeof (sa_family_t) + strlen (socket_file) + 1)) == 0) { data/buzztrax-0.10.2/src/lib/bml/bml.c:433:7: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (desc, bmlipc_read_string (&bi), 1024); data/buzztrax-0.10.2/src/lib/bml/bml.c:465:7: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (desc, bmlipc_read_string (&bi), 1024); data/buzztrax-0.10.2/src/lib/bml/bmlhost.c:432:34: [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). sizeof (sa_family_t) + strlen (socket_file) + 1) != 0) { data/buzztrax-0.10.2/src/lib/bml/bmlipc.c:162:32: [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). if (mem_write (self, buffer, strlen (buffer) + 1, 1) != 1) { data/buzztrax-0.10.2/src/lib/bml/strpool.c:282:11: [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). key_len = strlen (key); data/buzztrax-0.10.2/src/lib/bml/strpool.c:284:13: [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). value_len = strlen (value); data/buzztrax-0.10.2/src/lib/bml/strpool.c:299:13: [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). if (strlen (pair->value) < value_len) { data/buzztrax-0.10.2/src/lib/core/machine.c:853:17: [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). g_alloca (strlen (parent_name) + 2 + strlen (element_name)); data/buzztrax-0.10.2/src/lib/core/machine.c:853: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). g_alloca (strlen (parent_name) + 2 + strlen (element_name)); data/buzztrax-0.10.2/src/lib/core/machine.c:3247:18: [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). gint len = strlen (plugin_name); data/buzztrax-0.10.2/src/lib/core/setup.c:1896:26: [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). gchar *const ptr = &id[strlen (base_name) + 1]; data/buzztrax-0.10.2/src/lib/core/song-info.c:625:13: [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). if (strlen (dts) == DTS_LEN) { data/buzztrax-0.10.2/src/lib/core/song-info.c:642:13: [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). if (strlen (dts) == DTS_LEN) { data/buzztrax-0.10.2/src/lib/core/song-info.c:729:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (self->priv->change_dts, self->priv->create_dts, DTS_LEN + 1); data/buzztrax-0.10.2/src/lib/core/song-io-native-bzt.c:201:22: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). size = read (fd, bytes, buf.st_size); data/buzztrax-0.10.2/src/lib/core/song-io.c:417:28: [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). status = g_alloca (1 + strlen (msg) + strlen (self->priv->file_name)); data/buzztrax-0.10.2/src/lib/core/song-io.c:417:43: [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). status = g_alloca (1 + strlen (msg) + strlen (self->priv->file_name)); data/buzztrax-0.10.2/src/lib/core/song-io.c:421:28: [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). status = g_alloca (1 + strlen (msg) + 4); data/buzztrax-0.10.2/src/lib/core/song-io.c:488:39: [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). gchar *const status = g_alloca (1 + strlen (msg) + data/buzztrax-0.10.2/src/lib/core/song-io.c:489:7: [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). strlen (self->priv->file_name)); data/buzztrax-0.10.2/src/lib/core/song.c:1113:38: [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). gchar *const file_name = g_alloca (strlen (song_name) + 10); data/buzztrax-0.10.2/src/lib/core/songio/bsl/song-io-buzz.c:1553:28: [1] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant character. valuestr = strcpy (value, "1"); data/buzztrax-0.10.2/src/lib/core/songio/bsl/song-io-buzz.c:1638:30: [1] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant character. valuestr = strcpy (value, "1"); data/buzztrax-0.10.2/src/lib/core/wave.c:361:27: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ssize_t bytes = read (self->priv->fd, data, buf.st_size); data/buzztrax-0.10.2/src/lib/core/wire.c:211:17: [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). g_alloca (strlen (parent_name) + 2 + strlen (element_name)); data/buzztrax-0.10.2/src/lib/core/wire.c:211: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). g_alloca (strlen (parent_name) + 2 + strlen (element_name)); data/buzztrax-0.10.2/src/lib/dllwrapper/afl.c:296:41: [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). padid->pszFileName = (char *) malloc (strlen (pszFileName) + 1); data/buzztrax-0.10.2/src/lib/dllwrapper/driver.c:67:37: [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). win32_def_path = (char *) malloc (strlen (path) + 1); data/buzztrax-0.10.2/src/lib/dllwrapper/elfdll.c:67:13: [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). namelen = strlen (libname); data/buzztrax-0.10.2/src/lib/dllwrapper/elfdll.c:77:13: [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). len = strlen (ldpath); data/buzztrax-0.10.2/src/lib/dllwrapper/elfdll.c:89:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (buffer, from, len); data/buzztrax-0.10.2/src/lib/dllwrapper/elfdll.c:190:26: [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). wm->filename = malloc (strlen (path) + 1); data/buzztrax-0.10.2/src/lib/dllwrapper/ext.c:128:13: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). *result = read (handle, mem, size); data/buzztrax-0.10.2/src/lib/dllwrapper/ext.c:141:10: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). return strncpy (dest, src, num); data/buzztrax-0.10.2/src/lib/dllwrapper/ext.c:147:10: [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). return strlen (s); data/buzztrax-0.10.2/src/lib/dllwrapper/ext.c:221:24: [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). char *answ = malloc (strlen (string) + 1); data/buzztrax-0.10.2/src/lib/dllwrapper/ext.c:233:10: [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). size = strlen (string); data/buzztrax-0.10.2/src/lib/dllwrapper/ext.c:344:19: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if ((read_ret = read (fd, ret, size_low)) != size_low) { data/buzztrax-0.10.2/src/lib/dllwrapper/ext.c:448:26: [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). fm->name = malloc (strlen (name) + 1); data/buzztrax-0.10.2/src/lib/dllwrapper/module.c:389:9: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (path, libname, sizeof (path) - 1); data/buzztrax-0.10.2/src/lib/dllwrapper/module.c:392:9: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (path, win32_def_path, sizeof (path) - 2); data/buzztrax-0.10.2/src/lib/dllwrapper/module.c:395:7: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (path, listpath[i], 300); data/buzztrax-0.10.2/src/lib/dllwrapper/module.c:400:7: [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 (path, "/"); data/buzztrax-0.10.2/src/lib/dllwrapper/module.c:401:7: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. strncat (path, libname, 100); data/buzztrax-0.10.2/src/lib/dllwrapper/pe_image.c:811:26: [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). wm->filename = malloc (strlen (filename) + 1); data/buzztrax-0.10.2/src/lib/dllwrapper/pe_image.c:847:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (filename, name, sizeof (filename)); data/buzztrax-0.10.2/src/lib/dllwrapper/pe_image.c:872:13: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (filename, dp->d_name, sizeof (filename)); data/buzztrax-0.10.2/src/lib/dllwrapper/registry.c:97:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). res = read (fd, ®_size, 4); data/buzztrax-0.10.2/src/lib/dllwrapper/registry.c:101:11: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). res = read (fd, ®s[i].type, 4); data/buzztrax-0.10.2/src/lib/dllwrapper/registry.c:102:11: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). res = read (fd, &len, 4); data/buzztrax-0.10.2/src/lib/dllwrapper/registry.c:108:11: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). res = read (fd, regs[i].name, len); data/buzztrax-0.10.2/src/lib/dllwrapper/registry.c:110:11: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). res = read (fd, ®s[i].len, 4); data/buzztrax-0.10.2/src/lib/dllwrapper/registry.c:117:11: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). res = read (fd, regs[i].value, regs[i].len); data/buzztrax-0.10.2/src/lib/dllwrapper/registry.c:144:20: [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). unsigned len = strlen (regs[i].name); data/buzztrax-0.10.2/src/lib/dllwrapper/registry.c:242:30: [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). t->name = (char *) malloc (strlen (name) + 1); data/buzztrax-0.10.2/src/lib/dllwrapper/registry.c:260:32: [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). full_name = (char *) malloc (strlen (t->name) + strlen (subkey) + 10); data/buzztrax-0.10.2/src/lib/dllwrapper/registry.c:260:51: [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). full_name = (char *) malloc (strlen (t->name) + strlen (subkey) + 10); data/buzztrax-0.10.2/src/lib/dllwrapper/registry.c:262:3: [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 (full_name, "\\"); data/buzztrax-0.10.2/src/lib/dllwrapper/registry.c:300:30: [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). v->name = (char *) malloc (strlen (fullname) + 1); data/buzztrax-0.10.2/src/lib/dllwrapper/registry.c:319:39: [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). localregpathname = (char *) malloc (strlen (xine_get_homedir ()) + 21); data/buzztrax-0.10.2/src/lib/dllwrapper/registry.c:337:41: [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). localregpathname = (char *) malloc (strlen (pthn) + 20); data/buzztrax-0.10.2/src/lib/dllwrapper/registry.c:368:32: [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). full_name = (char *) malloc (strlen (t->name) + strlen (subkey) + 10); data/buzztrax-0.10.2/src/lib/dllwrapper/registry.c:368:51: [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). full_name = (char *) malloc (strlen (t->name) + strlen (subkey) + 10); data/buzztrax-0.10.2/src/lib/dllwrapper/registry.c:370:3: [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 (full_name, "\\"); data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:656:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (mlist->name, name, 127); data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:993: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). if (!lstrncmpiA (line, "cpu family", strlen ("cpu family"))) { data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:1023:37: [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). if (!lstrncmpiA (line, "cpu", strlen ("cpu"))) { data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:1053:42: [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). if (!lstrncmpiA (line, "fdiv_bug", strlen ("fdiv_bug"))) { data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:1059:37: [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). if (!lstrncmpiA (line, "fpu", strlen ("fpu"))) { data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:1065:43: [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). if (!lstrncmpiA (line, "processor", strlen ("processor"))) { data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:1078:42: [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). if (!lstrncmpiA (line, "stepping", strlen ("stepping"))) { data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:1084:40: [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). if ((!lstrncmpiA (line, "flags", strlen ("flags"))) data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:1085:46: [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). || (!lstrncmpiA (line, "features", strlen ("features")))) { data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:1870:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (mlist->name, name, 64); data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:2031:42: [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). if (!strncasecmp (line, "cpu MHz", strlen ("cpu MHz")) data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:2602:3: [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 (time); data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:2736:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy (lpmiex->szDevice, "Monitor1", CCHDEVICENAME); data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:2768:3: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. Risk is low because the source is a constant string. strncat (classname, "QuickTime", maxcount); data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:2770:33: [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). win, classname, maxcount, strlen (classname)); data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:2771:10: [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). return strlen (classname); data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:2899:29: [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). (char *) malloc (50 + strlen (appname) + strlen (keyname) + data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:2899:48: [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). (char *) malloc (50 + strlen (appname) + strlen (keyname) + data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:2900:7: [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). strlen (filename)); data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:2903:3: [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 (fullname, "\\"); data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:2905:3: [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 (fullname, "\\"); data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:2944:29: [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). (char *) malloc (50 + strlen (appname) + strlen (keyname) + data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:2944:48: [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). (char *) malloc (50 + strlen (appname) + strlen (keyname) + data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:2945:7: [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). strlen (filename)); data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:2948:3: [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 (fullname, "\\"); data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:2950:3: [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 (fullname, "\\"); data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:2958:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (dest, def_val, size); data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:2959:9: [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). if (strlen (def_val) < size) data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:2960:14: [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). size = strlen (def_val); data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:2979:29: [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). (char *) malloc (50 + strlen (appname) + strlen (keyname) + data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:2979:48: [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). (char *) malloc (50 + strlen (appname) + strlen (keyname) + data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:2980:7: [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). strlen (filename)); data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:2983:3: [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 (fullname, "\\"); data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:2985:3: [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 (fullname, "\\"); data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:2988:7: [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). strlen (string)); data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:3460:20: [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). field, size, strlen (field)); data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:3461:10: [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). return strlen (field); data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:3732:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (s, windir, c); data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:3733:22: [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). result = 1 + ((c < strlen (windir)) ? c : strlen (windir)); data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:3733:45: [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). result = 1 + ((c < strlen (windir)) ? c : strlen (windir)); data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:3744:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (s, curdir, c); data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:3745:22: [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). result = 1 + ((c < strlen (curdir)) ? c : strlen (curdir)); data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:3745:45: [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). result = 1 + ((c < strlen (curdir)) ? c : strlen (curdir)); data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:3770:8: [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). if (!strlen (p)) { data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:3812:22: [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). TRACE (" => %d\n", strlen (ps)); data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:3813:10: [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). return strlen (ps); data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:3827:18: [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). if ((!cs1) || (strlen (cs1) < 2)) data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:3833:34: [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). char *tmp = (char *) malloc (strlen (win32_def_path) + 50); data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:3835:5: [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 (tmp, "/"); data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:3843:34: [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). char *tmp = (char *) malloc (strlen (win32_def_path) + 250); data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:3855:34: [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). char *tmp = (char *) malloc (strlen (win32_def_path) + 50); data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:3857:5: [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 (tmp, "/"); data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:3866:39: [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). char *tmp = (char *) malloc (20 + strlen (cs1)); data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:4012:3: [1] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant character. strcpy (lpBuffer, "."); data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:4046:10: [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). return strlen (lpBuffer); data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:4056:10: [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). return strlen (shortpath); data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:4064:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). result = read (h, pv, size); data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:4173:17: [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). LONG result = strlen (str1); data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:4190:7: [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). if (strlen (str2) > len) data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:4191:20: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). result = (int) strncpy (str1, str2, len); data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:4195:12: [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). len, strlen (str2), result); data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:4596:16: [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). int result = strlen (str); data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:4612:18: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). char *result = strncpy (str1, str2, x); data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:4647:11: [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). int l = strlen (str1); data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:5184:31: [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). if (type == MB_ICONHAND && !strlen (text) && !strlen (title)) data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:5184:49: [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). if (type == MB_ICONHAND && !strlen (text) && !strlen (title)) data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:5250:47: [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). TRACE ("SysStringByteLen(%p) => %d\n", str, strlen (str)); data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:5251:10: [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). return strlen (str); data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:5684:11: [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). FF (strlen, -1) data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:5686:11: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). FF (strncpy, -1) data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:6125:7: [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). if (strlen (name) > 31) { data/buzztrax-0.10.2/src/lib/dllwrapper/win32.c:6127:15: [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). name, strlen (name)); data/buzztrax-0.10.2/src/lib/dllwrapper/winbase.h:1744:13: [1] (buffer) lstrcpyn: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). #define lstrcpyn WINELIB_NAME_AW(lstrcpyn) data/buzztrax-0.10.2/src/lib/dllwrapper/winbase.h:1744:38: [1] (buffer) lstrcpyn: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). #define lstrcpyn WINELIB_NAME_AW(lstrcpyn) data/buzztrax-0.10.2/src/lib/gst/toneconversion.c:81:8: [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). if ((strlen (note) != 3)) data/buzztrax-0.10.2/src/lib/ic/midi-device.c:487:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ct = read (io, data, 15); data/buzztrax-0.10.2/src/ui/edit/about-dialog.c:68:17: [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). g_alloca (strlen (_("Copyright \xc2\xa9 2003-%d Buzztrax developer team")) data/buzztrax-0.10.2/src/ui/edit/machine-actions.c:57:9: [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). strlen (element_description)); data/buzztrax-0.10.2/src/ui/edit/machine-actions.c:58:56: [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). str_author = g_markup_escape_text (element_author, strlen (element_author)); data/buzztrax-0.10.2/src/ui/edit/machine-menu.c:208:30: [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). klass_name = &klass_name[strlen (root)]; data/buzztrax-0.10.2/src/ui/edit/machine-menu.c:220:16: [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). len += strlen (names[i]); data/buzztrax-0.10.2/src/ui/edit/machine-menu.c:297:18: [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). gint len = strlen (plugin_name); data/buzztrax-0.10.2/src/ui/edit/machine-properties-dialog.c:262:9: [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). strlen (data)); data/buzztrax-0.10.2/src/ui/edit/machine-properties-dialog.c:557:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (_str, str, 20); data/buzztrax-0.10.2/src/ui/edit/machine-properties-dialog.c:582:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (_str, str, 20); data/buzztrax-0.10.2/src/ui/edit/machine-properties-dialog.c:608:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (_str, str, 30); data/buzztrax-0.10.2/src/ui/edit/machine-properties-dialog.c:1708:31: [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). signal_name = g_alloca (9 + strlen (property->name)); data/buzztrax-0.10.2/src/ui/edit/machine-properties-dialog.c:1740:31: [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). signal_name = g_alloca (9 + strlen (property->name)); data/buzztrax-0.10.2/src/ui/edit/machine-properties-dialog.c:1772:31: [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). signal_name = g_alloca (9 + strlen (property->name)); data/buzztrax-0.10.2/src/ui/edit/machine-properties-dialog.c:1809:31: [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). signal_name = g_alloca (9 + strlen (property->name)); data/buzztrax-0.10.2/src/ui/edit/machine-properties-dialog.c:1844:31: [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). signal_name = g_alloca (9 + strlen (property->name)); data/buzztrax-0.10.2/src/ui/edit/machine-properties-dialog.c:1922:31: [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). signal_name = g_alloca (9 + strlen (property->name)); data/buzztrax-0.10.2/src/ui/edit/machine-properties-dialog.c:1959:31: [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). signal_name = g_alloca (9 + strlen (property->name)); data/buzztrax-0.10.2/src/ui/edit/main-page-patterns.c:3353:9: [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). strlen (data)); data/buzztrax-0.10.2/src/ui/edit/main-page-sequence.c:3997:9: [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). strlen (data)); data/buzztrax-0.10.2/src/ui/edit/main-statusbar.c:256:13: [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). gchar str[strlen ("CPU: 000 %, ML: 00000 ms") + 3]; data/buzztrax-0.10.2/src/ui/edit/main-statusbar.c:258:13: [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). gchar str[strlen ("CPU: 000 %") + 3]; data/buzztrax-0.10.2/src/ui/edit/main-window.c:111:21: [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). file_name[strlen (file_name) - (strlen (info->formats[ix].extension) + data/buzztrax-0.10.2/src/ui/edit/main-window.c:111:43: [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). file_name[strlen (file_name) - (strlen (info->formats[ix].extension) + data/buzztrax-0.10.2/src/ui/edit/missing-framework-elements-dialog.c:90:19: [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). length += 2 + strlen ((gchar *) (node->data)); data/buzztrax-0.10.2/src/ui/edit/missing-framework-elements-dialog.c:289:25: [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). offset = length = strlen (machine_ignore_list); data/buzztrax-0.10.2/src/ui/edit/missing-framework-elements-dialog.c:296:25: [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). length += 2 + strlen ((gchar *) (node->data)); data/buzztrax-0.10.2/src/ui/edit/missing-song-elements-dialog.c:77:19: [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). length += 2 + strlen ((gchar *) (node->data)); data/buzztrax-0.10.2/src/ui/edit/pattern-editor.c:225:22: [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). max_chars = MIN (strlen (cgrp->name), max_chars); data/buzztrax-0.10.2/src/ui/edit/render-dialog.c:178:15: [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). file_name[strlen (file_name) - strlen (enum_value->value_name)] = '\0'; data/buzztrax-0.10.2/src/ui/edit/render-dialog.c:178:36: [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). file_name[strlen (file_name) - strlen (enum_value->value_name)] = '\0'; data/buzztrax-0.10.2/src/ui/edit/render-dialog.c:443:14: [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). fn[strlen (fn) - strlen (enum_value->value_name)] = '\0'; data/buzztrax-0.10.2/src/ui/edit/render-dialog.c:443:28: [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). fn[strlen (fn) - strlen (enum_value->value_name)] = '\0'; data/buzztrax-0.10.2/src/ui/edit/signal-analysis-dialog.c:921:20: [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). name = g_alloca (strlen ("analyzer_") + strlen (factory_name) + 16); data/buzztrax-0.10.2/src/ui/edit/signal-analysis-dialog.c:921:43: [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). name = g_alloca (strlen ("analyzer_") + strlen (factory_name) + 16); data/buzztrax-0.10.2/tests/bt-check.c:190:16: [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). guint sl = strlen (message); data/buzztrax-0.10.2/tests/bt-check.c:290:24: [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). msg = g_alloca (85 + strlen (log_domain) + strlen (level) + strlen (message)); data/buzztrax-0.10.2/tests/bt-check.c:290:46: [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). msg = g_alloca (85 + strlen (log_domain) + strlen (level) + strlen (message)); data/buzztrax-0.10.2/tests/bt-check.c:290:63: [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). msg = g_alloca (85 + strlen (log_domain) + strlen (level) + strlen (message)); data/buzztrax-0.10.2/tests/bt-check.c:349:24: [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). msg = g_alloca (95 + strlen (cat_str) + strlen (level_str) + strlen (message) data/buzztrax-0.10.2/tests/bt-check.c:349:43: [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). msg = g_alloca (95 + strlen (cat_str) + strlen (level_str) + strlen (message) data/buzztrax-0.10.2/tests/bt-check.c:349:64: [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). msg = g_alloca (95 + strlen (cat_str) + strlen (level_str) + strlen (message) data/buzztrax-0.10.2/tests/bt-check.c:350:9: [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). + strlen (file) + strlen (function) + strlen (obj_str)); data/buzztrax-0.10.2/tests/bt-check.c:350:25: [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). + strlen (file) + strlen (function) + strlen (obj_str)); data/buzztrax-0.10.2/tests/bt-check.c:350:45: [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). + strlen (file) + strlen (function) + strlen (obj_str)); data/buzztrax-0.10.2/tests/bt-check.c:418:9: [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). log[strlen (log) - 2] = '\0'; data/buzztrax-0.10.2/tests/lib/bml/bmltest_info.c:94:12: [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). sl = strlen (lib_name); data/buzztrax-0.10.2/tests/lib/bml/bmltest_process.c:86:12: [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). sl = strlen (lib_name); data/buzztrax-0.10.2/tests/ui/edit/e-change-log.c:544:43: [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). g_file_set_contents (log_name, content, strlen (content), NULL); data/buzztrax-0.10.2/tests/ui/edit/t-change-log.c:75:43: [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). g_file_set_contents (log_name, content, strlen (content), NULL); ANALYSIS SUMMARY: Hits = 693 Lines analyzed = 172135 in approximately 4.32 seconds (39849 lines/second) Physical Source Lines of Code (SLOC) = 120642 Hits@level = [0] 207 [1] 203 [2] 327 [3] 44 [4] 119 [5] 0 Hits@level+ = [0+] 900 [1+] 693 [2+] 490 [3+] 163 [4+] 119 [5+] 0 Hits/KSLOC@level+ = [0+] 7.46009 [1+] 5.74427 [2+] 4.0616 [3+] 1.3511 [4+] 0.986389 [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.