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/dmrconfig-1.1+git20190919.e47491e/d868uv-map.h
Examining data/dmrconfig-1.1+git20190919.e47491e/dfu-libusb.c
Examining data/dmrconfig-1.1+git20190919.e47491e/dfu-windows.c
Examining data/dmrconfig-1.1+git20190919.e47491e/dm1801.c
Examining data/dmrconfig-1.1+git20190919.e47491e/gd77.c
Examining data/dmrconfig-1.1+git20190919.e47491e/hid-libusb.c
Examining data/dmrconfig-1.1+git20190919.e47491e/hid-macos.c
Examining data/dmrconfig-1.1+git20190919.e47491e/hid-windows.c
Examining data/dmrconfig-1.1+git20190919.e47491e/hid.c
Examining data/dmrconfig-1.1+git20190919.e47491e/main.c
Examining data/dmrconfig-1.1+git20190919.e47491e/md380.c
Examining data/dmrconfig-1.1+git20190919.e47491e/radio.c
Examining data/dmrconfig-1.1+git20190919.e47491e/rd5r.c
Examining data/dmrconfig-1.1+git20190919.e47491e/serial.c
Examining data/dmrconfig-1.1+git20190919.e47491e/uv380.c
Examining data/dmrconfig-1.1+git20190919.e47491e/radio.h
Examining data/dmrconfig-1.1+git20190919.e47491e/util.c
Examining data/dmrconfig-1.1+git20190919.e47491e/util.h
Examining data/dmrconfig-1.1+git20190919.e47491e/d868uv.c

FINAL RESULTS:

data/dmrconfig-1.1+git20190919.e47491e/d868uv.c:1667:9:  [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 (sscanf(line, "%s %s %s %s %s %s %s %s %s %s %s %s %s",
data/dmrconfig-1.1+git20190919.e47491e/d868uv.c:1855:9:  [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 (sscanf(line, "%s %s %s %s %s %s %s %s %s %s %s %s %s",
data/dmrconfig-1.1+git20190919.e47491e/d868uv.c:2013:9:  [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 (sscanf(line, "%s %s %s", num_str, name_str, chan_str) != 3)
data/dmrconfig-1.1+git20190919.e47491e/d868uv.c:2151:9:  [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 (sscanf(line, "%s %s %s %s %s %s",
data/dmrconfig-1.1+git20190919.e47491e/d868uv.c:2317:9:  [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 (sscanf(line, "%s %s %s %s %s",
data/dmrconfig-1.1+git20190919.e47491e/d868uv.c:2401:9:  [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 (sscanf(line, "%s %s %s", num_str, name_str, list_str) != 3)
data/dmrconfig-1.1+git20190919.e47491e/d868uv.c:2890:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(p, name);     p += strlen(p) + 1;
data/dmrconfig-1.1+git20190919.e47491e/d868uv.c:2891:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(p, city);     p += strlen(p) + 1;
data/dmrconfig-1.1+git20190919.e47491e/d868uv.c:2892:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(p, callsign); p += strlen(p) + 1;
data/dmrconfig-1.1+git20190919.e47491e/d868uv.c:2893:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(p, state);    p += strlen(p) + 1;
data/dmrconfig-1.1+git20190919.e47491e/d868uv.c:2894:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(p, country);  p += strlen(p) + 1;
data/dmrconfig-1.1+git20190919.e47491e/d868uv.c:2895:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(p, remarks);  p += strlen(p) + 1;
data/dmrconfig-1.1+git20190919.e47491e/dm1801.c:1531:9:  [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 (sscanf(line, "%s %s %s %s %s %s %s %s %s %s %s %s %s",
data/dmrconfig-1.1+git20190919.e47491e/dm1801.c:1666:9:  [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 (sscanf(line, "%s %s %s %s %s %s %s %s %s %s %s %s %s",
data/dmrconfig-1.1+git20190919.e47491e/dm1801.c:1790:9:  [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 (sscanf(line, "%s %s %s", num_str, name_str, chan_str) != 3)
data/dmrconfig-1.1+git20190919.e47491e/dm1801.c:1870:9:  [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 (sscanf(line, "%s %s %s %s %s %s",
data/dmrconfig-1.1+git20190919.e47491e/dm1801.c:1994:9:  [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 (sscanf(line, "%s %s %s %s %s",
data/dmrconfig-1.1+git20190919.e47491e/dm1801.c:2048:9:  [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 (sscanf(line, "%s %s %s", num_str, name_str, list_str) != 3)
data/dmrconfig-1.1+git20190919.e47491e/gd77.c:1529:9:  [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 (sscanf(line, "%s %s %s %s %s %s %s %s %s %s %s %s %s",
data/dmrconfig-1.1+git20190919.e47491e/gd77.c:1664:9:  [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 (sscanf(line, "%s %s %s %s %s %s %s %s %s %s %s %s %s",
data/dmrconfig-1.1+git20190919.e47491e/gd77.c:1788:9:  [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 (sscanf(line, "%s %s %s", num_str, name_str, chan_str) != 3)
data/dmrconfig-1.1+git20190919.e47491e/gd77.c:1868:9:  [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 (sscanf(line, "%s %s %s %s %s %s",
data/dmrconfig-1.1+git20190919.e47491e/gd77.c:1992:9:  [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 (sscanf(line, "%s %s %s %s %s",
data/dmrconfig-1.1+git20190919.e47491e/gd77.c:2046:9:  [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 (sscanf(line, "%s %s %s", num_str, name_str, list_str) != 3)
data/dmrconfig-1.1+git20190919.e47491e/md380.c:1423:9:  [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 (sscanf(line, "%s %s %s %s %s %s %s %s %s %s %s %s %s",
data/dmrconfig-1.1+git20190919.e47491e/md380.c:1558:9:  [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 (sscanf(line, "%s %s %s %s %s %s %s %s %s %s %s %s %s",
data/dmrconfig-1.1+git20190919.e47491e/md380.c:1684:9:  [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 (sscanf(line, "%s %s %s", num_str, name_str, chan_str) != 3)
data/dmrconfig-1.1+git20190919.e47491e/md380.c:1764:9:  [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 (sscanf(line, "%s %s %s %s %s %s",
data/dmrconfig-1.1+git20190919.e47491e/md380.c:1880:9:  [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 (sscanf(line, "%s %s %s %s %s",
data/dmrconfig-1.1+git20190919.e47491e/md380.c:1934:9:  [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 (sscanf(line, "%s %s %s", num_str, name_str, list_str) != 3)
data/dmrconfig-1.1+git20190919.e47491e/rd5r.c:1530:9:  [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 (sscanf(line, "%s %s %s %s %s %s %s %s %s %s %s %s %s",
data/dmrconfig-1.1+git20190919.e47491e/rd5r.c:1665:9:  [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 (sscanf(line, "%s %s %s %s %s %s %s %s %s %s %s %s %s",
data/dmrconfig-1.1+git20190919.e47491e/rd5r.c:1786:9:  [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 (sscanf(line, "%s %s %s", num_str, name_str, chan_str) != 3)
data/dmrconfig-1.1+git20190919.e47491e/rd5r.c:1866:9:  [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 (sscanf(line, "%s %s %s %s %s %s",
data/dmrconfig-1.1+git20190919.e47491e/rd5r.c:1990:9:  [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 (sscanf(line, "%s %s %s %s %s",
data/dmrconfig-1.1+git20190919.e47491e/rd5r.c:2044:9:  [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 (sscanf(line, "%s %s %s", num_str, name_str, list_str) != 3)
data/dmrconfig-1.1+git20190919.e47491e/serial.c:278:9:  [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(buf, devname);
data/dmrconfig-1.1+git20190919.e47491e/util.c:849:13:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
            strcpy(fullname, *name);
data/dmrconfig-1.1+git20190919.e47491e/util.c:851:13:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
            strcat(fullname, name2);
data/dmrconfig-1.1+git20190919.e47491e/uv380.c:1517:9:  [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 (sscanf(line, "%s %s %s %s %s %s %s %s %s %s %s %s %s",
data/dmrconfig-1.1+git20190919.e47491e/uv380.c:1654:9:  [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 (sscanf(line, "%s %s %s %s %s %s %s %s %s %s %s %s %s",
data/dmrconfig-1.1+git20190919.e47491e/uv380.c:1779:9:  [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 (sscanf(line, "%s %s %s", num_str, name_str, chan_str) != 3)
data/dmrconfig-1.1+git20190919.e47491e/uv380.c:1861:9:  [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 (sscanf(line, "%s %s %s %s %s %s",
data/dmrconfig-1.1+git20190919.e47491e/uv380.c:1977:9:  [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 (sscanf(line, "%s %s %s %s %s",
data/dmrconfig-1.1+git20190919.e47491e/uv380.c:2031:9:  [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 (sscanf(line, "%s %s %s", num_str, name_str, list_str) != 3)
data/dmrconfig-1.1+git20190919.e47491e/main.c:79: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.
        switch (getopt(argc, argv, "tcwrulv")) {
data/dmrconfig-1.1+git20190919.e47491e/d868uv.c:1138:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(data, unsorted, nchan * sizeof(uint16_t));
data/dmrconfig-1.1+git20190919.e47491e/d868uv.c:1172:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(data, unsorted, nchan * sizeof(uint32_t));
data/dmrconfig-1.1+git20190919.e47491e/d868uv.c:1659: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 num_str[256], name_str[256], rxfreq_str[256], offset_str[256];
data/dmrconfig-1.1+git20190919.e47491e/d868uv.c:1660: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 power_str[256], scanlist_str[256];
data/dmrconfig-1.1+git20190919.e47491e/d868uv.c:1661: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 tot_str[256], rxonly_str[256], admit_str[256], colorcode_str[256];
data/dmrconfig-1.1+git20190919.e47491e/d868uv.c:1662: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 slot_str[256], grouplist_str[256], contact_str[256];
data/dmrconfig-1.1+git20190919.e47491e/d868uv.c:1674:11:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    num = atoi(num_str);
data/dmrconfig-1.1+git20190919.e47491e/d868uv.c:1710:20:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        scanlist = atoi(scanlist_str);
data/dmrconfig-1.1+git20190919.e47491e/d868uv.c:1741:17:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    colorcode = atoi(colorcode_str);
data/dmrconfig-1.1+git20190919.e47491e/d868uv.c:1747:16:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    timeslot = atoi(slot_str);
data/dmrconfig-1.1+git20190919.e47491e/d868uv.c:1756:21:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        grouplist = atoi(grouplist_str);
data/dmrconfig-1.1+git20190919.e47491e/d868uv.c:1766:19:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        contact = atoi(contact_str);
data/dmrconfig-1.1+git20190919.e47491e/d868uv.c:1847: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 num_str[256], name_str[256], rxfreq_str[256], offset_str[256];
data/dmrconfig-1.1+git20190919.e47491e/d868uv.c:1848: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 power_str[256], scanlist_str[256], squelch_str[256];
data/dmrconfig-1.1+git20190919.e47491e/d868uv.c:1849: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 tot_str[256], rxonly_str[256], admit_str[256];
data/dmrconfig-1.1+git20190919.e47491e/d868uv.c:1850: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 rxtone_str[256], txtone_str[256], width_str[256];
data/dmrconfig-1.1+git20190919.e47491e/d868uv.c:1862:11:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    num = atoi(num_str);
data/dmrconfig-1.1+git20190919.e47491e/d868uv.c:1898:20:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        scanlist = atoi(scanlist_str);
data/dmrconfig-1.1+git20190919.e47491e/d868uv.c:2010: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 num_str[256], name_str[256], chan_str[256];
data/dmrconfig-1.1+git20190919.e47491e/d868uv.c:2147: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 num_str[256], name_str[256], prio1_str[256], prio2_str[256];
data/dmrconfig-1.1+git20190919.e47491e/d868uv.c:2148: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 tx_str[256], chan_str[256];
data/dmrconfig-1.1+git20190919.e47491e/d868uv.c:2155:12:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    snum = atoi(num_str);
data/dmrconfig-1.1+git20190919.e47491e/d868uv.c:2171:17:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        prio1 = atoi(prio1_str);
data/dmrconfig-1.1+git20190919.e47491e/d868uv.c:2183:17:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        prio2 = atoi(prio2_str);
data/dmrconfig-1.1+git20190919.e47491e/d868uv.c:2314: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 num_str[256], name_str[256], type_str[256], id_str[256], rxalert_str[256];
data/dmrconfig-1.1+git20190919.e47491e/d868uv.c:2321:12:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    cnum = atoi(num_str);
data/dmrconfig-1.1+git20190919.e47491e/d868uv.c:2343:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    id = atoi(id_str);
data/dmrconfig-1.1+git20190919.e47491e/d868uv.c:2398: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 num_str[256], name_str[256], list_str[256];
data/dmrconfig-1.1+git20190919.e47491e/dfu-libusb.c:184:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char cmd[2] = { a, b };
data/dmrconfig-1.1+git20190919.e47491e/dfu-libusb.c:205:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char cmd[5] = { 0x21,
data/dmrconfig-1.1+git20190919.e47491e/dfu-libusb.c:230:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char cmd[5] = { 0x41,
data/dmrconfig-1.1+git20190919.e47491e/dfu-libusb.c:431:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char cmd[2] = { 0x91, 0x05 };
data/dmrconfig-1.1+git20190919.e47491e/dfu-windows.c:121: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(rq + 1, data, length);
data/dmrconfig-1.1+git20190919.e47491e/dfu-windows.c:254:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char cmd[2] = { a, b };
data/dmrconfig-1.1+git20190919.e47491e/dfu-windows.c:273:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char cmd[5] = { 0x21,
data/dmrconfig-1.1+git20190919.e47491e/dfu-windows.c:296:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char cmd[5] = { 0x41,
data/dmrconfig-1.1+git20190919.e47491e/dfu-windows.c:531:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char cmd[2] = { 0x91, 0x05 };
data/dmrconfig-1.1+git20190919.e47491e/dm1801.c:384: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(&radio_mem[0], "1801", 4);
data/dmrconfig-1.1+git20190919.e47491e/dm1801.c:645: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(msg, text, len < 144 ? len : 144);
data/dmrconfig-1.1+git20190919.e47491e/dm1801.c:827:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(data, unsorted, nchan * sizeof(uint16_t));
data/dmrconfig-1.1+git20190919.e47491e/dm1801.c:1523: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 num_str[256], name_str[256], rxfreq_str[256], offset_str[256];
data/dmrconfig-1.1+git20190919.e47491e/dm1801.c:1524: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 power_str[256], scanlist_str[256];
data/dmrconfig-1.1+git20190919.e47491e/dm1801.c:1525: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 tot_str[256], rxonly_str[256], admit_str[256], colorcode_str[256];
data/dmrconfig-1.1+git20190919.e47491e/dm1801.c:1526: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 slot_str[256], grouplist_str[256], contact_str[256];
data/dmrconfig-1.1+git20190919.e47491e/dm1801.c:1538:11:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    num = atoi(num_str);
data/dmrconfig-1.1+git20190919.e47491e/dm1801.c:1570:20:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        scanlist = atoi(scanlist_str);
data/dmrconfig-1.1+git20190919.e47491e/dm1801.c:1577:11:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    tot = atoi(tot_str);
data/dmrconfig-1.1+git20190919.e47491e/dm1801.c:1604:17:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    colorcode = atoi(colorcode_str);
data/dmrconfig-1.1+git20190919.e47491e/dm1801.c:1610:16:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    timeslot = atoi(slot_str);
data/dmrconfig-1.1+git20190919.e47491e/dm1801.c:1619:21:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        grouplist = atoi(grouplist_str);
data/dmrconfig-1.1+git20190919.e47491e/dm1801.c:1629:19:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        contact = atoi(contact_str);
data/dmrconfig-1.1+git20190919.e47491e/dm1801.c:1658: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 num_str[256], name_str[256], rxfreq_str[256], offset_str[256];
data/dmrconfig-1.1+git20190919.e47491e/dm1801.c:1659: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 power_str[256], scanlist_str[256], squelch_str[256];
data/dmrconfig-1.1+git20190919.e47491e/dm1801.c:1660: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 tot_str[256], rxonly_str[256], admit_str[256];
data/dmrconfig-1.1+git20190919.e47491e/dm1801.c:1661: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 rxtone_str[256], txtone_str[256], width_str[256];
data/dmrconfig-1.1+git20190919.e47491e/dm1801.c:1673:11:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    num = atoi(num_str);
data/dmrconfig-1.1+git20190919.e47491e/dm1801.c:1705:20:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        scanlist = atoi(scanlist_str);
data/dmrconfig-1.1+git20190919.e47491e/dm1801.c:1721:11:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    tot = atoi(tot_str);
data/dmrconfig-1.1+git20190919.e47491e/dm1801.c:1787: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 num_str[256], name_str[256], chan_str[256];
data/dmrconfig-1.1+git20190919.e47491e/dm1801.c:1866: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 num_str[256], name_str[256], prio1_str[256], prio2_str[256];
data/dmrconfig-1.1+git20190919.e47491e/dm1801.c:1867: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 tx_str[256], chan_str[256];
data/dmrconfig-1.1+git20190919.e47491e/dm1801.c:1874:12:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    snum = atoi(num_str);
data/dmrconfig-1.1+git20190919.e47491e/dm1801.c:1890:17:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        prio1 = atoi(prio1_str);
data/dmrconfig-1.1+git20190919.e47491e/dm1801.c:1903:17:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        prio2 = atoi(prio2_str);
data/dmrconfig-1.1+git20190919.e47491e/dm1801.c:1916:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        txchan = atoi(tx_str);
data/dmrconfig-1.1+git20190919.e47491e/dm1801.c:1991: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 num_str[256], name_str[256], type_str[256], id_str[256], rxtone_str[256];
data/dmrconfig-1.1+git20190919.e47491e/dm1801.c:1998:12:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    cnum = atoi(num_str);
data/dmrconfig-1.1+git20190919.e47491e/dm1801.c:2020:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    id = atoi(id_str);
data/dmrconfig-1.1+git20190919.e47491e/dm1801.c:2045: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 num_str[256], name_str[256], list_str[256];
data/dmrconfig-1.1+git20190919.e47491e/dm1801.c:2186: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 p[16];
data/dmrconfig-1.1+git20190919.e47491e/gd77.c:382: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(&radio_mem[0], "MD-760P", 7);
data/dmrconfig-1.1+git20190919.e47491e/gd77.c:643: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(msg, text, len < 144 ? len : 144);
data/dmrconfig-1.1+git20190919.e47491e/gd77.c:825:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(data, unsorted, nchan * sizeof(uint16_t));
data/dmrconfig-1.1+git20190919.e47491e/gd77.c:1521: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 num_str[256], name_str[256], rxfreq_str[256], offset_str[256];
data/dmrconfig-1.1+git20190919.e47491e/gd77.c:1522: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 power_str[256], scanlist_str[256];
data/dmrconfig-1.1+git20190919.e47491e/gd77.c:1523: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 tot_str[256], rxonly_str[256], admit_str[256], colorcode_str[256];
data/dmrconfig-1.1+git20190919.e47491e/gd77.c:1524: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 slot_str[256], grouplist_str[256], contact_str[256];
data/dmrconfig-1.1+git20190919.e47491e/gd77.c:1536:11:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    num = atoi(num_str);
data/dmrconfig-1.1+git20190919.e47491e/gd77.c:1568:20:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        scanlist = atoi(scanlist_str);
data/dmrconfig-1.1+git20190919.e47491e/gd77.c:1575:11:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    tot = atoi(tot_str);
data/dmrconfig-1.1+git20190919.e47491e/gd77.c:1602:17:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    colorcode = atoi(colorcode_str);
data/dmrconfig-1.1+git20190919.e47491e/gd77.c:1608:16:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    timeslot = atoi(slot_str);
data/dmrconfig-1.1+git20190919.e47491e/gd77.c:1617:21:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        grouplist = atoi(grouplist_str);
data/dmrconfig-1.1+git20190919.e47491e/gd77.c:1627:19:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        contact = atoi(contact_str);
data/dmrconfig-1.1+git20190919.e47491e/gd77.c:1656: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 num_str[256], name_str[256], rxfreq_str[256], offset_str[256];
data/dmrconfig-1.1+git20190919.e47491e/gd77.c:1657: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 power_str[256], scanlist_str[256], squelch_str[256];
data/dmrconfig-1.1+git20190919.e47491e/gd77.c:1658: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 tot_str[256], rxonly_str[256], admit_str[256];
data/dmrconfig-1.1+git20190919.e47491e/gd77.c:1659: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 rxtone_str[256], txtone_str[256], width_str[256];
data/dmrconfig-1.1+git20190919.e47491e/gd77.c:1671:11:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    num = atoi(num_str);
data/dmrconfig-1.1+git20190919.e47491e/gd77.c:1703:20:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        scanlist = atoi(scanlist_str);
data/dmrconfig-1.1+git20190919.e47491e/gd77.c:1719:11:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    tot = atoi(tot_str);
data/dmrconfig-1.1+git20190919.e47491e/gd77.c:1785: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 num_str[256], name_str[256], chan_str[256];
data/dmrconfig-1.1+git20190919.e47491e/gd77.c:1864: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 num_str[256], name_str[256], prio1_str[256], prio2_str[256];
data/dmrconfig-1.1+git20190919.e47491e/gd77.c:1865: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 tx_str[256], chan_str[256];
data/dmrconfig-1.1+git20190919.e47491e/gd77.c:1872:12:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    snum = atoi(num_str);
data/dmrconfig-1.1+git20190919.e47491e/gd77.c:1888:17:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        prio1 = atoi(prio1_str);
data/dmrconfig-1.1+git20190919.e47491e/gd77.c:1901:17:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        prio2 = atoi(prio2_str);
data/dmrconfig-1.1+git20190919.e47491e/gd77.c:1914:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        txchan = atoi(tx_str);
data/dmrconfig-1.1+git20190919.e47491e/gd77.c:1989: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 num_str[256], name_str[256], type_str[256], id_str[256], rxtone_str[256];
data/dmrconfig-1.1+git20190919.e47491e/gd77.c:1996:12:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    cnum = atoi(num_str);
data/dmrconfig-1.1+git20190919.e47491e/gd77.c:2018:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    id = atoi(id_str);
data/dmrconfig-1.1+git20190919.e47491e/gd77.c:2043: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 num_str[256], name_str[256], list_str[256];
data/dmrconfig-1.1+git20190919.e47491e/gd77.c:2184: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 p[16];
data/dmrconfig-1.1+git20190919.e47491e/hid-libusb.c:38:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static unsigned char receive_buf[42];       // receive buffer
data/dmrconfig-1.1+git20190919.e47491e/hid-libusb.c:53:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(receive_buf, t->buffer, t->actual_length);
data/dmrconfig-1.1+git20190919.e47491e/hid-libusb.c:141:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char buf[42];
data/dmrconfig-1.1+git20190919.e47491e/hid-libusb.c:142:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char reply[42];
data/dmrconfig-1.1+git20190919.e47491e/hid-libusb.c:152:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(buf+4, data, nbytes);
data/dmrconfig-1.1+git20190919.e47491e/hid-libusb.c:191: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(rdata, reply+4, rlength);
data/dmrconfig-1.1+git20190919.e47491e/hid-macos.c:36:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static unsigned char transfer_buf[42];      // device buffer
data/dmrconfig-1.1+git20190919.e47491e/hid-macos.c:37:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static unsigned char receive_buf[42];       // receive buffer
data/dmrconfig-1.1+git20190919.e47491e/hid-macos.c:47:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char buf[42];
data/dmrconfig-1.1+git20190919.e47491e/hid-macos.c:57:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(buf+4, data, nbytes);
data/dmrconfig-1.1+git20190919.e47491e/hid-macos.c:115: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(rdata, receive_buf+4, rlength);
data/dmrconfig-1.1+git20190919.e47491e/hid-macos.c:137:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(receive_buf, data, nbytes);
data/dmrconfig-1.1+git20190919.e47491e/hid-windows.c:39:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static unsigned char receive_buf[42];       // receive buffer
data/dmrconfig-1.1+git20190919.e47491e/hid-windows.c:48:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char buf[42];
data/dmrconfig-1.1+git20190919.e47491e/hid-windows.c:58:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(buf+4, data, nbytes);
data/dmrconfig-1.1+git20190919.e47491e/hid-windows.c:108: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(rdata, receive_buf+4, rlength);
data/dmrconfig-1.1+git20190919.e47491e/hid.c:51:21:  [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 unsigned char reply[38];
data/dmrconfig-1.1+git20190919.e47491e/hid.c:84:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char ack, cmd[4], reply[32+4];
data/dmrconfig-1.1+git20190919.e47491e/hid.c:111:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(data + n, reply + 4, 32);
data/dmrconfig-1.1+git20190919.e47491e/hid.c:118:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char ack, cmd[4+32];
data/dmrconfig-1.1+git20190919.e47491e/hid.c:144:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(cmd + 4, data + n, 32);
data/dmrconfig-1.1+git20190919.e47491e/main.c:166:22:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        FILE *conf = fopen(filename, "w");
data/dmrconfig-1.1+git20190919.e47491e/md380.c:347: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 charmap[16] = "0123456789:;<=>?";
data/dmrconfig-1.1+git20190919.e47491e/md380.c:698:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(data, unsorted, nchan * sizeof(uint16_t));
data/dmrconfig-1.1+git20190919.e47491e/md380.c:1415: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 num_str[256], name_str[256], rxfreq_str[256], offset_str[256];
data/dmrconfig-1.1+git20190919.e47491e/md380.c:1416: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 power_str[256], scanlist_str[256];
data/dmrconfig-1.1+git20190919.e47491e/md380.c:1417: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 tot_str[256], rxonly_str[256], admit_str[256], colorcode_str[256];
data/dmrconfig-1.1+git20190919.e47491e/md380.c:1418: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 slot_str[256], grouplist_str[256], contact_str[256];
data/dmrconfig-1.1+git20190919.e47491e/md380.c:1430:11:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    num = atoi(num_str);
data/dmrconfig-1.1+git20190919.e47491e/md380.c:1462:20:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        scanlist = atoi(scanlist_str);
data/dmrconfig-1.1+git20190919.e47491e/md380.c:1469:11:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    tot = atoi(tot_str);
data/dmrconfig-1.1+git20190919.e47491e/md380.c:1496:17:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    colorcode = atoi(colorcode_str);
data/dmrconfig-1.1+git20190919.e47491e/md380.c:1502:16:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    timeslot = atoi(slot_str);
data/dmrconfig-1.1+git20190919.e47491e/md380.c:1511:21:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        grouplist = atoi(grouplist_str);
data/dmrconfig-1.1+git20190919.e47491e/md380.c:1521:19:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        contact = atoi(contact_str);
data/dmrconfig-1.1+git20190919.e47491e/md380.c:1550: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 num_str[256], name_str[256], rxfreq_str[256], offset_str[256];
data/dmrconfig-1.1+git20190919.e47491e/md380.c:1551: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 power_str[256], scanlist_str[256], squelch_str[256];
data/dmrconfig-1.1+git20190919.e47491e/md380.c:1552: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 tot_str[256], rxonly_str[256], admit_str[256];
data/dmrconfig-1.1+git20190919.e47491e/md380.c:1553: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 rxtone_str[256], txtone_str[256], width_str[256];
data/dmrconfig-1.1+git20190919.e47491e/md380.c:1565:11:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    num = atoi(num_str);
data/dmrconfig-1.1+git20190919.e47491e/md380.c:1597:20:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        scanlist = atoi(scanlist_str);
data/dmrconfig-1.1+git20190919.e47491e/md380.c:1613:11:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    tot = atoi(tot_str);
data/dmrconfig-1.1+git20190919.e47491e/md380.c:1681: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 num_str[256], name_str[256], chan_str[256];
data/dmrconfig-1.1+git20190919.e47491e/md380.c:1760: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 num_str[256], name_str[256], prio1_str[256], prio2_str[256];
data/dmrconfig-1.1+git20190919.e47491e/md380.c:1761: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 tx_str[256], chan_str[256];
data/dmrconfig-1.1+git20190919.e47491e/md380.c:1768:12:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    snum = atoi(num_str);
data/dmrconfig-1.1+git20190919.e47491e/md380.c:1784:17:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        prio1 = atoi(prio1_str);
data/dmrconfig-1.1+git20190919.e47491e/md380.c:1796:17:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        prio2 = atoi(prio2_str);
data/dmrconfig-1.1+git20190919.e47491e/md380.c:1808:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        txchan = atoi(tx_str);
data/dmrconfig-1.1+git20190919.e47491e/md380.c:1877: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 num_str[256], name_str[256], type_str[256], id_str[256], rxtone_str[256];
data/dmrconfig-1.1+git20190919.e47491e/md380.c:1884:12:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    cnum = atoi(num_str);
data/dmrconfig-1.1+git20190919.e47491e/md380.c:1906:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    id = atoi(id_str);
data/dmrconfig-1.1+git20190919.e47491e/md380.c:1931: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 num_str[256], name_str[256], list_str[256];
data/dmrconfig-1.1+git20190919.e47491e/md380.c:2072: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 p[16];
data/dmrconfig-1.1+git20190919.e47491e/radio.c:61: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.
unsigned char radio_mem [1024*1024*2];  // Radio memory contents, up to 2 Mbytes
data/dmrconfig-1.1+git20190919.e47491e/radio.c:185: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 ident[8];
data/dmrconfig-1.1+git20190919.e47491e/radio.c:188:11:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    img = fopen(filename, "rb");
data/dmrconfig-1.1+git20190919.e47491e/radio.c:265:11:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    img = fopen(filename, "wb");
data/dmrconfig-1.1+git20190919.e47491e/radio.c:280:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char line [256], *p, *v;
data/dmrconfig-1.1+git20190919.e47491e/radio.c:284:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    conf = fopen(filename, "r");
data/dmrconfig-1.1+git20190919.e47491e/radio.c:363:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buf [40];
data/dmrconfig-1.1+git20190919.e47491e/radio.c:402:11:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    csv = fopen(filename, "r");
data/dmrconfig-1.1+git20190919.e47491e/rd5r.c:379: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(&radio_mem[0], "BF-5R", 5);
data/dmrconfig-1.1+git20190919.e47491e/rd5r.c:644: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(msg, text, len < 144 ? len : 144);
data/dmrconfig-1.1+git20190919.e47491e/rd5r.c:826:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(data, unsorted, nchan * sizeof(uint16_t));
data/dmrconfig-1.1+git20190919.e47491e/rd5r.c:1522: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 num_str[256], name_str[256], rxfreq_str[256], offset_str[256];
data/dmrconfig-1.1+git20190919.e47491e/rd5r.c:1523: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 power_str[256], scanlist_str[256];
data/dmrconfig-1.1+git20190919.e47491e/rd5r.c:1524: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 tot_str[256], rxonly_str[256], admit_str[256], colorcode_str[256];
data/dmrconfig-1.1+git20190919.e47491e/rd5r.c:1525: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 slot_str[256], grouplist_str[256], contact_str[256];
data/dmrconfig-1.1+git20190919.e47491e/rd5r.c:1537:11:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    num = atoi(num_str);
data/dmrconfig-1.1+git20190919.e47491e/rd5r.c:1569:20:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        scanlist = atoi(scanlist_str);
data/dmrconfig-1.1+git20190919.e47491e/rd5r.c:1576:11:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    tot = atoi(tot_str);
data/dmrconfig-1.1+git20190919.e47491e/rd5r.c:1603:17:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    colorcode = atoi(colorcode_str);
data/dmrconfig-1.1+git20190919.e47491e/rd5r.c:1609:16:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    timeslot = atoi(slot_str);
data/dmrconfig-1.1+git20190919.e47491e/rd5r.c:1618:21:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        grouplist = atoi(grouplist_str);
data/dmrconfig-1.1+git20190919.e47491e/rd5r.c:1628:19:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        contact = atoi(contact_str);
data/dmrconfig-1.1+git20190919.e47491e/rd5r.c:1657: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 num_str[256], name_str[256], rxfreq_str[256], offset_str[256];
data/dmrconfig-1.1+git20190919.e47491e/rd5r.c:1658: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 power_str[256], scanlist_str[256], squelch_str[256];
data/dmrconfig-1.1+git20190919.e47491e/rd5r.c:1659: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 tot_str[256], rxonly_str[256], admit_str[256];
data/dmrconfig-1.1+git20190919.e47491e/rd5r.c:1660: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 rxtone_str[256], txtone_str[256], width_str[256];
data/dmrconfig-1.1+git20190919.e47491e/rd5r.c:1672:11:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    num = atoi(num_str);
data/dmrconfig-1.1+git20190919.e47491e/rd5r.c:1704:20:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        scanlist = atoi(scanlist_str);
data/dmrconfig-1.1+git20190919.e47491e/rd5r.c:1711:15:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    squelch = atoi(squelch_str);
data/dmrconfig-1.1+git20190919.e47491e/rd5r.c:1717:11:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    tot = atoi(tot_str);
data/dmrconfig-1.1+git20190919.e47491e/rd5r.c:1783: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 num_str[256], name_str[256], chan_str[256];
data/dmrconfig-1.1+git20190919.e47491e/rd5r.c:1862: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 num_str[256], name_str[256], prio1_str[256], prio2_str[256];
data/dmrconfig-1.1+git20190919.e47491e/rd5r.c:1863: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 tx_str[256], chan_str[256];
data/dmrconfig-1.1+git20190919.e47491e/rd5r.c:1870:12:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    snum = atoi(num_str);
data/dmrconfig-1.1+git20190919.e47491e/rd5r.c:1886:17:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        prio1 = atoi(prio1_str);
data/dmrconfig-1.1+git20190919.e47491e/rd5r.c:1899:17:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        prio2 = atoi(prio2_str);
data/dmrconfig-1.1+git20190919.e47491e/rd5r.c:1912:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        txchan = atoi(tx_str);
data/dmrconfig-1.1+git20190919.e47491e/rd5r.c:1987: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 num_str[256], name_str[256], type_str[256], id_str[256], rxtone_str[256];
data/dmrconfig-1.1+git20190919.e47491e/rd5r.c:1994:12:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    cnum = atoi(num_str);
data/dmrconfig-1.1+git20190919.e47491e/rd5r.c:2016:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    id = atoi(id_str);
data/dmrconfig-1.1+git20190919.e47491e/rd5r.c:2041: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 num_str[256], name_str[256], list_str[256];
data/dmrconfig-1.1+git20190919.e47491e/rd5r.c:2182: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 p[16];
data/dmrconfig-1.1+git20190919.e47491e/serial.c:277:9:  [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(buf, "\\\\.\\");
data/dmrconfig-1.1+git20190919.e47491e/serial.c:326:10:  [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(devname, O_RDWR | O_NOCTTY | O_NONBLOCK);
data/dmrconfig-1.1+git20190919.e47491e/serial.c:454:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char devname[1024];
data/dmrconfig-1.1+git20190919.e47491e/serial.c:510: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 pattern[128];
data/dmrconfig-1.1+git20190919.e47491e/serial.c:512: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(pattern, "\\\\?\\usb#vid_%04x&pid_%04x", vid, pid);
data/dmrconfig-1.1+git20190919.e47491e/serial.c:554: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 char comname[128];
data/dmrconfig-1.1+git20190919.e47491e/serial.c:649: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.
        unsigned char ack[1];
data/dmrconfig-1.1+git20190919.e47491e/serial.c:659: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.
        unsigned char ack[1];
data/dmrconfig-1.1+git20190919.e47491e/serial.c:676:21:  [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 unsigned char reply[16];
data/dmrconfig-1.1+git20190919.e47491e/serial.c:677:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char ack[3];
data/dmrconfig-1.1+git20190919.e47491e/serial.c:723:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char cmd[6], reply[8 + DATASZ];
data/dmrconfig-1.1+git20190919.e47491e/serial.c:754:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(data + n, reply + 6, DATASZ);
data/dmrconfig-1.1+git20190919.e47491e/serial.c:762:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char ack, cmd[8 + DATASZ];
data/dmrconfig-1.1+git20190919.e47491e/serial.c:773:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(cmd + 6, data + n, DATASZ);
data/dmrconfig-1.1+git20190919.e47491e/util.c:209:12:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    return atoi(value);
data/dmrconfig-1.1+git20190919.e47491e/util.c:341:20:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void get_timestamp(char p[16])
data/dmrconfig-1.1+git20190919.e47491e/util.c:754:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char line[256];
data/dmrconfig-1.1+git20190919.e47491e/util.c:806:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char line[256];
data/dmrconfig-1.1+git20190919.e47491e/util.c:848:20:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            static char fullname[256];
data/dmrconfig-1.1+git20190919.e47491e/util.h:185:20:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void get_timestamp(char p[16]);
data/dmrconfig-1.1+git20190919.e47491e/uv380.c:359: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     callsign[16];      // ascii zero terminated
data/dmrconfig-1.1+git20190919.e47491e/uv380.c:360: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     name[100];         // name, nickname, city, state, country
data/dmrconfig-1.1+git20190919.e47491e/uv380.c:382: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 charmap[16] = "0123456789:;<=>?";
data/dmrconfig-1.1+git20190919.e47491e/uv380.c:759:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(data, unsorted, nchan * sizeof(uint16_t));
data/dmrconfig-1.1+git20190919.e47491e/uv380.c:1509: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 num_str[256], name_str[256], rxfreq_str[256], offset_str[256];
data/dmrconfig-1.1+git20190919.e47491e/uv380.c:1510: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 power_str[256], scanlist_str[256];
data/dmrconfig-1.1+git20190919.e47491e/uv380.c:1511: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 tot_str[256], rxonly_str[256], admit_str[256], colorcode_str[256];
data/dmrconfig-1.1+git20190919.e47491e/uv380.c:1512: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 slot_str[256], grouplist_str[256], contact_str[256];
data/dmrconfig-1.1+git20190919.e47491e/uv380.c:1524:11:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    num = atoi(num_str);
data/dmrconfig-1.1+git20190919.e47491e/uv380.c:1558:20:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        scanlist = atoi(scanlist_str);
data/dmrconfig-1.1+git20190919.e47491e/uv380.c:1565:11:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    tot = atoi(tot_str);
data/dmrconfig-1.1+git20190919.e47491e/uv380.c:1592:17:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    colorcode = atoi(colorcode_str);
data/dmrconfig-1.1+git20190919.e47491e/uv380.c:1598:16:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    timeslot = atoi(slot_str);
data/dmrconfig-1.1+git20190919.e47491e/uv380.c:1607:21:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        grouplist = atoi(grouplist_str);
data/dmrconfig-1.1+git20190919.e47491e/uv380.c:1617:19:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        contact = atoi(contact_str);
data/dmrconfig-1.1+git20190919.e47491e/uv380.c:1646: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 num_str[256], name_str[256], rxfreq_str[256], offset_str[256];
data/dmrconfig-1.1+git20190919.e47491e/uv380.c:1647: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 power_str[256], scanlist_str[256], squelch_str[256];
data/dmrconfig-1.1+git20190919.e47491e/uv380.c:1648: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 tot_str[256], rxonly_str[256], admit_str[256];
data/dmrconfig-1.1+git20190919.e47491e/uv380.c:1649: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 rxtone_str[256], txtone_str[256], width_str[256];
data/dmrconfig-1.1+git20190919.e47491e/uv380.c:1661:11:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    num = atoi(num_str);
data/dmrconfig-1.1+git20190919.e47491e/uv380.c:1695:20:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        scanlist = atoi(scanlist_str);
data/dmrconfig-1.1+git20190919.e47491e/uv380.c:1702:15:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    squelch = atoi(squelch_str);
data/dmrconfig-1.1+git20190919.e47491e/uv380.c:1708:11:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    tot = atoi(tot_str);
data/dmrconfig-1.1+git20190919.e47491e/uv380.c:1776: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 num_str[256], name_str[256], chan_str[256], *eptr;
data/dmrconfig-1.1+git20190919.e47491e/uv380.c:1857: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 num_str[256], name_str[256], prio1_str[256], prio2_str[256];
data/dmrconfig-1.1+git20190919.e47491e/uv380.c:1858: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 tx_str[256], chan_str[256];
data/dmrconfig-1.1+git20190919.e47491e/uv380.c:1865:12:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    snum = atoi(num_str);
data/dmrconfig-1.1+git20190919.e47491e/uv380.c:1881:17:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        prio1 = atoi(prio1_str);
data/dmrconfig-1.1+git20190919.e47491e/uv380.c:1893:17:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        prio2 = atoi(prio2_str);
data/dmrconfig-1.1+git20190919.e47491e/uv380.c:1905:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        txchan = atoi(tx_str);
data/dmrconfig-1.1+git20190919.e47491e/uv380.c:1974: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 num_str[256], name_str[256], type_str[256], id_str[256], rxtone_str[256];
data/dmrconfig-1.1+git20190919.e47491e/uv380.c:1981:12:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    cnum = atoi(num_str);
data/dmrconfig-1.1+git20190919.e47491e/uv380.c:2003:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    id = atoi(id_str);
data/dmrconfig-1.1+git20190919.e47491e/uv380.c:2028: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 num_str[256], name_str[256], list_str[256];
data/dmrconfig-1.1+git20190919.e47491e/uv380.c:2169: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 p[16];
data/dmrconfig-1.1+git20190919.e47491e/uv380.c:2425:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char line[256];
data/dmrconfig-1.1+git20190919.e47491e/d868uv.c:2890: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).
        strcpy(p, name);     p += strlen(p) + 1;
data/dmrconfig-1.1+git20190919.e47491e/d868uv.c:2891: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).
        strcpy(p, city);     p += strlen(p) + 1;
data/dmrconfig-1.1+git20190919.e47491e/d868uv.c:2892: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).
        strcpy(p, callsign); p += strlen(p) + 1;
data/dmrconfig-1.1+git20190919.e47491e/d868uv.c:2893: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).
        strcpy(p, state);    p += strlen(p) + 1;
data/dmrconfig-1.1+git20190919.e47491e/d868uv.c:2894: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).
        strcpy(p, country);  p += strlen(p) + 1;
data/dmrconfig-1.1+git20190919.e47491e/d868uv.c:2895: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).
        strcpy(p, remarks);  p += strlen(p) + 1;
data/dmrconfig-1.1+git20190919.e47491e/dfu-libusb.c:166:13:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
            usleep(100000);
data/dmrconfig-1.1+git20190919.e47491e/dfu-libusb.c:199:5:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
    usleep(100000);
data/dmrconfig-1.1+git20190919.e47491e/dfu-libusb.c:345:5:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
    usleep(100000);
data/dmrconfig-1.1+git20190919.e47491e/dfu-windows.c:236:13:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
            usleep(100000);
data/dmrconfig-1.1+git20190919.e47491e/dfu-windows.c:267:5:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
    usleep(100000);
data/dmrconfig-1.1+git20190919.e47491e/dfu-windows.c:447:5:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
    usleep(100000);
data/dmrconfig-1.1+git20190919.e47491e/dm1801.c:641: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(text);
data/dmrconfig-1.1+git20190919.e47491e/gd77.c:639: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(text);
data/dmrconfig-1.1+git20190919.e47491e/hid-macos.c:82:9:  [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(100);
data/dmrconfig-1.1+git20190919.e47491e/hid-macos.c:219:9:  [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(10000);
data/dmrconfig-1.1+git20190919.e47491e/radio.c:300: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).
        v = line + strlen(line) - 1;
data/dmrconfig-1.1+git20190919.e47491e/rd5r.c:640: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(text);
data/dmrconfig-1.1+git20190919.e47491e/serial.c:245:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    got = read(fd, data, (len > 1024) ? 1024 : len);
data/dmrconfig-1.1+git20190919.e47491e/serial.c:272:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        char *buf = alloca(5 + strlen(devname));
data/dmrconfig-1.1+git20190919.e47491e/serial.c:513: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).
    pattern_len = strlen(pattern);
data/dmrconfig-1.1+git20190919.e47491e/serial.c:697:9:  [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(500000);
data/dmrconfig-1.1+git20190919.e47491e/serial.c:711:9:  [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(500000);
data/dmrconfig-1.1+git20190919.e47491e/util.c:135:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    unsigned len = strlen(line);
data/dmrconfig-1.1+git20190919.e47491e/util.c:140: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).
    char *e = line + strlen(line) - 1;
data/dmrconfig-1.1+git20190919.e47491e/util.c:153: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).
        int last = strlen(line) - 1;
data/dmrconfig-1.1+git20190919.e47491e/util.c:171:5:  [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(msec * 1000);
data/dmrconfig-1.1+git20190919.e47491e/util.c:850:13:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
            strcat(fullname, " ");
data/dmrconfig-1.1+git20190919.e47491e/uv380.c:2468:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(cs->callsign, callsign, sizeof(cs->callsign));
data/dmrconfig-1.1+git20190919.e47491e/uv380.c:2471:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(cs->name, line, sizeof(cs->name));

ANALYSIS SUMMARY:

Hits = 331
Lines analyzed = 20092 in approximately 0.55 seconds (36660 lines/second)
Physical Source Lines of Code (SLOC) = 14295
Hits@level = [0] 1712 [1]  30 [2] 255 [3]   1 [4]  45 [5]   0
Hits@level+ = [0+] 2043 [1+] 331 [2+] 301 [3+]  46 [4+]  45 [5+]   0
Hits/KSLOC@level+ = [0+] 142.917 [1+] 23.1549 [2+] 21.0563 [3+] 3.21791 [4+] 3.14795 [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.