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/ladish-1+dfsg0/proxies/app_supervisor_proxy.c
Examining data/ladish-1+dfsg0/proxies/notify_proxy.c
Examining data/ladish-1+dfsg0/proxies/jack_proxy.c
Examining data/ladish-1+dfsg0/proxies/conf_proxy.h
Examining data/ladish-1+dfsg0/proxies/graph_proxy.c
Examining data/ladish-1+dfsg0/proxies/studio_proxy.h
Examining data/ladish-1+dfsg0/proxies/control_proxy.c
Examining data/ladish-1+dfsg0/proxies/graph_proxy.h
Examining data/ladish-1+dfsg0/proxies/lash_client_proxy.c
Examining data/ladish-1+dfsg0/proxies/lash_client_proxy.h
Examining data/ladish-1+dfsg0/proxies/control_proxy.h
Examining data/ladish-1+dfsg0/proxies/a2j_proxy.h
Examining data/ladish-1+dfsg0/proxies/room_proxy.c
Examining data/ladish-1+dfsg0/proxies/app_supervisor_proxy.h
Examining data/ladish-1+dfsg0/proxies/studio_proxy.c
Examining data/ladish-1+dfsg0/proxies/jack_proxy.h
Examining data/ladish-1+dfsg0/proxies/conf_proxy.c
Examining data/ladish-1+dfsg0/proxies/jmcore_proxy.h
Examining data/ladish-1+dfsg0/proxies/jmcore_proxy.c
Examining data/ladish-1+dfsg0/proxies/common.h
Examining data/ladish-1+dfsg0/proxies/a2j_proxy.c
Examining data/ladish-1+dfsg0/proxies/room_proxy.h
Examining data/ladish-1+dfsg0/proxies/notify_proxy.h
Examining data/ladish-1+dfsg0/jmcore.c
Examining data/ladish-1+dfsg0/lib/wkports.h
Examining data/ladish-1+dfsg0/version.h
Examining data/ladish-1+dfsg0/common/file.h
Examining data/ladish-1+dfsg0/common/catdup.c
Examining data/ladish-1+dfsg0/common/error.h
Examining data/ladish-1+dfsg0/common/klist.h
Examining data/ladish-1+dfsg0/common/catdup.h
Examining data/ladish-1+dfsg0/common/time.h
Examining data/ladish-1+dfsg0/common/file.c
Examining data/ladish-1+dfsg0/common/dirhelpers.h
Examining data/ladish-1+dfsg0/common/time.c
Examining data/ladish-1+dfsg0/common/dirhelpers.c
Examining data/ladish-1+dfsg0/lash_compat/liblash/lash/config.h
Examining data/ladish-1+dfsg0/lash_compat/liblash/lash/types.h
Examining data/ladish-1+dfsg0/lash_compat/liblash/lash/protocol.h
Examining data/ladish-1+dfsg0/lash_compat/liblash/lash/client_interface.h
Examining data/ladish-1+dfsg0/lash_compat/liblash/lash/lash.h
Examining data/ladish-1+dfsg0/lash_compat/liblash/lash/event.h
Examining data/ladish-1+dfsg0/lash_compat/liblash/lash.c
Examining data/ladish-1+dfsg0/lash_compat/pylash/lash_wrap.c
Examining data/ladish-1+dfsg0/lash_compat/pylash/lash.h
Examining data/ladish-1+dfsg0/lash_compat/pylash/lash.c
Examining data/ladish-1+dfsg0/gui/graph_canvas.c
Examining data/ladish-1+dfsg0/gui/create_room_dialog.c
Examining data/ladish-1+dfsg0/gui/zoom.c
Examining data/ladish-1+dfsg0/gui/create_room_dialog.h
Examining data/ladish-1+dfsg0/gui/room.c
Examining data/ladish-1+dfsg0/gui/load_project_dialog.c
Examining data/ladish-1+dfsg0/gui/dynmenu.c
Examining data/ladish-1+dfsg0/gui/project_properties.h
Examining data/ladish-1+dfsg0/gui/graph_canvas.h
Examining data/ladish-1+dfsg0/gui/toolbar.c
Examining data/ladish-1+dfsg0/gui/dialogs.c
Examining data/ladish-1+dfsg0/gui/studio.c
Examining data/ladish-1+dfsg0/gui/settings.c
Examining data/ladish-1+dfsg0/gui/jack.c
Examining data/ladish-1+dfsg0/gui/world_tree.c
Examining data/ladish-1+dfsg0/gui/ask_dialog.h
Examining data/ladish-1+dfsg0/gui/statusbar.c
Examining data/ladish-1+dfsg0/gui/menu.c
Examining data/ladish-1+dfsg0/gui/zoom.h
Examining data/ladish-1+dfsg0/gui/save_project_dialog.c
Examining data/ladish-1+dfsg0/gui/save_project_dialog.h
Examining data/ladish-1+dfsg0/gui/gtk_builder.c
Examining data/ladish-1+dfsg0/gui/world_tree.h
Examining data/ladish-1+dfsg0/gui/ask_dialog.c
Examining data/ladish-1+dfsg0/gui/project_properties.c
Examining data/ladish-1+dfsg0/gui/dynmenu.h
Examining data/ladish-1+dfsg0/gui/canvas.h
Examining data/ladish-1+dfsg0/gui/about.h
Examining data/ladish-1+dfsg0/gui/common.h
Examining data/ladish-1+dfsg0/gui/graph_view.h
Examining data/ladish-1+dfsg0/gui/pixbuf.c
Examining data/ladish-1+dfsg0/gui/action.h
Examining data/ladish-1+dfsg0/gui/control.c
Examining data/ladish-1+dfsg0/gui/action.c
Examining data/ladish-1+dfsg0/gui/toolbar.h
Examining data/ladish-1+dfsg0/gui/studio_list.c
Examining data/ladish-1+dfsg0/gui/graph_view.c
Examining data/ladish-1+dfsg0/gui/studio.h
Examining data/ladish-1+dfsg0/gui/statusbar.h
Examining data/ladish-1+dfsg0/gui/jack.h
Examining data/ladish-1+dfsg0/gui/canvas.cpp
Examining data/ladish-1+dfsg0/gui/about.c
Examining data/ladish-1+dfsg0/gui/gtk_builder.h
Examining data/ladish-1+dfsg0/gui/menu.h
Examining data/ladish-1+dfsg0/gui/pixbuf.h
Examining data/ladish-1+dfsg0/gui/load_project_dialog.h
Examining data/ladish-1+dfsg0/gui/dbus.c
Examining data/ladish-1+dfsg0/gui/internal.h
Examining data/ladish-1+dfsg0/gui/main.c
Examining data/ladish-1+dfsg0/conf.c
Examining data/ladish-1+dfsg0/assert.h
Examining data/ladish-1+dfsg0/daemon/port.h
Examining data/ladish-1+dfsg0/daemon/jack_session.c
Examining data/ladish-1+dfsg0/daemon/port.c
Examining data/ladish-1+dfsg0/daemon/load.h
Examining data/ladish-1+dfsg0/daemon/recent_projects.c
Examining data/ladish-1+dfsg0/daemon/cmd_change_app_state.c
Examining data/ladish-1+dfsg0/daemon/lash_server.c
Examining data/ladish-1+dfsg0/daemon/room.c
Examining data/ladish-1+dfsg0/daemon/escape.h
Examining data/ladish-1+dfsg0/daemon/log.c
Examining data/ladish-1+dfsg0/daemon/cmd_unload_studio.c
Examining data/ladish-1+dfsg0/daemon/studio_internal.h
Examining data/ladish-1+dfsg0/daemon/loader.h
Examining data/ladish-1+dfsg0/daemon/dict.c
Examining data/ladish-1+dfsg0/daemon/cmd_rename_studio.c
Examining data/ladish-1+dfsg0/daemon/cmd_load_studio.c
Examining data/ladish-1+dfsg0/daemon/virtualizer.h
Examining data/ladish-1+dfsg0/daemon/studio.c
Examining data/ladish-1+dfsg0/daemon/graph.c
Examining data/ladish-1+dfsg0/daemon/cmd_save_project.c
Examining data/ladish-1+dfsg0/daemon/client.h
Examining data/ladish-1+dfsg0/daemon/graph_dict.h
Examining data/ladish-1+dfsg0/daemon/cmd_new_studio.c
Examining data/ladish-1+dfsg0/daemon/room.h
Examining data/ladish-1+dfsg0/daemon/cmd_load_project.c
Examining data/ladish-1+dfsg0/daemon/graph_manager.h
Examining data/ladish-1+dfsg0/daemon/proctitle.c
Examining data/ladish-1+dfsg0/daemon/graph.h
Examining data/ladish-1+dfsg0/daemon/load.c
Examining data/ladish-1+dfsg0/daemon/cmd_exit.c
Examining data/ladish-1+dfsg0/daemon/appdb.h
Examining data/ladish-1+dfsg0/daemon/cmd_stop_studio.c
Examining data/ladish-1+dfsg0/daemon/jack_session.h
Examining data/ladish-1+dfsg0/daemon/room_load.c
Examining data/ladish-1+dfsg0/daemon/cmd_save_studio.c
Examining data/ladish-1+dfsg0/daemon/cmd_new_app.c
Examining data/ladish-1+dfsg0/daemon/procfs.c
Examining data/ladish-1+dfsg0/daemon/save.h
Examining data/ladish-1+dfsg0/daemon/cqueue.c
Examining data/ladish-1+dfsg0/daemon/cmd.h
Examining data/ladish-1+dfsg0/daemon/recent_projects.h
Examining data/ladish-1+dfsg0/daemon/recent_store.c
Examining data/ladish-1+dfsg0/daemon/cmd_remove_app.c
Examining data/ladish-1+dfsg0/daemon/app_supervisor.h
Examining data/ladish-1+dfsg0/daemon/room_save.c
Examining data/ladish-1+dfsg0/daemon/dict.h
Examining data/ladish-1+dfsg0/daemon/cmd_delete_room.c
Examining data/ladish-1+dfsg0/daemon/graph_dict.c
Examining data/ladish-1+dfsg0/daemon/escape.c
Examining data/ladish-1+dfsg0/daemon/studio_jack_conf.c
Examining data/ladish-1+dfsg0/daemon/cmd_create_room.c
Examining data/ladish-1+dfsg0/daemon/graph_manager.c
Examining data/ladish-1+dfsg0/daemon/control.h
Examining data/ladish-1+dfsg0/daemon/common.h
Examining data/ladish-1+dfsg0/daemon/procfs.h
Examining data/ladish-1+dfsg0/daemon/cmd_unload_project.c
Examining data/ladish-1+dfsg0/daemon/check_integrity.c
Examining data/ladish-1+dfsg0/daemon/main.c
Examining data/ladish-1+dfsg0/daemon/control.c
Examining data/ladish-1+dfsg0/daemon/save.c
Examining data/ladish-1+dfsg0/daemon/client.c
Examining data/ladish-1+dfsg0/daemon/studio_list.c
Examining data/ladish-1+dfsg0/daemon/proctitle.h
Examining data/ladish-1+dfsg0/daemon/lash_server.h
Examining data/ladish-1+dfsg0/daemon/cmd_start_studio.c
Examining data/ladish-1+dfsg0/daemon/app_supervisor.c
Examining data/ladish-1+dfsg0/daemon/appdb.c
Examining data/ladish-1+dfsg0/daemon/sigsegv.h
Examining data/ladish-1+dfsg0/daemon/studio.h
Examining data/ladish-1+dfsg0/daemon/virtualizer.c
Examining data/ladish-1+dfsg0/daemon/recent_store.h
Examining data/ladish-1+dfsg0/daemon/room_internal.h
Examining data/ladish-1+dfsg0/daemon/conf.h
Examining data/ladish-1+dfsg0/daemon/loader.c
Examining data/ladish-1+dfsg0/daemon/sigsegv.c
Examining data/ladish-1+dfsg0/string_constants.c
Examining data/ladish-1+dfsg0/log.h
Examining data/ladish-1+dfsg0/alsapid/alsapid.h
Examining data/ladish-1+dfsg0/alsapid/helper.c
Examining data/ladish-1+dfsg0/alsapid/lib.c
Examining data/ladish-1+dfsg0/common.h
Examining data/ladish-1+dfsg0/example-apps/level1-qt.cpp
Examining data/ladish-1+dfsg0/cdbus/helpers.c
Examining data/ladish-1+dfsg0/cdbus/method.c
Examining data/ladish-1+dfsg0/cdbus/object_path.c
Examining data/ladish-1+dfsg0/cdbus/object_path.h
Examining data/ladish-1+dfsg0/cdbus/method.h
Examining data/ladish-1+dfsg0/cdbus/interface.c
Examining data/ladish-1+dfsg0/cdbus/helpers.h
Examining data/ladish-1+dfsg0/cdbus/signal.h
Examining data/ladish-1+dfsg0/cdbus/interface.h
Examining data/ladish-1+dfsg0/cdbus/signal.c
Examining data/ladish-1+dfsg0/dbus_constants.h

FINAL RESULTS:

data/ladish-1+dfsg0/alsapid/helper.c:55:9:  [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.
  ret = readlink(src, dst, MAX_ALSAPID_PATH);
data/ladish-1+dfsg0/daemon/procfs.c:154:9:  [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.
  ret = readlink(g_buffer, g_buffer, sizeof(g_buffer));
data/ladish-1+dfsg0/cdbus/method.c:42:3:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
  vsnprintf(message, sizeof(message), format, ap);
data/ladish-1+dfsg0/cdbus/object_path.c:47:39:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
#define write_buf(args...) buf_ptr += sprintf(buf_ptr, ## args)
data/ladish-1+dfsg0/daemon/cmd_load_studio.c:780:11:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
      if (sscanf(context_ptr->data, "%" PRIu32, &parameter.value.uint32) != 1)
data/ladish-1+dfsg0/daemon/cmd_load_studio.c:788:11:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
      if (sscanf(context_ptr->data, "%" PRIi32, &parameter.value.int32) != 1)
data/ladish-1+dfsg0/daemon/cmd_new_app.c:77:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(name, cmd_ptr->name);
data/ladish-1+dfsg0/daemon/cmd_new_app.c:92:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(name_buffer, cmd_ptr->commandline);
data/ladish-1+dfsg0/daemon/cmd_save_studio.c:101:5:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    snprintf(valbuf, sizeof(valbuf), "%" PRIu32, parameter_ptr->parameter.value.uint32);
data/ladish-1+dfsg0/daemon/cmd_save_studio.c:106:5:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    snprintf(valbuf, sizeof(valbuf), "%" PRIi32, parameter_ptr->parameter.value.int32);
data/ladish-1+dfsg0/daemon/control.c:301:3:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
  sprintf(port_name_buffer, prefix "%u", index + 1);                    \
data/ladish-1+dfsg0/daemon/loader.c:252:3:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
  strcat(dst_ptr, XTERM_COMMAND_EXTENSION);
data/ladish-1+dfsg0/daemon/loader.c:255:3:  [4] (shell) execlp:
  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.
  execlp("xterm", "xterm", "-e", "/bin/sh", "-c", buf, NULL);
data/ladish-1+dfsg0/daemon/loader.c:343:3:  [4] (shell) execvp:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
  execvp(argv[0], (char **)argv);
data/ladish-1+dfsg0/daemon/loader.c:401:11:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
          strcpy(last_line, char_ptr);
data/ladish-1+dfsg0/daemon/log.c:195:3:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  vfprintf(stream, format, ap);
data/ladish-1+dfsg0/daemon/procfs.c:59:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(g_buffer, "/proc/%llu/%s", pid, filename);
data/ladish-1+dfsg0/daemon/procfs.c:146:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(g_buffer, "/proc/%llu/%s", pid, filename);
data/ladish-1+dfsg0/daemon/proctitle.c:65:3:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
  vsnprintf(g_argv_begin, g_argv_end - g_argv_begin, format, ap);
data/ladish-1+dfsg0/daemon/room.c:274:3:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
  sprintf(object_path, DBUS_BASE_PATH "/Room%u", index);
data/ladish-1+dfsg0/daemon/studio.c:745:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(backup_filename_ptr, filename_ptr);
data/ladish-1+dfsg0/daemon/studio_jack_conf.c:216: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(dst, child);
data/ladish-1+dfsg0/gui/about.c:85:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(built_str, _("gladish is built on %s from %s"), timestamp_str, GIT_VERSION);
data/ladish-1+dfsg0/gui/jack.c:124:5:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    snprintf(tmp_buf, sizeof(tmp_buf),
data/ladish-1+dfsg0/lash_compat/pylash/lash_wrap.c:662: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(r,name);
data/ladish-1+dfsg0/lash_compat/pylash/lash_wrap.c:793:25:  [4] (format) _snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#  define PyOS_snprintf _snprintf
data/ladish-1+dfsg0/lash_compat/pylash/lash_wrap.c:795:25:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#  define PyOS_snprintf snprintf
data/ladish-1+dfsg0/lash_compat/pylash/lash_wrap.c:812:9:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
  res = vsnprintf(buf, sizeof(buf), fmt, ap);
data/ladish-1+dfsg0/log.h:86:33:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
# define log_info(fmt, args...) printf(fmt "\n", ## args)
data/ladish-1+dfsg0/log.h:87:33:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
# define log_warn(fmt, args...) printf(fmt "\n", ## args)
data/ladish-1+dfsg0/log.h:89:40:  [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.
# define log_error_plain(fmt, args...) fprintf(stderr, fmt "\n", ## args)
data/ladish-1+dfsg0/conf.c:152:7:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  if (getenv("HOME") == NULL)
data/ladish-1+dfsg0/conf.c:230:21:  [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.
  dirpath = catdupv(getenv("HOME"), STORAGE_BASE_DIR, pair_ptr->key, NULL);
data/ladish-1+dfsg0/conf.c:291:18:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  path = catdupv(getenv("HOME"), STORAGE_BASE_DIR, key, "/value", NULL);
data/ladish-1+dfsg0/daemon/appdb.c:110:11:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  value = getenv(var_name);
data/ladish-1+dfsg0/daemon/appdb.c:625:14:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  home_dir = getenv("HOME");
data/ladish-1+dfsg0/daemon/loader.c:499:9:  [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.
  old = getenv("LD_PRELOAD");
data/ladish-1+dfsg0/daemon/log.c:96:14:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  home_dir = getenv("HOME");
data/ladish-1+dfsg0/daemon/main.c:225:14:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  home_dir = getenv("HOME");
data/ladish-1+dfsg0/daemon/room_save.c:340:14:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  home_dir = getenv("HOME");
data/ladish-1+dfsg0/alsapid/helper.c:38: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(buffer, "/tmp/alsapid-%lld-%d", (long long)getuid(), alsa_client_id);
data/ladish-1+dfsg0/alsapid/helper.c:43: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(buffer, "/proc/%lld", (long long)getpid());
data/ladish-1+dfsg0/alsapid/helper.c:48: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 src[MAX_ALSAPID_PATH];
data/ladish-1+dfsg0/alsapid/helper.c:49: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 dst[MAX_ALSAPID_PATH + 1];
data/ladish-1+dfsg0/alsapid/lib.c:40: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 src[MAX_ALSAPID_PATH];
data/ladish-1+dfsg0/alsapid/lib.c:41: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 dst[MAX_ALSAPID_PATH];
data/ladish-1+dfsg0/alsapid/lib.c:59:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char src[MAX_ALSAPID_PATH];
data/ladish-1+dfsg0/cdbus/helpers.c:213: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 s[2];
data/ladish-1+dfsg0/cdbus/helpers.c:645: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(ctx_ptr->cookie, cookie, cookie_size);
data/ladish-1+dfsg0/cdbus/helpers.c:672: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 rule[1024];
data/ladish-1+dfsg0/cdbus/helpers.c:679: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 rule[1024];
data/ladish-1+dfsg0/cdbus/method.c:37: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 message[1024];
data/ladish-1+dfsg0/common/catdup.c:50: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(buffer, s1, s1_len);
data/ladish-1+dfsg0/common/catdup.c:51: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(buffer + s1_len, s2, s2_len);
data/ladish-1+dfsg0/common/catdup.c:75: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(buffer, s1, s1_len);
data/ladish-1+dfsg0/common/catdup.c:76: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(buffer + s1_len, s2, s2_len);
data/ladish-1+dfsg0/common/catdup.c:77: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(buffer + s1_len + s2_len, s3, s3_len);
data/ladish-1+dfsg0/common/catdup.c:102:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(buffer, s1, s1_len);
data/ladish-1+dfsg0/common/catdup.c:103: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(buffer + s1_len, s2, s2_len);
data/ladish-1+dfsg0/common/catdup.c:104: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(buffer + s1_len + s2_len, s3, s3_len);
data/ladish-1+dfsg0/common/catdup.c:105: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(buffer + s1_len + s2_len + s3_len, s4, s4_len);
data/ladish-1+dfsg0/common/catdup.c:136: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(buffer, s1, len);
data/ladish-1+dfsg0/common/catdup.c:140: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(p, s2, len);
data/ladish-1+dfsg0/common/catdup.c:147: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(p, str, len);
data/ladish-1+dfsg0/common/catdup.c:186: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(p, array[i], len);
data/ladish-1+dfsg0/common/catdup.c:188: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(p, delimiter, delimiter_length);
data/ladish-1+dfsg0/common/dirhelpers.c:191: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(buffer, dirname, len);
data/ladish-1+dfsg0/common/dirhelpers.c:232: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(p, str, len);
data/ladish-1+dfsg0/common/dirhelpers.c:326: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 paths[2][len];
data/ladish-1+dfsg0/common/file.c:46:8:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  fd = open(filename, O_RDONLY);
data/ladish-1+dfsg0/conf.c:311:8:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  fd = open(path, O_RDONLY);
data/ladish-1+dfsg0/daemon/app_supervisor.c:53: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 level[MAX_LEVEL_CHARCOUNT];
data/ladish-1+dfsg0/daemon/app_supervisor.c:457: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(app_ptr->level, level, len + 1);
data/ladish-1+dfsg0/daemon/app_supervisor.c:652: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 uuid_str[37];
data/ladish-1+dfsg0/daemon/app_supervisor.c:688: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 uuid_str[37];
data/ladish-1+dfsg0/daemon/app_supervisor.c:972: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 uuid_str[37];
data/ladish-1+dfsg0/daemon/app_supervisor.c:1300: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 uuid_str[37];
data/ladish-1+dfsg0/daemon/app_supervisor.c:1805: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(app_ptr->level, level_str, len + 1);
data/ladish-1+dfsg0/daemon/appdb.c:160:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  file = fopen(file_path, "r");
data/ladish-1+dfsg0/daemon/check_integrity.c:73: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 uuid_str[37];
data/ladish-1+dfsg0/daemon/client.c:84: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 str[37];
data/ladish-1+dfsg0/daemon/cmd_load_studio.c:60: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(context_ptr->data + context_ptr->data_used, s, len);
data/ladish-1+dfsg0/daemon/cmd_load_studio.c:571: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(context_ptr->level, level, len + 1);
data/ladish-1+dfsg0/daemon/cmd_load_studio.c:931:8:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  fd = open(path, O_RDONLY);
data/ladish-1+dfsg0/daemon/cmd_new_app.c:122:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(end, "-%u", index);
data/ladish-1+dfsg0/daemon/cmd_save_studio.c:53:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char path[max_escaped_length(JACK_CONF_MAX_ADDRESS_SIZE)];
data/ladish-1+dfsg0/daemon/cmd_save_studio.c:55: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 valbuf[100];
data/ladish-1+dfsg0/daemon/cmd_save_studio.c:134: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 str[37];
data/ladish-1+dfsg0/daemon/cmd_save_studio.c:197: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 timestamp_str[26];
data/ladish-1+dfsg0/daemon/cmd_save_studio.c:271:8:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  fd = open(g_studio.filename, O_WRONLY | O_TRUNC | O_CREAT, 0666);
data/ladish-1+dfsg0/daemon/control.c:322: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 port_name_buffer[100];
data/ladish-1+dfsg0/daemon/graph.c:334: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 uuid1_str[37];
data/ladish-1+dfsg0/daemon/graph.c:335: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 uuid2_str[37];
data/ladish-1+dfsg0/daemon/graph.c:2741: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 uuid_str[37];
data/ladish-1+dfsg0/daemon/jack_session.c:205: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 app_uuid_str[37];
data/ladish-1+dfsg0/daemon/load.h:65: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 data[MAX_DATA_SIZE];
data/ladish-1+dfsg0/daemon/load.h:76: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 level[MAX_LEVEL_CHARCOUNT];
data/ladish-1+dfsg0/daemon/loader.c:63: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 stdout_buffer[CLIENT_OUTPUT_BUFFER_SIZE];
data/ladish-1+dfsg0/daemon/loader.c:64: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 stdout_last_line[CLIENT_OUTPUT_BUFFER_SIZE];
data/ladish-1+dfsg0/daemon/loader.c:69: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 stderr_buffer[CLIENT_OUTPUT_BUFFER_SIZE];
data/ladish-1+dfsg0/daemon/loader.c:70: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 stderr_last_line[CLIENT_OUTPUT_BUFFER_SIZE];
data/ladish-1+dfsg0/daemon/loader.c:236:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[len];                /* dynamically allocate in stack */
data/ladish-1+dfsg0/daemon/loader.c:245: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(dst_ptr + 1, src_ptr_ptr, len);
data/ladish-1+dfsg0/daemon/loader.c:274: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.
  const char * argv[8];
data/ladish-1+dfsg0/daemon/log.c:67: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).
        g_logfile = fopen(g_log_filename, "a");
data/ladish-1+dfsg0/daemon/log.c:166: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 timestamp_str[26];
data/ladish-1+dfsg0/daemon/main.c:287: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 timestamp_str[26];
data/ladish-1+dfsg0/daemon/procfs.c:41: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 g_buffer[BUFFER_SIZE];
data/ladish-1+dfsg0/daemon/procfs.c:61:8:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  fd = open(g_buffer, O_RDONLY);
data/ladish-1+dfsg0/daemon/procfs.c:148:8:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  fd = open(g_buffer, O_RDONLY);
data/ladish-1+dfsg0/daemon/recent_store.c:50:8:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  fd = open(store_ptr->path, O_WRONLY | O_CREAT | O_TRUNC, 0666);
data/ladish-1+dfsg0/daemon/recent_store.c:88:8:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  fd = open(store_ptr->path, O_RDONLY);
data/ladish-1+dfsg0/daemon/room.c:171: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 uuid_in_owner_str[37];
data/ladish-1+dfsg0/daemon/room.c:172: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 uuid_in_room_str[37];
data/ladish-1+dfsg0/daemon/room.c:221: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 uuid_in_room_str[37];
data/ladish-1+dfsg0/daemon/room.c:270: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 object_path[1024];
data/ladish-1+dfsg0/daemon/room_load.c:65: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(context_ptr->data + context_ptr->data_used, s, len);
data/ladish-1+dfsg0/daemon/room_load.c:570: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(context_ptr->level, level, len + 1);
data/ladish-1+dfsg0/daemon/room_load.c:827:8:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  fd = open(path, O_RDONLY);
data/ladish-1+dfsg0/daemon/room_load.c:982:8:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  fd = open(path, O_RDONLY);
data/ladish-1+dfsg0/daemon/room_save.c:99: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 timestamp_str[26];
data/ladish-1+dfsg0/daemon/room_save.c:100: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 uuid_str[37];
data/ladish-1+dfsg0/daemon/room_save.c:128:8:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  fd = open(filename, O_WRONLY | O_TRUNC | O_CREAT, 0666);
data/ladish-1+dfsg0/daemon/room_save.c:350: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(project_dir, home_dir, home_dir_len);
data/ladish-1+dfsg0/daemon/room_save.c:351: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(project_dir + home_dir_len, DEFAULT_PROJECT_BASE_DIR, DEFAULT_PROJECT_BASE_DIR_LEN);
data/ladish-1+dfsg0/daemon/save.c:191: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 str[37];
data/ladish-1+dfsg0/daemon/save.c:384: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 str[37];
data/ladish-1+dfsg0/daemon/save.c:386:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char app_str[37];
data/ladish-1+dfsg0/daemon/save.c:547: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 str[37];
data/ladish-1+dfsg0/daemon/save.c:548: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 link_str[37];
data/ladish-1+dfsg0/daemon/save.c:672: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 str[37];
data/ladish-1+dfsg0/daemon/save.c:756: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 str[37];
data/ladish-1+dfsg0/daemon/save.c:940: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 str[37];
data/ladish-1+dfsg0/daemon/save.c:1059: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 str[37];
data/ladish-1+dfsg0/daemon/sigsegv.c:67:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static const char *si_codes[3] = {"", "SEGV_MAPERR", "SEGV_ACCERR"};
data/ladish-1+dfsg0/daemon/studio.c:58: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 timestamp_str[26];
data/ladish-1+dfsg0/daemon/studio.c:732: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(p, g_studios_dir, len_dir);
data/ladish-1+dfsg0/daemon/studio.c:739:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
  strcpy(p, ".xml");
data/ladish-1+dfsg0/daemon/studio.c:746:5:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
    strcat(backup_filename_ptr, ".bak");
data/ladish-1+dfsg0/daemon/studio_internal.h:166: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[JACK_CONF_MAX_ADDRESS_SIZE];
data/ladish-1+dfsg0/daemon/studio_internal.h:181: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[JACK_CONF_MAX_ADDRESS_SIZE];
data/ladish-1+dfsg0/daemon/studio_jack_conf.c:188:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char path[JACK_CONF_MAX_ADDRESS_SIZE];
data/ladish-1+dfsg0/daemon/studio_jack_conf.c:210: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(dst, component, len);
data/ladish-1+dfsg0/daemon/studio_jack_conf.c:223:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(dst, child, len);
data/ladish-1+dfsg0/daemon/studio_jack_conf.c:287: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(parameter_ptr->address, context_ptr->address, JACK_CONF_MAX_ADDRESS_SIZE);
data/ladish-1+dfsg0/gui/about.c:72: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 timestamp_str[26];
data/ladish-1+dfsg0/gui/about.c:73: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 built_str[200];
data/ladish-1+dfsg0/gui/graph_canvas.c:143: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 x_str[100];
data/ladish-1+dfsg0/gui/graph_canvas.c:144: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 y_str[100];
data/ladish-1+dfsg0/gui/graph_canvas.c:157: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(x_str, "%f", x);
data/ladish-1+dfsg0/gui/graph_canvas.c:158: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(y_str, "%f", y);
data/ladish-1+dfsg0/gui/jack.c:83: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 buf[100];
data/ladish-1+dfsg0/gui/jack.c:119: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_buf[100];
data/ladish-1+dfsg0/gui/jack.c:362:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[100];
data/ladish-1+dfsg0/jmcore.c:77: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(output, input, nframes * sizeof(jack_default_audio_sample_t));
data/ladish-1+dfsg0/jmcore.c:258: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 client_name[256];
data/ladish-1+dfsg0/jmcore.c:261: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(client_name, "jmcore-%u", g_unique_index);
data/ladish-1+dfsg0/lash_compat/liblash/lash.c:807:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(dst_ptr->value, src_ptr->value, src_ptr->size);
data/ladish-1+dfsg0/lash_compat/liblash/lash.c:896: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(buf, value, value_size);
data/ladish-1+dfsg0/lash_compat/pylash/lash_wrap.c:613: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.
  static const char hex[17] = "0123456789abcdef";
data/ladish-1+dfsg0/lash_compat/pylash/lash_wrap.c:765: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(newstr, cstr, len+1);
data/ladish-1+dfsg0/lash_compat/pylash/lash_wrap.c:809: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 buf[SWIG_PYBUFFER_SIZE * 2];
data/ladish-1+dfsg0/lash_compat/pylash/lash_wrap.c:1493: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 result[SWIG_BUFFER_SIZE];
data/ladish-1+dfsg0/lash_compat/pylash/lash_wrap.c:1860: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 result[SWIG_BUFFER_SIZE];
data/ladish-1+dfsg0/lash_compat/pylash/lash_wrap.c:1874: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 result[SWIG_BUFFER_SIZE];
data/ladish-1+dfsg0/lash_compat/pylash/lash_wrap.c:1885: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 result[SWIG_BUFFER_SIZE];
data/ladish-1+dfsg0/lash_compat/pylash/lash_wrap.c:2015: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(pack, ptr, size);
data/ladish-1+dfsg0/lash_compat/pylash/lash_wrap.c:2033:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(ptr, sobj->pack, size);
data/ladish-1+dfsg0/lash_compat/pylash/lash_wrap.c:2573: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 mesg[256];
data/ladish-1+dfsg0/lash_compat/pylash/lash_wrap.c:2804:22:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    *cptr = (char *)memcpy((char *)malloc((len + 1)*sizeof(char)), cstr, sizeof(char)*(len + 1));
data/ladish-1+dfsg0/lash_compat/pylash/lash_wrap.c:4366:46:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  resultobj = SWIG_NewPointerObj((uint32_t *)memcpy((uint32_t *)malloc(sizeof(uint32_t)),&result,sizeof(uint32_t)), SWIGTYPE_p_uint32_t, SWIG_POINTER_OWN |  0 );
data/ladish-1+dfsg0/proxies/conf_proxy.c:80: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(pair_ptr->value, value, len + 1);
data/ladish-1+dfsg0/proxies/conf_proxy.c:254: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(pair_ptr->value, value, pair_ptr->value_buffer_size);
data/ladish-1+dfsg0/proxies/conf_proxy.c:407:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[UINT_STRING_MAX_SIZE];
data/ladish-1+dfsg0/proxies/jack_proxy.c:600:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(dst, child, len);
data/ladish-1+dfsg0/proxies/jack_proxy.c:627: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[1024] = "";
data/ladish-1+dfsg0/common/catdup.c:40:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  s1_len = strlen(s1);
data/ladish-1+dfsg0/common/catdup.c:41:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  s2_len = strlen(s2);
data/ladish-1+dfsg0/common/catdup.c:64:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  s1_len = strlen(s1);
data/ladish-1+dfsg0/common/catdup.c:65:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  s2_len = strlen(s2);
data/ladish-1+dfsg0/common/catdup.c:66:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  s3_len = strlen(s3);
data/ladish-1+dfsg0/common/catdup.c:90:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  s1_len = strlen(s1);
data/ladish-1+dfsg0/common/catdup.c:91:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  s2_len = strlen(s2);
data/ladish-1+dfsg0/common/catdup.c:92:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  s3_len = strlen(s3);
data/ladish-1+dfsg0/common/catdup.c:93:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  s4_len = strlen(s4);
data/ladish-1+dfsg0/common/catdup.c:119: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(s1) + strlen(s2);
data/ladish-1+dfsg0/common/catdup.c:119: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).
  len = strlen(s1) + strlen(s2);
data/ladish-1+dfsg0/common/catdup.c:123:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len += strlen(str);
data/ladish-1+dfsg0/common/catdup.c:135: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(s1);
data/ladish-1+dfsg0/common/catdup.c:139: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(s2);
data/ladish-1+dfsg0/common/catdup.c:146: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).
    len = strlen(str);
data/ladish-1+dfsg0/common/catdup.c:165: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).
  delimiter_length = delimiter != NULL ? strlen(delimiter) : 0;
data/ladish-1+dfsg0/common/catdup.c:170:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len += strlen(array[i]);
data/ladish-1+dfsg0/common/catdup.c:185: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).
    len = strlen(array[i]);
data/ladish-1+dfsg0/common/dirhelpers.c:182: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(dirname);
data/ladish-1+dfsg0/common/dirhelpers.c:214:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len += strlen(str);
data/ladish-1+dfsg0/common/dirhelpers.c:231: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).
    len = strlen(str);
data/ladish-1+dfsg0/common/dirhelpers.c:325:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  size_t len = strlen(dst) + 100;
data/ladish-1+dfsg0/common/file.c:59:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  if (read(fd, buffer, (size_t)st.st_size) != (ssize_t)st.st_size)
data/ladish-1+dfsg0/conf.c:257: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(pair_ptr->value);
data/ladish-1+dfsg0/conf.c:328:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  bytes_read = read(fd, buffer, st.st_size);
data/ladish-1+dfsg0/daemon/app_supervisor.c:89: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(level);
data/ladish-1+dfsg0/daemon/app_supervisor.c:1723: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).
    len = strlen(level_str);
data/ladish-1+dfsg0/daemon/appdb.c:113: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).
  if (value == NULL || strlen(value) == 0)
data/ladish-1+dfsg0/daemon/appdb.c:130: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(string);
data/ladish-1+dfsg0/daemon/appdb.c:131:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  len_suffix = strlen(suffix);
data/ladish-1+dfsg0/daemon/appdb.c:231: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).
  temp = string + strlen(string);
data/ladish-1+dfsg0/daemon/check_integrity.c:40:3:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
  usleep(3 * 1000000);
data/ladish-1+dfsg0/daemon/cmd_load_studio.c:710: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).
        src_len = strlen(src);
data/ladish-1+dfsg0/daemon/cmd_load_studio.c:959:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  bytes_read = read(fd, buffer, st.st_size);
data/ladish-1+dfsg0/daemon/cmd_new_app.c:67: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).
    len = strlen(cmd_ptr->name);
data/ladish-1+dfsg0/daemon/cmd_new_app.c:84: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).
    len = strlen(cmd_ptr->commandline) + 100;
data/ladish-1+dfsg0/daemon/escape.c:116:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  unescape(buffer, strlen(buffer) + 1, buffer);
data/ladish-1+dfsg0/daemon/escape.c:124: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(src) + 1;
data/ladish-1+dfsg0/daemon/jack_session.c:241: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).
  ofs = strlen(ctx_ptr->temp_dir) - 1;
data/ladish-1+dfsg0/daemon/loader.c:230: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(XTERM_COMMAND_EXTENSION) + 1;
data/ladish-1+dfsg0/daemon/loader.c:233:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len += strlen(*src_ptr_ptr) + 3; /* three additional chars per argument: two double quotes and a space */
data/ladish-1+dfsg0/daemon/loader.c:243: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).
    len = strlen(*src_ptr_ptr);
data/ladish-1+dfsg0/daemon/loader.c:371:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    ret = read(fd, *buffer_ptr_ptr, max_read);
data/ladish-1+dfsg0/daemon/procfs.c:97:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  ret = read(fd, read_ptr, max);
data/ladish-1+dfsg0/daemon/procfs.c:233:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    temp_ptr += strlen(temp_ptr) + 1;
data/ladish-1+dfsg0/daemon/proctitle.c:49:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  g_argv_end = last_arg + strlen(last_arg);
data/ladish-1+dfsg0/daemon/recent_store.c:113:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  ret = read(fd, buffer, buffer_size);
data/ladish-1+dfsg0/daemon/room.c:1016:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if ((strlen(str) == 0 && (room_ptr->project_description == NULL || strlen(room_ptr->project_description) == 0)) ||
data/ladish-1+dfsg0/daemon/room.c:1016:70:  [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(str) == 0 && (room_ptr->project_description == NULL || strlen(room_ptr->project_description) == 0)) ||
data/ladish-1+dfsg0/daemon/room.c:1049:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if ((strlen(str) == 0 && (room_ptr->project_notes == NULL || strlen(room_ptr->project_notes) == 0)) ||
data/ladish-1+dfsg0/daemon/room.c:1049:64:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if ((strlen(str) == 0 && (room_ptr->project_notes == NULL || strlen(room_ptr->project_notes) == 0)) ||
data/ladish-1+dfsg0/daemon/room_load.c:110: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).
    len = strlen(name) + 1;
data/ladish-1+dfsg0/daemon/room_load.c:852:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  bytes_read = read(fd, buffer, st.st_size);
data/ladish-1+dfsg0/daemon/room_load.c:939: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(name) + 1;
data/ladish-1+dfsg0/daemon/room_load.c:1005:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  bytes_read = read(fd, buffer, st.st_size);
data/ladish-1+dfsg0/daemon/room_save.c:341: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).
  home_dir_len = strlen(home_dir);
data/ladish-1+dfsg0/daemon/room_save.c:343:89:  [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).
  project_dir = malloc(home_dir_len + DEFAULT_PROJECT_BASE_DIR_LEN + max_escaped_length(strlen(project_name)) + 1);
data/ladish-1+dfsg0/daemon/room_save.c:391: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).
  dir_supplied = strlen(project_dir_param) != 0;
data/ladish-1+dfsg0/daemon/room_save.c:392: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).
  name_supplied = strlen(project_name_param) != 0;
data/ladish-1+dfsg0/daemon/save.c:71: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(string);
data/ladish-1+dfsg0/daemon/save.c:112: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).
  escaped_buffer = malloc(max_escaped_length(strlen(string)));
data/ladish-1+dfsg0/daemon/save.c:764: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).
  escaped_buffer = malloc(max_escaped_length(ladish_max(strlen(name), strlen(command))) + 1);
data/ladish-1+dfsg0/daemon/save.c:764:71:  [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).
  escaped_buffer = malloc(max_escaped_length(ladish_max(strlen(name), strlen(command))) + 1);
data/ladish-1+dfsg0/daemon/studio.c:711: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_dir = strlen(g_studios_dir);
data/ladish-1+dfsg0/daemon/studio.c:713: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).
  filename_ptr = malloc(len_dir + 1 + strlen(name) * 3 + 4 + 1);
data/ladish-1+dfsg0/daemon/studio.c:722: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).
    backup_filename_ptr = malloc(len_dir + 1 + strlen(name) * 3 + 4 + 4 + 1);
data/ladish-1+dfsg0/daemon/studio_jack_conf.c:209: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).
    len = strlen(component);
data/ladish-1+dfsg0/daemon/studio_jack_conf.c:222: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(child) + 1;
data/ladish-1+dfsg0/daemon/studio_list.c:114: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).
    len = strlen(dentry->d_name);
data/ladish-1+dfsg0/example-apps/level1-qt.cpp:97:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (read(fd, &message, sizeof(message)) == -1) {
data/ladish-1+dfsg0/gui/create_room_dialog.c:156:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strlen(name) == 0)
data/ladish-1+dfsg0/gui/graph_view.c:139: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).
  empty = strlen(project_name) == 0;
data/ladish-1+dfsg0/gui/room.c:97:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  new_project = strlen(project_dir) == 0;
data/ladish-1+dfsg0/lash_compat/liblash/lash.c:966: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).
	lash_config_set_value(config_ptr, value, strlen(value) + 1);
data/ladish-1+dfsg0/lash_compat/pylash/lash_wrap.c:366:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  const char* te = tb + strlen(tb);
data/ladish-1+dfsg0/lash_compat/pylash/lash_wrap.c:385:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  const char* te = tb + strlen(tb);
data/ladish-1+dfsg0/lash_compat/pylash/lash_wrap.c:661:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
data/ladish-1+dfsg0/lash_compat/pylash/lash_wrap.c:682:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  size_t lname = (name ? strlen(name) : 0);
data/ladish-1+dfsg0/lash_compat/pylash/lash_wrap.c:687:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(r,name,lname+1);
data/ladish-1+dfsg0/lash_compat/pylash/lash_wrap.c:846:91:  [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 PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;}
data/ladish-1+dfsg0/lash_compat/pylash/lash_wrap.c:2759: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).
  return SWIG_FromCharPtrAndSize(cptr, (cptr ? strlen(cptr) : 0));
data/ladish-1+dfsg0/lash_compat/pylash/lash_wrap.c:2829: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).
	if (psize) *psize = vptr ? (strlen((char *)vptr) + 1) : 0;
data/ladish-1+dfsg0/lash_compat/pylash/lash_wrap.c:5125: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).
      size_t size = strlen(name)+1;
data/ladish-1+dfsg0/lash_compat/pylash/lash_wrap.c:5128:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(gv->name,name,size);
data/ladish-1+dfsg0/lash_compat/pylash/lash_wrap.c:5190: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).
              strlen(const_table[j].name)) == 0) {
data/ladish-1+dfsg0/lash_compat/pylash/lash_wrap.c:5199:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
data/ladish-1+dfsg0/lash_compat/pylash/lash_wrap.c:5205:15:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
              strncpy(buff, methods[i].ml_doc, ldoc);
data/ladish-1+dfsg0/lash_compat/pylash/lash_wrap.c:5207:15:  [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(buff, "swig_ptr: ", 10);
data/ladish-1+dfsg0/proxies/conf_proxy.c:77: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(value);
data/ladish-1+dfsg0/proxies/conf_proxy.c:244: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).
    pair_ptr->value_buffer_size = strlen(value) + 1;
data/ladish-1+dfsg0/proxies/jack_proxy.c:191:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      component += strlen(component) + 1;
data/ladish-1+dfsg0/proxies/jack_proxy.c:593: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).
    component += strlen(component) + 1;
data/ladish-1+dfsg0/proxies/jack_proxy.c:599: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(child) + 1;

ANALYSIS SUMMARY:

Hits = 269
Lines analyzed = 51562 in approximately 1.36 seconds (37782 lines/second)
Physical Source Lines of Code (SLOC) = 37123
Hits@level = [0]  39 [1]  93 [2] 136 [3]   9 [4]  29 [5]   2
Hits@level+ = [0+] 308 [1+] 269 [2+] 176 [3+]  40 [4+]  31 [5+]   2
Hits/KSLOC@level+ = [0+] 8.29674 [1+] 7.24618 [2+] 4.741 [3+] 1.0775 [4+] 0.835062 [5+] 0.053875
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.