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/denemo-2.4.0/tools/cairo_svg2path.c
Examining data/denemo-2.4.0/tools/annotator.c
Examining data/denemo-2.4.0/tools/pageturner.c
Examining data/denemo-2.4.0/tools/twopageturner.c
Examining data/denemo-2.4.0/tools/pageswitcher.c
Examining data/denemo-2.4.0/tools/generate_source.c
Examining data/denemo-2.4.0/include/denemo/denemo_types.h
Examining data/denemo-2.4.0/include/denemo/denemo_api.h
Examining data/denemo-2.4.0/include/denemo/denemo_objects.h
Examining data/denemo-2.4.0/include/denemo/denemo.h
Examining data/denemo-2.4.0/src/core/menusystem.c
Examining data/denemo-2.4.0/src/core/prefops.h
Examining data/denemo-2.4.0/src/core/external.c
Examining data/denemo-2.4.0/src/core/exportxml.c
Examining data/denemo-2.4.0/src/core/palettestorage.h
Examining data/denemo-2.4.0/src/core/kbd-custom.h
Examining data/denemo-2.4.0/src/core/importxml.c
Examining data/denemo-2.4.0/src/core/graphicseditor.c
Examining data/denemo-2.4.0/src/core/keyboard.h
Examining data/denemo-2.4.0/src/core/twoints.h
Examining data/denemo-2.4.0/src/core/cache.c
Examining data/denemo-2.4.0/src/core/binreloc.h
Examining data/denemo-2.4.0/src/core/keymapio.h
Examining data/denemo-2.4.0/src/core/exportxml.h
Examining data/denemo-2.4.0/src/core/view.h
Examining data/denemo-2.4.0/src/core/kbd-custom.c
Examining data/denemo-2.4.0/src/core/cache.h
Examining data/denemo-2.4.0/src/core/binreloc.c
Examining data/denemo-2.4.0/src/core/prefops.c
Examining data/denemo-2.4.0/src/core/palettestorage.c
Examining data/denemo-2.4.0/src/core/keyboard.c
Examining data/denemo-2.4.0/src/core/graphicseditor.h
Examining data/denemo-2.4.0/src/core/importxml.h
Examining data/denemo-2.4.0/src/core/view.c
Examining data/denemo-2.4.0/src/core/external.h
Examining data/denemo-2.4.0/src/core/main.c
Examining data/denemo-2.4.0/src/core/entries.h
Examining data/denemo-2.4.0/src/core/utils.h
Examining data/denemo-2.4.0/src/core/menusystem.h
Examining data/denemo-2.4.0/src/core/denemo_types.c
Examining data/denemo-2.4.0/src/core/keymapio.c
Examining data/denemo-2.4.0/src/core/utils.c
Examining data/denemo-2.4.0/src/display/drawingprims.h
Examining data/denemo-2.4.0/src/display/drawlyric.c
Examining data/denemo-2.4.0/src/display/drawnotes.c
Examining data/denemo-2.4.0/src/display/displayanimation.h
Examining data/denemo-2.4.0/src/display/drawbarline.c
Examining data/denemo-2.4.0/src/display/calculatepositions.c
Examining data/denemo-2.4.0/src/display/drawaccidentals.c
Examining data/denemo-2.4.0/src/display/accwidths.h
Examining data/denemo-2.4.0/src/display/drawselection.c
Examining data/denemo-2.4.0/src/display/draw.h
Examining data/denemo-2.4.0/src/display/drawlilydir.c
Examining data/denemo-2.4.0/src/display/draw.c
Examining data/denemo-2.4.0/src/display/calculatepositions.h
Examining data/denemo-2.4.0/src/display/drawstemdir.c
Examining data/denemo-2.4.0/src/display/hairpin.h
Examining data/denemo-2.4.0/src/display/drawfakechord.c
Examining data/denemo-2.4.0/src/display/drawfigure.c
Examining data/denemo-2.4.0/src/display/slurs.c
Examining data/denemo-2.4.0/src/display/drawcursor.c
Examining data/denemo-2.4.0/src/display/drawkey.c
Examining data/denemo-2.4.0/src/display/drawdynamic.c
Examining data/denemo-2.4.0/src/display/drawtuplets.c
Examining data/denemo-2.4.0/src/display/notewidths.h
Examining data/denemo-2.4.0/src/display/drawclefs.c
Examining data/denemo-2.4.0/src/display/slurs.h
Examining data/denemo-2.4.0/src/display/hairpin.c
Examining data/denemo-2.4.0/src/display/drawtimesig.c
Examining data/denemo-2.4.0/src/display/displayanimation.c
Examining data/denemo-2.4.0/src/ui/playbackprops.h
Examining data/denemo-2.4.0/src/ui/keysigdialog.h
Examining data/denemo-2.4.0/src/ui/kbd-interface.c
Examining data/denemo-2.4.0/src/ui/help.h
Examining data/denemo-2.4.0/src/ui/dialogs.h
Examining data/denemo-2.4.0/src/ui/virtualkeyboard.c
Examining data/denemo-2.4.0/src/ui/tupletdialog.c
Examining data/denemo-2.4.0/src/ui/scoreprops.c
Examining data/denemo-2.4.0/src/ui/kbd-interface.h
Examining data/denemo-2.4.0/src/ui/prefdialog.c
Examining data/denemo-2.4.0/src/ui/texteditors.h
Examining data/denemo-2.4.0/src/ui/mwidthdialog.c
Examining data/denemo-2.4.0/src/ui/staffpropdialog.c
Examining data/denemo-2.4.0/src/ui/texteditors.c
Examining data/denemo-2.4.0/src/ui/virtualkeyboard.h
Examining data/denemo-2.4.0/src/ui/playbackprops.c
Examining data/denemo-2.4.0/src/ui/timedialog.c
Examining data/denemo-2.4.0/src/ui/mousing.h
Examining data/denemo-2.4.0/src/ui/mousing.c
Examining data/denemo-2.4.0/src/ui/clefdialog.c
Examining data/denemo-2.4.0/src/ui/moveviewport.c
Examining data/denemo-2.4.0/src/ui/keysigdialog.c
Examining data/denemo-2.4.0/src/ui/moveviewport.h
Examining data/denemo-2.4.0/src/ui/tomeasuredialog.c
Examining data/denemo-2.4.0/src/ui/markup.c
Examining data/denemo-2.4.0/src/ui/markup.h
Examining data/denemo-2.4.0/src/ui/palettes.c
Examining data/denemo-2.4.0/src/ui/palettes.h
Examining data/denemo-2.4.0/src/ui/help.c
Examining data/denemo-2.4.0/src/audio/parseinstruments.h
Examining data/denemo-2.4.0/src/audio/pitchentry.h
Examining data/denemo-2.4.0/src/audio/portmidibackend.h
Examining data/denemo-2.4.0/src/audio/portaudioutil.h
Examining data/denemo-2.4.0/src/audio/jackutil.h
Examining data/denemo-2.4.0/src/audio/eventqueue.h
Examining data/denemo-2.4.0/src/audio/audiointerface.c
Examining data/denemo-2.4.0/src/audio/portmidiutil.h
Examining data/denemo-2.4.0/src/audio/playback.c
Examining data/denemo-2.4.0/src/audio/dummybackend.c
Examining data/denemo-2.4.0/src/audio/audiointerface.h
Examining data/denemo-2.4.0/src/audio/fluid.h
Examining data/denemo-2.4.0/src/audio/midi.h
Examining data/denemo-2.4.0/src/audio/jackutil.c
Examining data/denemo-2.4.0/src/audio/portaudiobackend.h
Examining data/denemo-2.4.0/src/audio/playback.h
Examining data/denemo-2.4.0/src/audio/audiocapture.c
Examining data/denemo-2.4.0/src/audio/ringbuffer.h
Examining data/denemo-2.4.0/src/audio/jackbackend.c
Examining data/denemo-2.4.0/src/audio/eventqueue.c
Examining data/denemo-2.4.0/src/audio/pitchentry.c
Examining data/denemo-2.4.0/src/audio/fluid.c
Examining data/denemo-2.4.0/src/audio/alsabackend.h
Examining data/denemo-2.4.0/src/audio/pitchrecog.h
Examining data/denemo-2.4.0/src/audio/instrumentname.c
Examining data/denemo-2.4.0/src/audio/alsabackend.c
Examining data/denemo-2.4.0/src/audio/parseinstruments.c
Examining data/denemo-2.4.0/src/audio/jackbackend.h
Examining data/denemo-2.4.0/src/audio/portmidibackend.c
Examining data/denemo-2.4.0/src/audio/portaudiobackend.c
Examining data/denemo-2.4.0/src/audio/portaudioutil.c
Examining data/denemo-2.4.0/src/audio/midi.c
Examining data/denemo-2.4.0/src/audio/audiocapture.h
Examining data/denemo-2.4.0/src/audio/audio.h
Examining data/denemo-2.4.0/src/audio/dummybackend.h
Examining data/denemo-2.4.0/src/audio/portmidiutil.c
Examining data/denemo-2.4.0/src/audio/ringbuffer.c
Examining data/denemo-2.4.0/src/audio/instrumentname.h
Examining data/denemo-2.4.0/src/audio/pitchrecog.c
Examining data/denemo-2.4.0/src/printview/printview.h
Examining data/denemo-2.4.0/src/printview/svgview.c
Examining data/denemo-2.4.0/src/printview/markupview.h
Examining data/denemo-2.4.0/src/printview/printview.c
Examining data/denemo-2.4.0/src/printview/markupview.c
Examining data/denemo-2.4.0/src/printview/svgview.h
Examining data/denemo-2.4.0/src/source/sourceaudio.h
Examining data/denemo-2.4.0/src/source/source.h
Examining data/denemo-2.4.0/src/source/proof.c
Examining data/denemo-2.4.0/src/source/source.c
Examining data/denemo-2.4.0/src/source/proof.h
Examining data/denemo-2.4.0/src/source/sourceaudio.c
Examining data/denemo-2.4.0/src/command/grace.h
Examining data/denemo-2.4.0/src/command/figure.h
Examining data/denemo-2.4.0/src/command/object.h
Examining data/denemo-2.4.0/src/command/fakechord.c
Examining data/denemo-2.4.0/src/command/measure.c
Examining data/denemo-2.4.0/src/command/clef.c
Examining data/denemo-2.4.0/src/command/clef.h
Examining data/denemo-2.4.0/src/command/figure.c
Examining data/denemo-2.4.0/src/command/chord.c
Examining data/denemo-2.4.0/src/command/chord.h
Examining data/denemo-2.4.0/src/command/processstaffname.h
Examining data/denemo-2.4.0/src/command/changenotehead.c
Examining data/denemo-2.4.0/src/command/scorelayout.h
Examining data/denemo-2.4.0/src/command/timesig.h
Examining data/denemo-2.4.0/src/command/keyresponses.c
Examining data/denemo-2.4.0/src/command/timesig.c
Examining data/denemo-2.4.0/src/command/keysig.c
Examining data/denemo-2.4.0/src/command/commandfuncs.c
Examining data/denemo-2.4.0/src/command/processstaffname.c
Examining data/denemo-2.4.0/src/command/lilydirectives.h
Examining data/denemo-2.4.0/src/command/tuplet.h
Examining data/denemo-2.4.0/src/command/scorelayout.c
Examining data/denemo-2.4.0/src/command/contexts.c
Examining data/denemo-2.4.0/src/command/tuplet.c
Examining data/denemo-2.4.0/src/command/changenotehead.h
Examining data/denemo-2.4.0/src/command/measure.h
Examining data/denemo-2.4.0/src/command/object.c
Examining data/denemo-2.4.0/src/command/lilydirectives.c
Examining data/denemo-2.4.0/src/command/score.c
Examining data/denemo-2.4.0/src/command/contexts.h
Examining data/denemo-2.4.0/src/command/select.h
Examining data/denemo-2.4.0/src/command/staff.c
Examining data/denemo-2.4.0/src/command/select.c
Examining data/denemo-2.4.0/src/command/lyric.c
Examining data/denemo-2.4.0/src/command/fakechord.h
Examining data/denemo-2.4.0/src/command/keyresponses.h
Examining data/denemo-2.4.0/src/command/grace.c
Examining data/denemo-2.4.0/src/command/staff.h
Examining data/denemo-2.4.0/src/command/lyric.h
Examining data/denemo-2.4.0/src/command/score.h
Examining data/denemo-2.4.0/src/command/keysig.h
Examining data/denemo-2.4.0/src/command/commandfuncs.h
Examining data/denemo-2.4.0/src/export/audiofile.h
Examining data/denemo-2.4.0/src/export/guidedimportmidi.c
Examining data/denemo-2.4.0/src/export/audiofile.c
Examining data/denemo-2.4.0/src/export/importmusicxml.h
Examining data/denemo-2.4.0/src/export/exportabc.h
Examining data/denemo-2.4.0/src/export/exportmidi.h
Examining data/denemo-2.4.0/src/export/file.c
Examining data/denemo-2.4.0/src/export/print.h
Examining data/denemo-2.4.0/src/export/guidedimportmidi.h
Examining data/denemo-2.4.0/src/export/print.c
Examining data/denemo-2.4.0/src/export/exportlilypond.h
Examining data/denemo-2.4.0/src/export/exportlilypond.c
Examining data/denemo-2.4.0/src/export/importmusicxml.c
Examining data/denemo-2.4.0/src/export/file.h
Examining data/denemo-2.4.0/src/export/importmidi.c
Examining data/denemo-2.4.0/src/export/xmldefs.h
Examining data/denemo-2.4.0/src/export/exportabc.c
Examining data/denemo-2.4.0/src/export/exportmidi.c
Examining data/denemo-2.4.0/src/export/importmidi.h
Examining data/denemo-2.4.0/src/scripting/scheme-identifiers.c
Examining data/denemo-2.4.0/src/scripting/scheme_cb.h
Examining data/denemo-2.4.0/src/scripting/scheme-callbacks.h
Examining data/denemo-2.4.0/src/scripting/scheme.h
Examining data/denemo-2.4.0/src/scripting/scheme-identifiers.h
Examining data/denemo-2.4.0/src/scripting/scheme-callbacks.c
Examining data/denemo-2.4.0/tests/common.c
Examining data/denemo-2.4.0/tests/unit.c
Examining data/denemo-2.4.0/tests/integration.c
Examining data/denemo-2.4.0/tests/common.h
Examining data/denemo-2.4.0/libs/libsmf/smf_load.c
Examining data/denemo-2.4.0/libs/libsmf/smf_decode.c
Examining data/denemo-2.4.0/libs/libsmf/smf_tempo.c
Examining data/denemo-2.4.0/libs/libsmf/smf_save.c
Examining data/denemo-2.4.0/libs/libsmf/smf.h
Examining data/denemo-2.4.0/libs/libsmf/smf_private.h
Examining data/denemo-2.4.0/libs/libsmf/smf.c
Examining data/denemo-2.4.0/libs/libsffile/sf_util.h
Examining data/denemo-2.4.0/libs/libsffile/malloc.c
Examining data/denemo-2.4.0/libs/libsffile/sffile.c
Examining data/denemo-2.4.0/libs/libsffile/itypes.h
Examining data/denemo-2.4.0/libs/libsffile/fskip.c
Examining data/denemo-2.4.0/libs/libsffile/sffile.h

FINAL RESULTS:

data/denemo-2.4.0/src/core/binreloc.c:76:14:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
      size = readlink (path2, path, buf_size - 1);
data/denemo-2.4.0/src/core/utils.c:3495:16:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
      if ((n = readlink ("/proc/self/exe", path, sizeof (path))) < 0)
data/denemo-2.4.0/libs/libsmf/smf_decode.c:502:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(buf, "%s%d", names[note], octave);
data/denemo-2.4.0/src/core/kbd-custom.c:541: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 (accelerator + l, text_release);
data/denemo-2.4.0/src/core/kbd-custom.c:546: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 (accelerator + l, text_shift);
data/denemo-2.4.0/src/core/kbd-custom.c:551: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 (accelerator + l, text_control);
data/denemo-2.4.0/src/core/kbd-custom.c:556: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 (accelerator + l, text_mod1);
data/denemo-2.4.0/src/core/kbd-custom.c:561: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 (accelerator + l, text_mod2);
data/denemo-2.4.0/src/core/kbd-custom.c:566: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 (accelerator + l, text_mod3);
data/denemo-2.4.0/src/core/kbd-custom.c:571: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 (accelerator + l, text_mod4);
data/denemo-2.4.0/src/core/kbd-custom.c:576: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 (accelerator + l, text_mod5);
data/denemo-2.4.0/src/core/kbd-custom.c:581: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 (accelerator + l, text_meta);
data/denemo-2.4.0/src/core/kbd-custom.c:586: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 (accelerator + l, text_hyper);
data/denemo-2.4.0/src/core/kbd-custom.c:591: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 (accelerator + l, text_super);
data/denemo-2.4.0/src/core/kbd-custom.c:594: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 (accelerator + l, keyval_name);
data/denemo-2.4.0/src/core/utils.c:348:10:  [4] (shell) ShellExecute:
  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.
  return ShellExecute (NULL, NULL, filename, NULL, NULL, 0) > 32 /* value above 32 indicating success */ ;
data/denemo-2.4.0/src/export/exportabc.c:350:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  fprintf (fp, VERSION "\n\n");
data/denemo-2.4.0/src/export/importmidi.c:69:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf (buf, "%s%d", names[note], octave);
data/denemo-2.4.0/src/export/importmusicxml.c:1284:25:  [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(current, misc);
data/denemo-2.4.0/src/export/importmusicxml.c:1285:25:  [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(buffer2, buffer1);
data/denemo-2.4.0/src/export/importmusicxml.c:1289:25:  [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 (current, buffer1);
data/denemo-2.4.0/src/scripting/scheme-callbacks.c:908:18:  [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.
      gint val = system (cmd);
data/denemo-2.4.0/tests/common.c:12: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(fmt, argp);
data/denemo-2.4.0/tests/common.c:15:2:  [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(str, argp);
data/denemo-2.4.0/tests/integration.c:47:9:  [4] (shell) execl:
  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.
        execl("/usr/bin/diff", "/usr/bin/diff", fileA, fileB, NULL);
data/denemo-2.4.0/tests/integration.c:124:7:  [4] (shell) execl:
  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.
      execl(DENEMO, DENEMO, "-n", "-e", input, NULL);
data/denemo-2.4.0/tests/integration.c:146:7:  [4] (shell) execl:
  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.
      execl(DENEMO, DENEMO, "-n", "-e", "-a", scheme, input, NULL);
data/denemo-2.4.0/tests/integration.c:156:7:  [4] (shell) execl:
  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.
      execl(DENEMO, DENEMO, "-n", "-e", output, NULL);
data/denemo-2.4.0/tests/integration.c:187:9:  [4] (shell) execl:
  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.
        execl(DENEMO, DENEMO, "-n", "-e", "-i", input, "-a", scheme, NULL);
data/denemo-2.4.0/tests/integration.c:189:9:  [4] (shell) execl:
  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.
        execl(DENEMO, DENEMO, "-n", "-e", "-a", scheme, input, NULL);
data/denemo-2.4.0/tests/integration.c:200:5:  [4] (shell) execl:
  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.
    execl(DENEMO, DENEMO, "-n", "-e", output, NULL);
data/denemo-2.4.0/tests/unit.c:49:7:  [4] (shell) execl:
  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.
      execl(DENEMO, DENEMO, "-n", "-e", "-a", "(d-Quit)", NULL);
data/denemo-2.4.0/tests/unit.c:64:7:  [4] (shell) execl:
  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.
      execl(DENEMO, DENEMO, "-n", "--fatal-scheme-errors", "-a", "(d-InvalidSchemeFunction)(d-Quit)", NULL);
data/denemo-2.4.0/tests/unit.c:79:7:  [4] (shell) execl:
  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.
      execl(DENEMO, DENEMO, "-n", "-e", "--verbose", "-a",
data/denemo-2.4.0/tests/unit.c:101:7:  [4] (shell) execl:
  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.
      execl(DENEMO, DENEMO, "-n", "--fatal-scheme-errors", "-a", "(d-Error \"This error is fatal\")(d-Quit)", NULL);
data/denemo-2.4.0/tests/unit.c:121:7:  [4] (shell) execl:
  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.
      execl(DENEMO, DENEMO, "-n", "-e", "-V", "-a", scheme, input, NULL);
data/denemo-2.4.0/src/core/main.c:310:33:  [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.
        GDir *dir = g_dir_open (g_get_home_dir (), 0, NULL);
data/denemo-2.4.0/src/core/main.c:317:49:  [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.
            gchar *filename = g_build_filename (g_get_home_dir (), name, NULL);
data/denemo-2.4.0/src/core/main.c:339:58:  [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.
            Denemo.old_user_data_dir = g_build_filename (g_get_home_dir (), dotdenemodirname, NULL);
data/denemo-2.4.0/src/core/prefops.c:36: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.
     ret->lilypath = g_string_new (getenv("LILYPOND_PATH"));
data/denemo-2.4.0/src/core/prefops.c:85:35:  [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.
  ret->denemopath = g_string_new (g_get_home_dir ());
data/denemo-2.4.0/src/core/utils.c:184:37:  [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.
      dotdenemo = g_build_filename (g_get_home_dir (), ".denemo-" PACKAGE_VERSION, NULL);
data/denemo-2.4.0/src/core/utils.c:221:45:  [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 *newdir = g_build_filename (g_get_tmp_dir (), "Denemo_XXXXXX", NULL);
data/denemo-2.4.0/src/core/utils.c:3425:20:  [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.
  return g_strdup (g_get_home_dir ());
data/denemo-2.4.0/src/core/view.c:352:38:  [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.
  DEF_SCHEME_STR ("DENEMO_HOME_DIR", g_get_home_dir (), "Holds location of user home directory");
data/denemo-2.4.0/src/core/view.c:589:17:  [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.
    user_path = getenv ("DENEMO_LOAD_PATH");
data/denemo-2.4.0/src/export/exportmidi.c:1044:10:  [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.
  envp = getenv ("EXP_MIDI_VEL");
data/denemo-2.4.0/src/export/exportmidi.c:1051:10:  [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.
  envp = getenv ("EXP_MIDI_PERCENT");
data/denemo-2.4.0/src/printview/printview.c:716:28:  [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.
  return g_build_filename (g_get_home_dir (), ".thumbnails", "large", NULL);
data/denemo-2.4.0/src/printview/printview.c:850:46:  [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.
          thumbnailsdirN = g_build_filename (g_get_home_dir (), ".thumbnails", "normal", NULL);
data/denemo-2.4.0/src/printview/printview.c:855:46:  [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.
          thumbnailsdirL = g_build_filename (g_get_home_dir (), ".thumbnails", "large", NULL);
data/denemo-2.4.0/src/ui/help.c:107: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 *filename = g_build_filename (g_get_tmp_dir (), "Denemo_email", NULL);
data/denemo-2.4.0/tools/annotator.c:793:17:  [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.
   music_home = g_get_home_dir();
data/denemo-2.4.0/tools/pageswitcher.c:930:17:  [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.
   music_home = g_get_home_dir();
data/denemo-2.4.0/tools/pageturner.c:732:17:  [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.
   music_home = g_get_home_dir();
data/denemo-2.4.0/tools/twopageturner.c:996:17:  [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.
   music_home = g_get_home_dir();
data/denemo-2.4.0/libs/libsffile/fskip.c:12: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 tmp[1024];
data/denemo-2.4.0/libs/libsffile/itypes.h:27:25:  [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 get32rec(vp,cp) memcpy(vp, cp, 4)
data/denemo-2.4.0/libs/libsffile/sffile.c:60: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 ((fp = fopen(soundfont, "rb")) == NULL) {
data/denemo-2.4.0/libs/libsffile/sffile.c:666: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(layp->list, &bags->gen[genNdx],
data/denemo-2.4.0/libs/libsffile/sffile.h:30: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 id[4];
data/denemo-2.4.0/libs/libsffile/sffile.h:48: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 name[20];
data/denemo-2.4.0/libs/libsffile/sffile.h:69: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 name[20];
data/denemo-2.4.0/libs/libsmf/smf.c:260: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(event->midi_buffer, midi_data, len);
data/denemo-2.4.0/libs/libsmf/smf_decode.c:517: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 *buf, note[5];
data/denemo-2.4.0/libs/libsmf/smf_load.c:421: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(event->midi_buffer + 1, c, message_length - 1);
data/denemo-2.4.0/libs/libsmf/smf_load.c:459: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(event->midi_buffer, c, message_length);
data/denemo-2.4.0/libs/libsmf/smf_load.c:529: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(event->midi_buffer + 1, c, message_length - 1);
data/denemo-2.4.0/libs/libsmf/smf_load.c:615: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(str, buf, len);
data/denemo-2.4.0/libs/libsmf/smf_load.c:806:17:  [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 *stream = fopen(file_name, "rb");
data/denemo-2.4.0/libs/libsmf/smf_private.h:54: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		id[4];
data/denemo-2.4.0/libs/libsmf/smf_save.c:98: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(dest, buffer, buffer_length);
data/denemo-2.4.0/libs/libsmf/smf_save.c:111: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(mthd_chunk.mthd_header.id, "MThd", 4);
data/denemo-2.4.0/libs/libsmf/smf_save.c:158: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(dest, buffer, buffer_length);
data/denemo-2.4.0/libs/libsmf/smf_save.c:235: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.
	unsigned char buf[MAX_VLQ_LENGTH];
data/denemo-2.4.0/libs/libsmf/smf_save.c:346: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(mtrk_header.id, "MTrk", 4);
data/denemo-2.4.0/libs/libsmf/smf_save.c:402: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).
	stream = fopen(file_name, "wb+");
data/denemo-2.4.0/src/audio/alsabackend.c:62:20:  [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 buffer[3];
data/denemo-2.4.0/src/audio/alsabackend.c:77:16:  [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 event_data[3];
data/denemo-2.4.0/src/audio/audiointerface.c:349: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 (evdata, ev->data, sizeof (ev->data));
data/denemo-2.4.0/src/audio/audiointerface.c:676: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 (ev + 1, buffer, i);//g_print (" midibytes 0x%hhX 0x%hhX 0x%hhX\n", *(buffer+0), *(buffer+1), *(buffer+2));
data/denemo-2.4.0/src/audio/audiointerface.c:799: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 (&ev.data, buffer, 3);
data/denemo-2.4.0/src/audio/audiointerface.h:129:12:  [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 data[3];
data/denemo-2.4.0/src/audio/dummybackend.c:55:16:  [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 event_data[3];
data/denemo-2.4.0/src/audio/eventqueue.c:234: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 (event_buffer, &event.data, 3);
data/denemo-2.4.0/src/audio/eventqueue.c:300: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 (event_buffer, event->midi_buffer, event->midi_buffer_length);
data/denemo-2.4.0/src/audio/instrumentname.c:377: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[100];
data/denemo-2.4.0/src/audio/jackbackend.c:86:12:  [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 event_data[3];
data/denemo-2.4.0/src/audio/jackbackend.c:159:12:  [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 event_data[3];
data/denemo-2.4.0/src/audio/parseinstruments.c:101:39:  [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).
              config->transposition = atoi (tmptrans);
data/denemo-2.4.0/src/audio/portaudiobackend.c:107: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).
          fp = fopen (filename, "wb");
data/denemo-2.4.0/src/audio/portaudiobackend.c:172:12:  [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 event_data[MAX_MESSAGE_LENGTH]; //needs to be long enough for variable length messages...
data/denemo-2.4.0/src/audio/portaudiobackend.c:209:66:  [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.
      read_event_from_rubberband_queue (AUDIO_BACKEND, (unsigned char *) buffers[0], &event_length);
data/denemo-2.4.0/src/audio/portaudiobackend.c:211:66:  [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.
      read_event_from_rubberband_queue (AUDIO_BACKEND, (unsigned char *) buffers[1],  &event_length);
data/denemo-2.4.0/src/audio/portmidibackend.c:68:16:  [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 buffer[3] = {
data/denemo-2.4.0/src/audio/ringbuffer.c:184: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, &(rb->buf[rb->read_ptr]), n1);
data/denemo-2.4.0/src/audio/ringbuffer.c:189: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 (dest + n1, &(rb->buf[rb->read_ptr]), n2);
data/denemo-2.4.0/src/audio/ringbuffer.c:231: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, &(rb->buf[tmp_read_ptr]), n1);
data/denemo-2.4.0/src/audio/ringbuffer.c:236: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 (dest + n1, &(rb->buf[tmp_read_ptr]), n2);
data/denemo-2.4.0/src/audio/ringbuffer.c:274: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 (&(rb->buf[rb->write_ptr]), src, n1);
data/denemo-2.4.0/src/audio/ringbuffer.c:279: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 (&(rb->buf[rb->write_ptr]), src + n1, n2);
data/denemo-2.4.0/src/command/chord.c:551: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 ((DenemoObject *) ret, (DenemoObject *) thechord, sizeof (DenemoObject));
data/denemo-2.4.0/src/command/chord.c:555: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 ((chord *) clonedchord, curchord, sizeof (chord));
data/denemo-2.4.0/src/command/chord.c:589: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 (newnote, curnote, sizeof (note));
data/denemo-2.4.0/src/command/keyresponses.c:40: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 (pevent, event, sizeof (GdkEventKey));
data/denemo-2.4.0/src/command/lilydirectives.c:172: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).
              number = atoi (newline + 1);
data/denemo-2.4.0/src/command/lilydirectives.c:2873:22:  [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 *fp = fopen (filename, "w");
data/denemo-2.4.0/src/command/lilydirectives.c:3083: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 (directive, clone, sizeof (DenemoDirective));
data/denemo-2.4.0/src/command/lyric.c:267: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).
                SkipCount = atoi (gs->str);
data/denemo-2.4.0/src/command/measure.c:127: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 (ret, m, sizeof (DenemoMeasure));
data/denemo-2.4.0/src/command/measure.c:724: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 (ret, initialaccs, SEVENGINTS);
data/denemo-2.4.0/src/command/measure.c:725: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 (whatpersisted, initialaccs, SEVENGINTS);
data/denemo-2.4.0/src/command/measure.c:734: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 (accsthischord, initialaccsthischord, SEVENGINTS);
data/denemo-2.4.0/src/command/measure.c:784:13:  [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 (ret, ((keysig *) theobj->object)->accs, SEVENGINTS);
data/denemo-2.4.0/src/command/measure.c:785:13:  [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 (whatpersisted, ret, SEVENGINTS);
data/denemo-2.4.0/src/command/object.c:3039: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 (ret, directive, sizeof (DenemoDirective));    //BEWARE all pointers in DenemoDirective require code, as follows:
data/denemo-2.4.0/src/command/processstaffname.c:25: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 *roms[ROWS][COLS] = { {"M", "M", "M", "M"},
data/denemo-2.4.0/src/command/score.c:730: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 (thestaff, srcStaff, sizeof (DenemoStaff));
data/denemo-2.4.0/src/command/score.c:813: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 (newscore, si, sizeof (DenemoMovement));
data/denemo-2.4.0/src/command/scorelayout.c:1396:38:  [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).
                    number_of_ends = atoi (directive->data->str);
data/denemo-2.4.0/src/command/select.c:840: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 (position, pos, sizeof (DenemoPosition));
data/denemo-2.4.0/src/command/staff.c:119: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->keysig.accs, src->keysig.accs, SEVENGINTS);
data/denemo-2.4.0/src/command/staff.c:193: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->keysig.accs, src->keysig.accs, SEVENGINTS);
data/denemo-2.4.0/src/core/binreloc.c:124: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/self/maps", "r");
data/denemo-2.4.0/src/core/binreloc.c:194: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 *address_string, line[SIZE], *found;
data/denemo-2.4.0/src/core/binreloc.c:199: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/self/maps", "r");
data/denemo-2.4.0/src/core/binreloc.c:261: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 (address_string, "0x", 2);
data/denemo-2.4.0/src/core/binreloc.c:262: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 (address_string + 2, start_addr, len);
data/denemo-2.4.0/src/core/binreloc.c:266: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 (address_string, "0x", 2);
data/denemo-2.4.0/src/core/binreloc.c:267: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 (address_string + 2, end_addr, len);
data/denemo-2.4.0/src/core/exportxml.c:297: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 (result, "id%d", sNextXMLID++);
data/denemo-2.4.0/src/core/exportxml.c:1183:59:  [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).
  newXMLIntChild (parentElem, ns, (xmlChar *) "fontsize", atoi (gui->lilycontrol.staffsize->str));
data/denemo-2.4.0/src/core/importxml.c:1444:27:  [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).
        thedirective->x = atoi(x);\
data/denemo-2.4.0/src/core/importxml.c:1465:30:  [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).
        curobj->durinticks = atoi (ticks); //FIXME memory leak on ticks
data/denemo-2.4.0/src/core/importxml.c:2616:84:  [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).
            ((DenemoMeasure*)si->currentmeasure->data)->measure_numbering_offset = atoi (offset); //FIXME memory leak on offset
data/denemo-2.4.0/src/core/kbd-custom.c:1783:25:  [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 rownum = thepath?atoi (thepath):0;
data/denemo-2.4.0/src/core/kbd-custom.c:1870: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).
      last_row = thepath?atoi (thepath):0;
data/denemo-2.4.0/src/core/keymapio.c:258: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).
              cursor_num = atoi ((char*) tmp);
data/denemo-2.4.0/src/core/menusystem.c:230:22:  [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 *fp = fopen (filename, "w");
data/denemo-2.4.0/src/core/palettestorage.c:114: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).
    val = atoi (thename);
data/denemo-2.4.0/src/core/prefops.c:227:64:  [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).
              define_scheme_int_variable("DenemoPref_" #field, atoi((gchar *) tmp), NULL); \
data/denemo-2.4.0/src/core/prefops.c:228: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).
          prefs->field = atoi ((gchar *) tmp);\
data/denemo-2.4.0/src/core/prefops.c:254:65:  [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).
              define_scheme_bool_variable("DenemoPref_" #field, atoi((gchar *) tmp), NULL); \
data/denemo-2.4.0/src/core/prefops.c:255: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).
          prefs->field = atoi ((gchar *) tmp);\
data/denemo-2.4.0/src/core/prefops.c:287: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).
              define_scheme_int_variable (curname, atoi ((char*) tmp), NULL);
data/denemo-2.4.0/src/core/prefops.c:289:41:  [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).
              prefs->autosave_timeout = atoi ((gchar *) tmp);
data/denemo-2.4.0/src/core/prefops.c:302: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).
              define_scheme_int_variable (curname, atoi ((char*) tmp), NULL);
data/denemo-2.4.0/src/core/prefops.c:304: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).
              prefs->maxhistory = atoi ((gchar *) tmp);
data/denemo-2.4.0/src/core/prefops.c:681: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 (sIntBuf, "%d", content);
data/denemo-2.4.0/src/core/utils.c:636: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 utf_string[8];
data/denemo-2.4.0/src/core/utils.c:1429: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 path[1024];
data/denemo-2.4.0/src/core/utils.c:1464: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 path[1024];
data/denemo-2.4.0/src/core/utils.c:1507: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 path[1024];
data/denemo-2.4.0/src/core/utils.c:1590: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 path[1024];
data/denemo-2.4.0/src/core/utils.c:3485: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 path[1024];
data/denemo-2.4.0/src/core/view.c:411: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).
  FILE *fp = fopen (filename, "a+");
data/denemo-2.4.0/src/core/view.c:427: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).
  FILE *fp = fopen (filename, "w");
data/denemo-2.4.0/src/core/view.c:872: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).
    ret = atoi (param->string->str);
data/denemo-2.4.0/src/core/view.c:2630:18:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      FILE *fp = fopen (filename, "rb");
data/denemo-2.4.0/src/core/view.c:2720: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).
              glyph->weight = atoi (spec[3]);
data/denemo-2.4.0/src/core/view.c:2723:30:  [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).
              glyph->slant = atoi (spec[4]);
data/denemo-2.4.0/src/display/draw.c:663: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 (itp->keyaccs, ((keysig *) mudelaitem->object)->accs, SEVENGINTS);
data/denemo-2.4.0/src/display/draw.c:664: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 (itp->curaccs, itp->keyaccs, SEVENGINTS);
data/denemo-2.4.0/src/display/draw.c:752: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 (itp->curaccs, itp->keyaccs, SEVENGINTS);
data/denemo-2.4.0/src/display/draw.c:1031: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 (itp->keyaccs, thestaff->leftmost_keysig->accs, SEVENGINTS);
data/denemo-2.4.0/src/display/draw.c:1465:42:  [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).
                        number_of_ends = atoi (directive->data->str);
data/denemo-2.4.0/src/export/exportabc.c:344:8:  [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).
  fp = fopen (filename->str, "w");
data/denemo-2.4.0/src/export/exportlilypond.c:2969: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).
      fp = fopen (filename->str, "w");
data/denemo-2.4.0/src/export/exportmidi.c:118: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 *dyn_strings[DYN_MAX] = {
data/denemo-2.4.0/src/export/exportmidi.c:367: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 answer[12];
data/denemo-2.4.0/src/export/exportmidi.c:374: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 (answer, "%ld = %ld+%ld/%ld", t, count / res, count % res, res);
data/denemo-2.4.0/src/export/exportmidi.c:758: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 (c, "%3d", volume);     //*c = itoa(volume);
data/denemo-2.4.0/src/export/file.c:1390: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).
  FILE *fp = fopen (filename, "w");
data/denemo-2.4.0/src/export/importmusicxml.c:188:16:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    staffnum = atoi (number);
data/denemo-2.4.0/src/export/importmusicxml.c:1237: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).
    FILE *fp = fopen ("/home/rshann/junk.scm", "w");
data/denemo-2.4.0/src/export/importmusicxml.c:1342: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).
    FILE *fp = fopen ("/home/rshann/junk.scm", "w");
data/denemo-2.4.0/src/export/print.c:175:21:  [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).
    version.major = atoi (token[0]);
data/denemo-2.4.0/src/export/print.c:178:21:  [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).
    version.minor = atoi (token[1]);
data/denemo-2.4.0/src/export/print.c:312: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).
                 *line = atoi (message+1);
data/denemo-2.4.0/src/export/print.c:323: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).
                     *col = atoi (message+1);
data/denemo-2.4.0/src/printview/printview.c:885: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 (&Denemo.project->movement->selection, &Denemo.project->thumbnail, sizeof (DenemoSelection));
data/denemo-2.4.0/src/printview/printview.c:887: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 (&Denemo.project->thumbnail, &Denemo.project->movement->selection, sizeof (DenemoSelection));
data/denemo-2.4.0/src/printview/printview.c:896: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 (&Denemo.project->movement->selection, &Denemo.project->thumbnail, sizeof (DenemoSelection));
data/denemo-2.4.0/src/printview/printview.c:1362:72:  [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).
          get_wysiwyg_info ()->ObjectLocated = goto_lilypond_position (atoi (vec[2]), atoi (vec[3]));   //sets si->target
data/denemo-2.4.0/src/printview/printview.c:1362:87:  [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).
          get_wysiwyg_info ()->ObjectLocated = goto_lilypond_position (atoi (vec[2]), atoi (vec[3]));   //sets si->target
data/denemo-2.4.0/src/printview/svgview.c:384: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).
    FILE *fp = fopen (events, "r");
data/denemo-2.4.0/src/scripting/scheme-callbacks.c:1221: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 (&Denemo.project->thumbnail, &Denemo.project->movement->selection, sizeof (DenemoSelection));
data/denemo-2.4.0/src/scripting/scheme-callbacks.c:1896: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).
          x = xstr ? atoi (xstr) : 0;
data/denemo-2.4.0/src/scripting/scheme-callbacks.c:1897: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).
          y = ystr ? atoi (ystr) : 0;
data/denemo-2.4.0/src/scripting/scheme-callbacks.c:1898:25:  [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).
          page = pstr ? atoi (pstr) : 0;
data/denemo-2.4.0/src/scripting/scheme-callbacks.c:4665:41:  [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).
  gchar *clean = g_strdup_printf ("%d", atoi (value));
data/denemo-2.4.0/src/scripting/scheme-identifiers.c:10:24:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if(!DEV_fp) DEV_fp = fopen("functions.xml", "w");
data/denemo-2.4.0/src/source/proof.c:63: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 *fp = fopen (markings_file, "r");
data/denemo-2.4.0/src/source/proof.c:180:60:  [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).
          gboolean ObjectLocated = goto_lilypond_position (atoi (vec[2]), atoi (vec[3]));     //sets si->target
data/denemo-2.4.0/src/source/proof.c:180:75:  [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).
          gboolean ObjectLocated = goto_lilypond_position (atoi (vec[2]), atoi (vec[3]));     //sets si->target
data/denemo-2.4.0/src/ui/mwidthdialog.c:33:16:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  gint width = atoi (gtk_entry_get_text (GTK_ENTRY (cbdata->textentry)));
data/denemo-2.4.0/src/ui/palettes.c:148:20:  [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(response && atoi(response))
data/denemo-2.4.0/src/ui/palettes.c:150: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).
        pal->limit = atoi(response);
data/denemo-2.4.0/src/ui/staffpropdialog.c:213: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_entry_get_text(GTK_ENTRY (cbdata->field)))
data/denemo-2.4.0/src/ui/staffpropdialog.c:217: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_entry_get_text(GTK_ENTRY (cbdata->field)))-1
data/denemo-2.4.0/src/ui/staffpropdialog.c:286:16:  [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 buffer[3];/* third byte is unused but is put into the queue so must be accessible */
data/denemo-2.4.0/src/ui/staffpropdialog.c:583: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).
      staff->midi_prognum = atoi (midi_prognum);
data/denemo-2.4.0/src/ui/staffpropdialog.c:588: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).
      staff->midi_channel = atoi (midi_channel);
data/denemo-2.4.0/src/ui/tomeasuredialog.c:32:21:  [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).
          measnum = atoi (((DenemoScriptParam *) param)->string->str);
data/denemo-2.4.0/src/ui/tupletdialog.c:49:49:  [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).
      ((tupopen *) theobj->object)->numerator = atoi (gtk_entry_get_text (GTK_ENTRY (numerator)));
data/denemo-2.4.0/src/ui/tupletdialog.c:50:51:  [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).
      ((tupopen *) theobj->object)->denominator = atoi (gtk_entry_get_text (GTK_ENTRY (denominator)));
data/denemo-2.4.0/src/ui/virtualkeyboard.c:42: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 buf[3] = {0x90, key, 0xFF}; //NOTEON
data/denemo-2.4.0/src/ui/virtualkeyboard.c:57: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 buf[3] = {0x80, key, 0xFF}; //NOTEOFF
data/denemo-2.4.0/tools/annotator.c:116: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 *fp = fopen (markings_file, "r");
data/denemo-2.4.0/tools/annotator.c:516:21:  [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 *fp = fopen (markings_file, "w");
data/denemo-2.4.0/tools/pageswitcher.c:125: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 *fp = fopen (markings_file, "r");
data/denemo-2.4.0/tools/pageswitcher.c:558:21:  [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 *fp = fopen (markings_file, "w");
data/denemo-2.4.0/tools/pageturner.c:102: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 *fp = fopen (markings_file, "r");
data/denemo-2.4.0/tools/pageturner.c:105: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.
         char type[20];
data/denemo-2.4.0/tools/pageturner.c:469:21:  [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 *fp = fopen (markings_file, "w");
data/denemo-2.4.0/tools/pageturner.c:703: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).
      timeout = atoi (argv[1]);
data/denemo-2.4.0/tools/twopageturner.c:138: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 *fp = fopen (markings_file, "r");
data/denemo-2.4.0/tools/twopageturner.c:703:21:  [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 *fp = fopen (markings_file, "w");
data/denemo-2.4.0/tools/twopageturner.c:967: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).
      timeout = atoi (argv[1]);
data/denemo-2.4.0/libs/libsmf/smf_save.c:200: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).
	text_length = strlen(text);
data/denemo-2.4.0/src/audio/jackbackend.c:414: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 (connect_input_port))
data/denemo-2.4.0/src/audio/jackbackend.c:422: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 (connect_output_port))
data/denemo-2.4.0/src/command/figure.c:51: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).
      if (strlen (figure) < 1)
data/denemo-2.4.0/src/command/figure.c:212: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).
        for (i = 0; i < values->len; i += strlen (values->str + i) + 1)
data/denemo-2.4.0/src/command/figure.c:214:55:  [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 ((str = g_strstr_len (values->str + i, strlen (values->str + i), "figures")))
data/denemo-2.4.0/src/command/figure.c:216: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).
                string = g_strdup (str + strlen ("figures") + 1);
data/denemo-2.4.0/src/command/lilydirectives.c:3628: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 (options->str) != options->len)
data/denemo-2.4.0/src/command/lilydirectives.c:3689: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 (options->str) != options->len)
data/denemo-2.4.0/src/command/processstaffname.c:138: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).
  if (strspn (proposal, accept) == strlen (proposal))
data/denemo-2.4.0/src/core/binreloc.c:70:3:  [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 (path2, "/proc/self/exe", buf_size - 1);
data/denemo-2.4.0/src/core/binreloc.c:106:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy (path, path2, buf_size - 1);
data/denemo-2.4.0/src/core/binreloc.c:145: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).
  buf_size = strlen (line);
data/denemo-2.4.0/src/core/binreloc.c:236: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 (file);
data/denemo-2.4.0/src/core/binreloc.c:243: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 (file);
data/denemo-2.4.0/src/core/binreloc.c:248: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 (start_addr);
data/denemo-2.4.0/src/core/binreloc.c:249: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 (len != strlen (end_addr))
data/denemo-2.4.0/src/core/graphicseditor.c:33: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).
   gchar *c = filename+strlen(filename);
data/denemo-2.4.0/src/core/graphicseditor.c:150: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).
            for (c= choice + strlen(choice);c !=choice; c--)
data/denemo-2.4.0/src/core/importxml.c:667: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 (noteName) != 1 || note < 0 || note > 6)
data/denemo-2.4.0/src/core/kbd-custom.c:294: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).
  len = strlen (accelerator);
data/denemo-2.4.0/src/core/kbd-custom.c:527: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).
  l += strlen (keyval_name);
data/denemo-2.4.0/src/core/kbd-custom.c:1509: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).
                    *(filename+strlen(filename)-strlen(".commands")) = 0;
data/denemo-2.4.0/src/core/kbd-custom.c:1509: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).
                    *(filename+strlen(filename)-strlen(".commands")) = 0;
data/denemo-2.4.0/src/core/kbd-custom.c:1748: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).
    if (*key == 0 || strlen(key)<4)
data/denemo-2.4.0/src/core/kbd-custom.c:1764: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).
        backspace = last_key && (strlen(key)<strlen(last_key));
data/denemo-2.4.0/src/core/kbd-custom.c:1764: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).
        backspace = last_key && (strlen(key)<strlen(last_key));
data/denemo-2.4.0/src/core/keyboard.c:274: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).
      base += strlen (head);
data/denemo-2.4.0/src/core/keymapio.c:213: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).
                            *(comma + strlen (comma)) = ',';
data/denemo-2.4.0/src/core/menusystem.c:1296: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).
    gint length = strlen (label);
data/denemo-2.4.0/src/core/prefops.c:557:59:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
              gchar *file = g_filename_to_utf8 (tmp, -1, &read, &written, &err);
data/denemo-2.4.0/src/core/prefops.c:622: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).
    doc = xmlReadMemory (xmlsource, strlen (xmlsource), "noname.xml", NULL, 0);
data/denemo-2.4.0/src/core/utils.c:2118:48:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
          if ((number_of_notes == 2) && ( 2 == sscanf (initial_value, "%50s%50s", first, second)))
data/denemo-2.4.0/src/core/utils.c:2126:27:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
                if ( 1 == sscanf (initial_value, "%50s", first))
data/denemo-2.4.0/src/core/utils.c:2873: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).
  gtk_widget_set_size_request (dialog, strlen (title) * 10, -1);
data/denemo-2.4.0/src/core/utils.c:2882: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).
  for (opt = str; (opt - str) < length; opt += strlen (opt) + 1)
data/denemo-2.4.0/src/core/utils.c:2927:60:  [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).
  for (opt = str, i = 0; (opt - str) < length; i++, opt += strlen (opt) + 1)
data/denemo-2.4.0/src/core/utils.c:2991: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).
    for (c = name + strlen (name); c != name; c--)
data/denemo-2.4.0/src/core/utils.h:178:80:  [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).
#define UTILS_H_PARAM_ASSIGN(param_name) if( (str = g_strstr_len(values->str+i,strlen(values->str+i), #param_name)))\
data/denemo-2.4.0/src/core/utils.h:179:35:  [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).
nothing=FALSE,param_name = (*(str+strlen(#param_name))=='=')?str+strlen(#param_name)+1:NULL;
data/denemo-2.4.0/src/core/utils.h:179:66:  [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).
nothing=FALSE,param_name = (*(str+strlen(#param_name))=='=')?str+strlen(#param_name)+1:NULL;
data/denemo-2.4.0/src/core/utils.h:195: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).
      for(i=0;i<values->len;i+=strlen(values->str+i)+1) {\
data/denemo-2.4.0/src/core/utils.h:219: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).
       for(i=0;i<values->len;i+=strlen(values->str+i)+1) {\
data/denemo-2.4.0/src/core/utils.h:244: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).
       for(i=0;i<values->len;i+=strlen(values->str+i)+1) {\
data/denemo-2.4.0/src/core/utils.h:271: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).
       for(i=0;i<values->len;i+=strlen(values->str+i)+1) {\
data/denemo-2.4.0/src/export/audiofile.c:53: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).
              gint len = strlen (outfile);
data/denemo-2.4.0/src/export/exportlilypond.c:1683:11:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
          strncpy (v, (*target)->str + 1, maxlength - 1);       //skip the opening % sign to make label, leave a NULL at the end
data/denemo-2.4.0/src/export/exportlilypond.c:3018: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).
      gchar *c = filename + strlen (filename);  // find .extension FIXME dots in filename
data/denemo-2.4.0/src/export/file.c:346: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).
  return (strcmp (filename + strlen (filename) - strlen(extension), extension) == 0);
data/denemo-2.4.0/src/export/file.c:346:50:  [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 (strcmp (filename + strlen (filename) - strlen(extension), extension) == 0);
data/denemo-2.4.0/src/export/file.c:461:35:  [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).
                     *(filename + strlen(filename) -3) = 0;
data/denemo-2.4.0/src/export/file.c:581: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).
  gint filename_size = strlen (file_name);
data/denemo-2.4.0/src/export/file.c:582: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).
  gint ext_size = strlen (FORMAT_EXTENSION (format_id));
data/denemo-2.4.0/src/export/file.c:583: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 (ext) != ext_size)
data/denemo-2.4.0/src/export/file.c:1197:23:  [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 (".gz")) = 0;
data/denemo-2.4.0/src/export/file.c:1197: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).
        *(file_name + strlen (file_name) - strlen (".gz")) = 0;
data/denemo-2.4.0/src/export/print.c:369: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).
   numbytes=strlen (bytes);
data/denemo-2.4.0/src/printview/printview.c:1226: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).
  outuri += strlen ("file://"); //skip the uri bit of it
data/denemo-2.4.0/src/printview/printview.c:1501: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).
          gchar *text = uri + strlen ("scheme:");
data/denemo-2.4.0/src/printview/svgview.c:398:25:  [1] (buffer) fscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
            while (2 == fscanf (fp, "%lf%10s", &moment, type))
data/denemo-2.4.0/src/printview/svgview.c:554:23:  [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 num_pos = strlen (filename)-5;//"<n>.svg"
data/denemo-2.4.0/src/printview/svgview.c:726: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).
  outuri += strlen ("file://"); //skip the uri bit of it
data/denemo-2.4.0/src/scripting/scheme-callbacks.c:4668: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).
  return scm_from_locale_stringn (clean, strlen (clean));
data/denemo-2.4.0/src/scripting/scheme-callbacks.c:4799:52:  [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).
      SCM ret = scm_from_locale_stringn (response, strlen (response));
data/denemo-2.4.0/src/scripting/scheme-callbacks.c:4942: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).
  if(val) return scm_from_locale_stringn (val, strlen(val));\
data/denemo-2.4.0/src/scripting/scheme-callbacks.c:5035: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).
    return scm_from_locale_stringn (val, strlen (val));
data/denemo-2.4.0/src/scripting/scheme-callbacks.c:5063: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).
    SCM ret = scm_from_locale_stringn (val, strlen(val));\
data/denemo-2.4.0/src/scripting/scheme-identifiers.c:8:72:  [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).
#define DEV_CODE  gint idx = lookup_command_from_name(Denemo.map, name+strlen(DENEMO_SCHEME_PREFIX));\
data/denemo-2.4.0/src/source/proof.c:92: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).
                                    *(ann->font + strlen (ann->font) - 1) = 0;   
data/denemo-2.4.0/src/source/proof.c:93: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).
                                    *(ann->annotation + strlen (ann->annotation) - 1) = 0;   
data/denemo-2.4.0/src/ui/kbd-interface.c:54:80:  [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).
  gtk_dialog_set_response_sensitive (GTK_DIALOG (dialog), GTK_RESPONSE_ACCEPT, strlen (name) > 0);
data/denemo-2.4.0/src/ui/keysigdialog.c:231: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 (keystosearch[i]) > length)
data/denemo-2.4.0/src/ui/keysigdialog.c:234: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).
            length = strlen (keystosearch[i]);
data/denemo-2.4.0/tools/annotator.c:148: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).
                                    *(ann->font + strlen (ann->font) - 1) = 0;   
data/denemo-2.4.0/tools/annotator.c:149: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).
                                    *(ann->annotation + strlen (ann->annotation) - 1) = 0;   
data/denemo-2.4.0/tools/pageswitcher.c:157: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).
                                    *(ann->font + strlen (ann->font) - 1) = 0;   
data/denemo-2.4.0/tools/pageswitcher.c:158: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).
                                    *(ann->annotation + strlen (ann->annotation) - 1) = 0;   
data/denemo-2.4.0/tools/pageturner.c:111:28:  [1] (buffer) fscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
               while (1 == fscanf (fp, "%20s", type))
data/denemo-2.4.0/tools/twopageturner.c:170: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).
                                    *(ann->font + strlen (ann->font) - 1) = 0;   
data/denemo-2.4.0/tools/twopageturner.c:171: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).
                                    *(ann->annotation + strlen (ann->annotation) - 1) = 0;   

ANALYSIS SUMMARY:

Hits = 299
Lines analyzed = 111322 in approximately 3.73 seconds (29830 lines/second)
Physical Source Lines of Code (SLOC) = 85534
Hits@level = [0] 288 [1]  80 [2] 163 [3]  20 [4]  34 [5]   2
Hits@level+ = [0+] 587 [1+] 299 [2+] 219 [3+]  56 [4+]  36 [5+]   2
Hits/KSLOC@level+ = [0+] 6.86277 [1+] 3.49569 [2+] 2.56039 [3+] 0.65471 [4+] 0.420885 [5+] 0.0233825
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.