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/telepathy-ring-2.3.24/mc-plugin/mcp-account-manager-ring.c
Examining data/telepathy-ring-2.3.24/mc-plugin/mcp-account-manager-ring.h
Examining data/telepathy-ring-2.3.24/mc-plugin/mission-control-plugin.c
Examining data/telepathy-ring-2.3.24/modem/call-service.c
Examining data/telepathy-ring-2.3.24/modem/call.c
Examining data/telepathy-ring-2.3.24/modem/call.h
Examining data/telepathy-ring-2.3.24/modem/debug.c
Examining data/telepathy-ring-2.3.24/modem/debug.h
Examining data/telepathy-ring-2.3.24/modem/errors.c
Examining data/telepathy-ring-2.3.24/modem/errors.h
Examining data/telepathy-ring-2.3.24/modem/modem.c
Examining data/telepathy-ring-2.3.24/modem/modem.h
Examining data/telepathy-ring-2.3.24/modem/oface.c
Examining data/telepathy-ring-2.3.24/modem/oface.h
Examining data/telepathy-ring-2.3.24/modem/ofono.c
Examining data/telepathy-ring-2.3.24/modem/ofono.h
Examining data/telepathy-ring-2.3.24/modem/radio-settings.c
Examining data/telepathy-ring-2.3.24/modem/radio-settings.h
Examining data/telepathy-ring-2.3.24/modem/request-private.h
Examining data/telepathy-ring-2.3.24/modem/request.c
Examining data/telepathy-ring-2.3.24/modem/request.h
Examining data/telepathy-ring-2.3.24/modem/service.c
Examining data/telepathy-ring-2.3.24/modem/service.h
Examining data/telepathy-ring-2.3.24/modem/sim-service.c
Examining data/telepathy-ring-2.3.24/modem/sim.h
Examining data/telepathy-ring-2.3.24/modem/sms-history.c
Examining data/telepathy-ring-2.3.24/modem/sms-history.h
Examining data/telepathy-ring-2.3.24/modem/sms-message.c
Examining data/telepathy-ring-2.3.24/modem/sms-message.h
Examining data/telepathy-ring-2.3.24/modem/sms-service.c
Examining data/telepathy-ring-2.3.24/modem/sms.h
Examining data/telepathy-ring-2.3.24/modem/tests/base.c
Examining data/telepathy-ring-2.3.24/modem/tests/base.h
Examining data/telepathy-ring-2.3.24/modem/tests/derived.c
Examining data/telepathy-ring-2.3.24/modem/tests/derived.h
Examining data/telepathy-ring-2.3.24/modem/tests/test-modem-call-service.c
Examining data/telepathy-ring-2.3.24/modem/tests/test-modem-call.c
Examining data/telepathy-ring-2.3.24/modem/tests/test-modem-request.c
Examining data/telepathy-ring-2.3.24/modem/tests/test-modem-sms.c
Examining data/telepathy-ring-2.3.24/modem/tests/test-modem-tones.c
Examining data/telepathy-ring-2.3.24/modem/tests/test-modem.c
Examining data/telepathy-ring-2.3.24/modem/tests/test-modem.h
Examining data/telepathy-ring-2.3.24/modem/tests/test-sim.c
Examining data/telepathy-ring-2.3.24/modem/tones.c
Examining data/telepathy-ring-2.3.24/modem/tones.h
Examining data/telepathy-ring-2.3.24/ring-extensions/body.c
Examining data/telepathy-ring-2.3.24/ring-extensions/debug-internal.h
Examining data/telepathy-ring-2.3.24/ring-extensions/gtypes.h
Examining data/telepathy-ring-2.3.24/ring-extensions/ring-extensions.h
Examining data/telepathy-ring-2.3.24/src/base-call-channel.c
Examining data/telepathy-ring-2.3.24/src/base-call-channel.h
Examining data/telepathy-ring-2.3.24/src/ring-call-channel.c
Examining data/telepathy-ring-2.3.24/src/ring-call-channel.h
Examining data/telepathy-ring-2.3.24/src/ring-call-content.c
Examining data/telepathy-ring-2.3.24/src/ring-call-content.h
Examining data/telepathy-ring-2.3.24/src/ring-call-member.c
Examining data/telepathy-ring-2.3.24/src/ring-call-member.h
Examining data/telepathy-ring-2.3.24/src/ring-call-stream.c
Examining data/telepathy-ring-2.3.24/src/ring-call-stream.h
Examining data/telepathy-ring-2.3.24/src/ring-conference-channel.c
Examining data/telepathy-ring-2.3.24/src/ring-conference-channel.h
Examining data/telepathy-ring-2.3.24/src/ring-conference-manager.c
Examining data/telepathy-ring-2.3.24/src/ring-conference-manager.h
Examining data/telepathy-ring-2.3.24/src/ring-connection-manager.c
Examining data/telepathy-ring-2.3.24/src/ring-connection-manager.h
Examining data/telepathy-ring-2.3.24/src/ring-connection.c
Examining data/telepathy-ring-2.3.24/src/ring-connection.h
Examining data/telepathy-ring-2.3.24/src/ring-debug.c
Examining data/telepathy-ring-2.3.24/src/ring-debug.h
Examining data/telepathy-ring-2.3.24/src/ring-emergency-service.c
Examining data/telepathy-ring-2.3.24/src/ring-emergency-service.h
Examining data/telepathy-ring-2.3.24/src/ring-media-channel.c
Examining data/telepathy-ring-2.3.24/src/ring-media-channel.h
Examining data/telepathy-ring-2.3.24/src/ring-media-manager.c
Examining data/telepathy-ring-2.3.24/src/ring-media-manager.h
Examining data/telepathy-ring-2.3.24/src/ring-member-channel.c
Examining data/telepathy-ring-2.3.24/src/ring-member-channel.h
Examining data/telepathy-ring-2.3.24/src/ring-param-spec.c
Examining data/telepathy-ring-2.3.24/src/ring-param-spec.h
Examining data/telepathy-ring-2.3.24/src/ring-protocol.c
Examining data/telepathy-ring-2.3.24/src/ring-protocol.h
Examining data/telepathy-ring-2.3.24/src/ring-streamed-media-mixin.c
Examining data/telepathy-ring-2.3.24/src/ring-streamed-media-mixin.h
Examining data/telepathy-ring-2.3.24/src/ring-text-channel.c
Examining data/telepathy-ring-2.3.24/src/ring-text-channel.h
Examining data/telepathy-ring-2.3.24/src/ring-text-manager.c
Examining data/telepathy-ring-2.3.24/src/ring-text-manager.h
Examining data/telepathy-ring-2.3.24/src/ring-util.c
Examining data/telepathy-ring-2.3.24/src/ring-util.h
Examining data/telepathy-ring-2.3.24/src/telepathy-ring.c
Examining data/telepathy-ring-2.3.24/src/tests/test-ring-util.c
Examining data/telepathy-ring-2.3.24/src/tests/test-ring.c
Examining data/telepathy-ring-2.3.24/src/tests/test-ring.h
Examining data/telepathy-ring-2.3.24/src/util.c
Examining data/telepathy-ring-2.3.24/src/util.h
Examining data/telepathy-ring-2.3.24/tests/test-common.c
Examining data/telepathy-ring-2.3.24/tests/test-common.h

FINAL RESULTS:

data/telepathy-ring-2.3.24/src/ring-connection.c:819:12:  [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).
    return strcpy(s, input);
data/telepathy-ring-2.3.24/modem/tests/test-modem-call-service.c:111: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("TEST_MODEM_CALL_DESTINATION"))
data/telepathy-ring-2.3.24/modem/tests/test-modem-call-service.c:112:19:  [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.
    destination = getenv("TEST_MODEM_CALL_DESTINATION");
data/telepathy-ring-2.3.24/modem/tests/test-modem-request.c:41: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("SBOX_UNAME_MACHINE"))
data/telepathy-ring-2.3.24/src/telepathy-ring.c:83:31:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  char const *ring_realtime = getenv("RING_REALTIME");
data/telepathy-ring-2.3.24/src/telepathy-ring.c:106:30:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  char const *ring_memlock = getenv("RING_MEMLOCK");
data/telepathy-ring-2.3.24/src/util.c:101:19:  [3] (random) g_rand_int:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
  uuid.time_low = g_rand_int (grand);
data/telepathy-ring-2.3.24/src/util.c:102:29:  [3] (random) g_rand_int_range:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
  uuid.time_mid = (guint16) g_rand_int_range (grand, 0, G_MAXUINT16);
data/telepathy-ring-2.3.24/src/util.c:103:40:  [3] (random) g_rand_int_range:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
  uuid.time_hi_and_version = (guint16) g_rand_int_range (grand, 0, G_MAXUINT16);
data/telepathy-ring-2.3.24/src/util.c:104:40:  [3] (random) g_rand_int_range:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
  uuid.clock_seq_hi_and_rsv = (guint8) g_rand_int_range (grand, 0, G_MAXUINT8);
data/telepathy-ring-2.3.24/src/util.c:105:33:  [3] (random) g_rand_int_range:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
  uuid.clock_seq_low = (guint8) g_rand_int_range (grand, 0, G_MAXUINT8);
data/telepathy-ring-2.3.24/src/util.c:106:28:  [3] (random) g_rand_int_range:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
  uuid.node_hi = (guint16) g_rand_int_range (grand, 0, G_MAXUINT16);
data/telepathy-ring-2.3.24/src/util.c:107:19:  [3] (random) g_rand_int:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
  uuid.node_low = g_rand_int (grand);
data/telepathy-ring-2.3.24/tests/test-common.c:39:17:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
  while ((opt = getopt(argc, argv, "ho:t:")) != -1) {
data/telepathy-ring-2.3.24/modem/call-service.c:997: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 ebuffer[32];
data/telepathy-ring-2.3.24/modem/call.c:1012: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 modemstring[256];
data/telepathy-ring-2.3.24/modem/call.c:1067: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 tones[2] = { tone };
data/telepathy-ring-2.3.24/modem/call.c:1131: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 printed[64];
data/telepathy-ring-2.3.24/modem/tests/test-modem-call.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 ebuffer[16];
data/telepathy-ring-2.3.24/modem/tests/test-modem-call.c:218: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 ebuffer[16];
data/telepathy-ring-2.3.24/modem/tests/test-modem-call.c:252: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[16];
data/telepathy-ring-2.3.24/modem/tests/test-modem-call.c:355: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[16];
data/telepathy-ring-2.3.24/modem/tests/test-modem-request.c:352: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 const *tags[1024];
data/telepathy-ring-2.3.24/modem/tests/test-modem-sms.c:196: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(quitter.data, quitter.original = change, quitter.size = size);
data/telepathy-ring-2.3.24/modem/tests/test-modem-sms.c:923: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 ebuffer[16];
data/telepathy-ring-2.3.24/src/ring-media-channel.c:591: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 const ring_media_channel_dtmf_events[16] = "0123456789*#ABCD";
data/telepathy-ring-2.3.24/src/ring-text-channel.c:905: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 ebuffer[16];
data/telepathy-ring-2.3.24/src/telepathy-ring.c:55:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  int fd = open(file, O_RDONLY);
data/telepathy-ring-2.3.24/src/telepathy-ring.c:56:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[1024];
data/telepathy-ring-2.3.24/modem/call-service.c:817: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).
      size_t n = strlen (*numbers);
data/telepathy-ring-2.3.24/modem/call-service.c:1395: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).
      address += strlen ("*31#");
data/telepathy-ring-2.3.24/modem/call-service.c:1403: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).
      address += strlen ("#31#");
data/telepathy-ring-2.3.24/modem/errors.c:408: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).
  (*list)->prefixlen = strlen (prefix);
data/telepathy-ring-2.3.24/modem/errors.c:696:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  char const *fqe = (*error)->message + strlen ((*error)->message) + 1;
data/telepathy-ring-2.3.24/modem/modem.c:483: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 (imsi))
data/telepathy-ring-2.3.24/modem/sms-service.c:917: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).
  DEBUG ("immediate = \"%50s\"%s", message, strlen (message) > 50 ? "..." : "");
data/telepathy-ring-2.3.24/modem/sms-service.c:936: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).
  DEBUG ("incoming = \"%50s\"%s", message, strlen (message) > 50 ? "..." : "");
data/telepathy-ring-2.3.24/modem/tests/test-modem-call.c:327: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).
    fail_if(error->message == NULL || strlen(error->message) < 1);
data/telepathy-ring-2.3.24/modem/tests/test-modem-call.c:337: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).
  fail_if(error->message == NULL || strlen(error->message) < 1);
data/telepathy-ring-2.3.24/modem/tests/test-modem-call.c:346: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).
  fail_if(error->message == NULL || strlen(error->message) < 1);
data/telepathy-ring-2.3.24/modem/tests/test-modem-call.c:481: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).
    fail_if(error->message == NULL || strlen(error->message) < 1);
data/telepathy-ring-2.3.24/modem/tests/test-modem-call.c:491: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).
  fail_if(error->message == NULL || strlen(error->message) < 1);
data/telepathy-ring-2.3.24/modem/tests/test-modem-sms.c:536: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).
  for (i = strlen(binary) + 1; i < sizeof binary; i++)
data/telepathy-ring-2.3.24/modem/tests/test-modem-sms.c:708: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).
  fail_if(strlen(smsc) == 0);
data/telepathy-ring-2.3.24/src/ring-connection.c:784: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(input) == strspn(input, "()-. "))
data/telepathy-ring-2.3.24/src/ring-connection.c:1118: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).
  if (priv->imsi && strlen (priv->imsi))
data/telepathy-ring-2.3.24/src/ring-connection.c:1126: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).
  else if (priv->imei && strlen (priv->imei))
data/telepathy-ring-2.3.24/src/ring-text-channel.c:586: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).
  if (smsc == NULL || strlen(smsc) == 0)
data/telepathy-ring-2.3.24/src/ring-text-channel.c:588: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).
  if (smsc == NULL || strlen(smsc) == 0)
data/telepathy-ring-2.3.24/src/ring-text-channel.c:590: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).
  if (smsc != NULL && strlen(smsc) != 0)
data/telepathy-ring-2.3.24/src/ring-text-channel.c:604: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).
    GArray b = { (gpointer)text, strlen(text) };
data/telepathy-ring-2.3.24/src/ring-text-channel.c:802:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      tp_message_set_bytes(msg, 1, "content", strlen(text), text);
data/telepathy-ring-2.3.24/src/ring-util.c:40: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(prefix);
data/telepathy-ring-2.3.24/src/telepathy-ring.c:63:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  n = read(fd, buffer, (sizeof buffer) - 1);
data/telepathy-ring-2.3.24/src/util.c:176:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy (buf, jid, slash - jid);

ANALYSIS SUMMARY:

Hits = 55
Lines analyzed = 31642 in approximately 0.61 seconds (52102 lines/second)
Physical Source Lines of Code (SLOC) = 22410
Hits@level = [0]   7 [1]  26 [2]  15 [3]  13 [4]   1 [5]   0
Hits@level+ = [0+]  62 [1+]  55 [2+]  29 [3+]  14 [4+]   1 [5+]   0
Hits/KSLOC@level+ = [0+] 2.76662 [1+] 2.45426 [2+] 1.29407 [3+] 0.624721 [4+] 0.0446229 [5+]   0
Dot directories skipped = 1 (--followdotdir overrides)
Minimum risk level = 1
Not every hit is necessarily a security vulnerability.
There may be other security vulnerabilities; review your code!
See 'Secure Programming HOWTO'
(https://dwheeler.com/secure-programs) for more information.