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/osmo-pcu-0.8.0/include/osmocom/pcu/pcuif_proto.h
Examining data/osmo-pcu-0.8.0/src/bts.cpp
Examining data/osmo-pcu-0.8.0/src/bts.h
Examining data/osmo-pcu-0.8.0/src/coding_scheme.c
Examining data/osmo-pcu-0.8.0/src/coding_scheme.h
Examining data/osmo-pcu-0.8.0/src/csn1.cpp
Examining data/osmo-pcu-0.8.0/src/csn1.h
Examining data/osmo-pcu-0.8.0/src/cxx_linuxlist.h
Examining data/osmo-pcu-0.8.0/src/decoding.cpp
Examining data/osmo-pcu-0.8.0/src/decoding.h
Examining data/osmo-pcu-0.8.0/src/egprs_rlc_compression.cpp
Examining data/osmo-pcu-0.8.0/src/egprs_rlc_compression.h
Examining data/osmo-pcu-0.8.0/src/encoding.cpp
Examining data/osmo-pcu-0.8.0/src/encoding.h
Examining data/osmo-pcu-0.8.0/src/gprs_bssgp_pcu.cpp
Examining data/osmo-pcu-0.8.0/src/gprs_bssgp_pcu.h
Examining data/osmo-pcu-0.8.0/src/gprs_codel.c
Examining data/osmo-pcu-0.8.0/src/gprs_codel.h
Examining data/osmo-pcu-0.8.0/src/gprs_coding_scheme.cpp
Examining data/osmo-pcu-0.8.0/src/gprs_coding_scheme.h
Examining data/osmo-pcu-0.8.0/src/gprs_debug.cpp
Examining data/osmo-pcu-0.8.0/src/gprs_debug.h
Examining data/osmo-pcu-0.8.0/src/gprs_ms.cpp
Examining data/osmo-pcu-0.8.0/src/gprs_ms.h
Examining data/osmo-pcu-0.8.0/src/gprs_ms_storage.cpp
Examining data/osmo-pcu-0.8.0/src/gprs_ms_storage.h
Examining data/osmo-pcu-0.8.0/src/gprs_rlcmac.cpp
Examining data/osmo-pcu-0.8.0/src/gprs_rlcmac.h
Examining data/osmo-pcu-0.8.0/src/gprs_rlcmac_meas.cpp
Examining data/osmo-pcu-0.8.0/src/gprs_rlcmac_sched.cpp
Examining data/osmo-pcu-0.8.0/src/gprs_rlcmac_ts_alloc.cpp
Examining data/osmo-pcu-0.8.0/src/gsm_rlcmac.cpp
Examining data/osmo-pcu-0.8.0/src/gsm_rlcmac.h
Examining data/osmo-pcu-0.8.0/src/gsm_timer.cpp
Examining data/osmo-pcu-0.8.0/src/gsm_timer.h
Examining data/osmo-pcu-0.8.0/src/llc.cpp
Examining data/osmo-pcu-0.8.0/src/llc.h
Examining data/osmo-pcu-0.8.0/src/mslot_class.c
Examining data/osmo-pcu-0.8.0/src/mslot_class.h
Examining data/osmo-pcu-0.8.0/src/osmo-bts-litecell15/lc15_l1_hw.c
Examining data/osmo-pcu-0.8.0/src/osmo-bts-litecell15/lc15_l1_if.c
Examining data/osmo-pcu-0.8.0/src/osmo-bts-litecell15/lc15_l1_if.h
Examining data/osmo-pcu-0.8.0/src/osmo-bts-litecell15/lc15bts.c
Examining data/osmo-pcu-0.8.0/src/osmo-bts-litecell15/lc15bts.h
Examining data/osmo-pcu-0.8.0/src/osmo-bts-oc2g/oc2g_l1_hw.c
Examining data/osmo-pcu-0.8.0/src/osmo-bts-oc2g/oc2g_l1_if.c
Examining data/osmo-pcu-0.8.0/src/osmo-bts-oc2g/oc2g_l1_if.h
Examining data/osmo-pcu-0.8.0/src/osmo-bts-oc2g/oc2gbts.c
Examining data/osmo-pcu-0.8.0/src/osmo-bts-oc2g/oc2gbts.h
Examining data/osmo-pcu-0.8.0/src/osmo-bts-sysmo/femtobts.c
Examining data/osmo-pcu-0.8.0/src/osmo-bts-sysmo/femtobts.h
Examining data/osmo-pcu-0.8.0/src/osmo-bts-sysmo/sysmo_l1_fwd.c
Examining data/osmo-pcu-0.8.0/src/osmo-bts-sysmo/sysmo_l1_hw.c
Examining data/osmo-pcu-0.8.0/src/osmo-bts-sysmo/sysmo_l1_if.c
Examining data/osmo-pcu-0.8.0/src/osmo-bts-sysmo/sysmo_l1_if.h
Examining data/osmo-pcu-0.8.0/src/osmobts_sock.cpp
Examining data/osmo-pcu-0.8.0/src/pcu_l1_if.cpp
Examining data/osmo-pcu-0.8.0/src/pcu_l1_if.h
Examining data/osmo-pcu-0.8.0/src/pcu_main.cpp
Examining data/osmo-pcu-0.8.0/src/pcu_utils.h
Examining data/osmo-pcu-0.8.0/src/pcu_vty.c
Examining data/osmo-pcu-0.8.0/src/pcu_vty.h
Examining data/osmo-pcu-0.8.0/src/pcu_vty_functions.cpp
Examining data/osmo-pcu-0.8.0/src/pcu_vty_functions.h
Examining data/osmo-pcu-0.8.0/src/pdch.cpp
Examining data/osmo-pcu-0.8.0/src/pdch.h
Examining data/osmo-pcu-0.8.0/src/poll_controller.cpp
Examining data/osmo-pcu-0.8.0/src/poll_controller.h
Examining data/osmo-pcu-0.8.0/src/rlc.cpp
Examining data/osmo-pcu-0.8.0/src/rlc.h
Examining data/osmo-pcu-0.8.0/src/sba.cpp
Examining data/osmo-pcu-0.8.0/src/sba.h
Examining data/osmo-pcu-0.8.0/src/tbf.cpp
Examining data/osmo-pcu-0.8.0/src/tbf.h
Examining data/osmo-pcu-0.8.0/src/tbf_dl.cpp
Examining data/osmo-pcu-0.8.0/src/tbf_dl.h
Examining data/osmo-pcu-0.8.0/src/tbf_ul.cpp
Examining data/osmo-pcu-0.8.0/src/tbf_ul.h
Examining data/osmo-pcu-0.8.0/tests/alloc/AllocTest.cpp
Examining data/osmo-pcu-0.8.0/tests/alloc/MslotTest.cpp
Examining data/osmo-pcu-0.8.0/tests/app_info/AppInfoTest.cpp
Examining data/osmo-pcu-0.8.0/tests/bitcomp/BitcompTest.cpp
Examining data/osmo-pcu-0.8.0/tests/codel/codel_test.c
Examining data/osmo-pcu-0.8.0/tests/edge/EdgeTest.cpp
Examining data/osmo-pcu-0.8.0/tests/emu/gprs_tests.h
Examining data/osmo-pcu-0.8.0/tests/emu/openbsc_clone.c
Examining data/osmo-pcu-0.8.0/tests/emu/openbsc_clone.h
Examining data/osmo-pcu-0.8.0/tests/emu/pcu_emu.cpp
Examining data/osmo-pcu-0.8.0/tests/emu/test_pdp_activation.cpp
Examining data/osmo-pcu-0.8.0/tests/emu/test_replay_gprs_attach.cpp
Examining data/osmo-pcu-0.8.0/tests/fn/FnTest.cpp
Examining data/osmo-pcu-0.8.0/tests/llc/LlcTest.cpp
Examining data/osmo-pcu-0.8.0/tests/llist/LListTest.cpp
Examining data/osmo-pcu-0.8.0/tests/ms/MsTest.cpp
Examining data/osmo-pcu-0.8.0/tests/rlcmac/RLCMACTest.cpp
Examining data/osmo-pcu-0.8.0/tests/tbf/TbfTest.cpp
Examining data/osmo-pcu-0.8.0/tests/types/TypesTest.cpp

FINAL RESULTS:

data/osmo-pcu-0.8.0/src/gprs_rlcmac_ts_alloc.cpp:710:3:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
		snprintf(slot_info, 9, OSMO_BIT_SPEC, OSMO_BIT_PRINT_EX(reserved_ul_slots, 'u'));
data/osmo-pcu-0.8.0/src/gprs_rlcmac_ts_alloc.cpp:714:3:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
		snprintf(slot_info, 9, OSMO_BIT_SPEC, OSMO_BIT_PRINT_EX(reserved_dl_slots, 'd'));
data/osmo-pcu-0.8.0/src/mslot_class.c:259:2:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	snprintf(buf, 9, OSMO_BIT_SPEC, OSMO_BIT_PRINT_EX(dl_mask, 'D'));
data/osmo-pcu-0.8.0/tests/bitcomp/BitcompTest.cpp:22:2:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	fprintf(stderr, fmt, ## args)
data/osmo-pcu-0.8.0/src/osmo-bts-sysmo/sysmo_l1_fwd.c:105:19:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	char *bts_host = getenv("L1FWD_BTS_HOST");
data/osmo-pcu-0.8.0/src/pcu_main.cpp:105:7:  [3] (buffer) getopt_long:
  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.
		c = getopt_long(argc, argv, "hc:m:n:Vr:De:i:",
data/osmo-pcu-0.8.0/tests/alloc/AllocTest.cpp:804:6:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if (getenv("LOGL_DEBUG"))
data/osmo-pcu-0.8.0/tests/bitcomp/BitcompTest.cpp:201:6:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if (getenv("TALLOC_REPORT_FULL"))
data/osmo-pcu-0.8.0/tests/edge/EdgeTest.cpp:1425:6:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if (getenv("TALLOC_REPORT_FULL"))
data/osmo-pcu-0.8.0/tests/llc/LlcTest.cpp:238:6:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if (getenv("TALLOC_REPORT_FULL"))
data/osmo-pcu-0.8.0/tests/ms/MsTest.cpp:631:6:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if (getenv("TALLOC_REPORT_FULL"))
data/osmo-pcu-0.8.0/tests/tbf/TbfTest.cpp:3322:6:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if (getenv("TALLOC_REPORT_FULL"))
data/osmo-pcu-0.8.0/include/osmocom/pcu/pcuif_proto.h:60:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char		text[TXT_MAX_LEN]; /* Text to be transmitted to BTS */
data/osmo-pcu-0.8.0/src/egprs_rlc_compression.cpp:62:23:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		len = strlen((const char *)cdwd[idx]);
data/osmo-pcu-0.8.0/src/egprs_rlc_compression.cpp:285:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
const char *one_run_len_code_list[EGPRS_CODEWORDS] = {
data/osmo-pcu-0.8.0/src/egprs_rlc_compression.cpp:367:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
const char *zero_run_len_code_list[EGPRS_CODEWORDS] = {
data/osmo-pcu-0.8.0/src/egprs_rlc_compression.cpp:608:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(bv->data, crbb_bitmap, (crbb_len+7)/8);
data/osmo-pcu-0.8.0/src/encoding.cpp:793:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char rbb[65];
data/osmo-pcu-0.8.0/src/gprs_bssgp_pcu.cpp:91:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char imsi[OSMO_IMSI_BUF_SIZE] = "000";
data/osmo-pcu-0.8.0/src/gprs_bssgp_pcu.cpp:176:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char imsi[16];
data/osmo-pcu-0.8.0/src/gprs_ms.h:162:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char m_imsi[16];
data/osmo-pcu-0.8.0/src/gprs_rlcmac_meas.cpp:92:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(rssi_tv, &now_tv, sizeof(*rssi_tv));
data/osmo-pcu-0.8.0/src/gprs_rlcmac_meas.cpp:143:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(loss_tv, &now_tv, sizeof(*loss_tv));
data/osmo-pcu-0.8.0/src/gprs_rlcmac_meas.cpp:188:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(bw_tv, &now_tv, sizeof(*bw_tv));
data/osmo-pcu-0.8.0/src/gprs_rlcmac_sched.cpp:347:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(msgb_put(msg, 23), rlcmac_dl_idle, 23);
data/osmo-pcu-0.8.0/src/gprs_rlcmac_ts_alloc.cpp:523:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char slot_info[9] = {0};
data/osmo-pcu-0.8.0/src/gprs_rlcmac_ts_alloc.cpp:698:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char slot_info[9] = { 0 };
data/osmo-pcu-0.8.0/src/gprs_rlcmac_ts_alloc.cpp:775:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char slot_info[9] = { 0 };
data/osmo-pcu-0.8.0/src/gsm_rlcmac.h:351: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 TMSI[TMSI_LEN];
data/osmo-pcu-0.8.0/src/gsm_rlcmac.h:352: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 IMEI[IMEI_LEN - 2];
data/osmo-pcu-0.8.0/src/gsm_rlcmac.h:353: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 IMSI[IMEI_LEN - 2];
data/osmo-pcu-0.8.0/src/gsm_rlcmac.h:354: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 IMEISV[IMEISV_LEN - 2];
data/osmo-pcu-0.8.0/src/llc.cpp:74:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(frame + m_length, data, len);
data/osmo-pcu-0.8.0/src/llc.h:117:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(data, frame + m_index, len);
data/osmo-pcu-0.8.0/src/mslot_class.c:184:15:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 *digit[10] = { "0","1","2","3","4","5","6","7","8","9" };
data/osmo-pcu-0.8.0/src/osmo-bts-litecell15/lc15_l1_hw.c:140: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[PATH_MAX];
data/osmo-pcu-0.8.0/src/osmo-bts-litecell15/lc15_l1_hw.c:150:7:  [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).
	rc = open(buf, O_RDONLY);
data/osmo-pcu-0.8.0/src/osmo-bts-litecell15/lc15_l1_hw.c:171:7:  [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).
	rc = open(buf, O_WRONLY);
data/osmo-pcu-0.8.0/src/osmo-bts-litecell15/lc15_l1_if.c:341:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(msu_param->u8Buffer, data, len);
data/osmo-pcu-0.8.0/src/osmo-bts-oc2g/oc2g_l1_hw.c:140: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[PATH_MAX];
data/osmo-pcu-0.8.0/src/osmo-bts-oc2g/oc2g_l1_hw.c:150:7:  [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).
	rc = open(buf, O_RDONLY);
data/osmo-pcu-0.8.0/src/osmo-bts-oc2g/oc2g_l1_hw.c:171:7:  [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).
	rc = open(buf, O_WRONLY);
data/osmo-pcu-0.8.0/src/osmo-bts-oc2g/oc2g_l1_if.c:340:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(msu_param->u8Buffer, data, len);
data/osmo-pcu-0.8.0/src/osmo-bts-sysmo/sysmo_l1_hw.c:156:7:  [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).
	rc = open(rd_devnames[q], O_RDONLY);
data/osmo-pcu-0.8.0/src/osmo-bts-sysmo/sysmo_l1_hw.c:174:7:  [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).
	rc = open(wr_devnames[q], O_WRONLY);
data/osmo-pcu-0.8.0/src/osmo-bts-sysmo/sysmo_l1_if.c:330:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(msu_param->u8Buffer, data, len);
data/osmo-pcu-0.8.0/src/pcu_l1_if.cpp:165:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(data_req->data, data, len);
data/osmo-pcu-0.8.0/src/pcu_l1_if.cpp:283:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(bts->si13, data, GSM_MACBLOCK_LEN);
data/osmo-pcu-0.8.0/src/pcu_main.cpp:121: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).
			spoof_mcc = atoi(optarg);
data/osmo-pcu-0.8.0/src/pcu_main.cpp:137:14:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			rt_prio = atoi(optarg);
data/osmo-pcu-0.8.0/src/pcu_vty.c:331: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).
	bts->fc_interval = atoi(argv[0]);
data/osmo-pcu-0.8.0/src/pcu_vty.c:346:28:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	bts->fc_bvc_bucket_size = atoi(argv[0]);
data/osmo-pcu-0.8.0/src/pcu_vty.c:370:26:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	bts->fc_bvc_leak_rate = atoi(argv[0]);
data/osmo-pcu-0.8.0/src/pcu_vty.c:394:27:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	bts->fc_ms_bucket_size = atoi(argv[0]);
data/osmo-pcu-0.8.0/src/pcu_vty.c:418:25:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	bts->fc_ms_leak_rate = atoi(argv[0]);
data/osmo-pcu-0.8.0/src/pcu_vty.c:443:24:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	bts->fc_bucket_time = atoi(argv[0]);
data/osmo-pcu-0.8.0/src/pcu_vty.c:470: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).
	uint8_t cs = atoi(argv[0]);
data/osmo-pcu-0.8.0/src/pcu_vty.c:475:24:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		bts->initial_cs_ul = atoi(argv[1]);
data/osmo-pcu-0.8.0/src/pcu_vty.c:504: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).
	uint8_t cs = atoi(argv[0]);
data/osmo-pcu-0.8.0/src/pcu_vty.c:508: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).
		bts->max_cs_ul = atoi(argv[1]);
data/osmo-pcu-0.8.0/src/pcu_vty.c:538: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).
	uint8_t cs = atoi(argv[0]);
data/osmo-pcu-0.8.0/src/pcu_vty.c:542:25:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		bts->initial_mcs_ul = atoi(argv[1]);
data/osmo-pcu-0.8.0/src/pcu_vty.c:571: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).
	uint8_t mcs = atoi(argv[0]);
data/osmo-pcu-0.8.0/src/pcu_vty.c:575: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).
		bts->max_mcs_ul = atoi(argv[1]);
data/osmo-pcu-0.8.0/src/pcu_vty.c:622: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).
	uint16_t b = atoi(argv[0]);
data/osmo-pcu-0.8.0/src/pcu_vty.c:626: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).
		uint16_t f = atoi(argv[1]);
data/osmo-pcu-0.8.0/src/pcu_vty.c:644: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).
	uint16_t csec = atoi(argv[0]);
data/osmo-pcu-0.8.0/src/pcu_vty.c:685: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).
	uint16_t csec = atoi(argv[0]);
data/osmo-pcu-0.8.0/src/pcu_vty.c:724: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).
	uint16_t csec = atoi(argv[0]);
data/osmo-pcu-0.8.0/src/pcu_vty.c:752: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).
	uint16_t csec = atoi(argv[0]);
data/osmo-pcu-0.8.0/src/pcu_vty.c:831: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).
	bts->alpha = atoi(argv[0]);
data/osmo-pcu-0.8.0/src/pcu_vty.c:844: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).
	bts->gamma = atoi(argv[0]) / 2;
data/osmo-pcu-0.8.0/src/pcu_vty.c:868:44:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	if (osmo_tdef_set(bts->T_defs_pcu, -2031, atoi(argv[0]), OSMO_TDEF_MS) < 0)
data/osmo-pcu-0.8.0/src/pcu_vty.c:923:44:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	if (osmo_tdef_set(bts->T_defs_pcu, -2030, atoi(argv[0]), OSMO_TDEF_S) < 0)
data/osmo-pcu-0.8.0/src/pcu_vty.c:950:24:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	uint8_t lower_limit = atoi(argv[0]);
data/osmo-pcu-0.8.0/src/pcu_vty.c:951:24:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	uint8_t upper_limit = atoi(argv[1]);
data/osmo-pcu-0.8.0/src/pcu_vty.c:989:32:  [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).
	bts->cs_downgrade_threshold = atoi(argv[0]);
data/osmo-pcu-0.8.0/src/pcu_vty.c:1024: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).
	uint8_t cs1_high = atoi(argv[0]);
data/osmo-pcu-0.8.0/src/pcu_vty.c:1025: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).
	uint8_t cs2_low = atoi(argv[1]);
data/osmo-pcu-0.8.0/src/pcu_vty.c:1026: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).
	uint8_t cs2_high = atoi(argv[2]);
data/osmo-pcu-0.8.0/src/pcu_vty.c:1027: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).
	uint8_t cs3_low = atoi(argv[3]);
data/osmo-pcu-0.8.0/src/pcu_vty.c:1028: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).
	uint8_t cs3_high = atoi(argv[4]);
data/osmo-pcu-0.8.0/src/pcu_vty.c:1029: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).
	uint8_t cs4_low = atoi(argv[5]);
data/osmo-pcu-0.8.0/src/pcu_vty.c:1073:34:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	bts->mcs_lqual_ranges[0].high = atoi(argv[0]);
data/osmo-pcu-0.8.0/src/pcu_vty.c:1074:34:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	bts->mcs_lqual_ranges[1].low  = atoi(argv[1]);
data/osmo-pcu-0.8.0/src/pcu_vty.c:1075:34:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	bts->mcs_lqual_ranges[1].high = atoi(argv[2]);
data/osmo-pcu-0.8.0/src/pcu_vty.c:1076:34:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	bts->mcs_lqual_ranges[2].low  = atoi(argv[3]);
data/osmo-pcu-0.8.0/src/pcu_vty.c:1077:34:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	bts->mcs_lqual_ranges[2].high = atoi(argv[4]);
data/osmo-pcu-0.8.0/src/pcu_vty.c:1078:34:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	bts->mcs_lqual_ranges[3].low  = atoi(argv[5]);
data/osmo-pcu-0.8.0/src/pcu_vty.c:1079:35:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	bts->mcs_lqual_ranges[3].high  = atoi(argv[6]);
data/osmo-pcu-0.8.0/src/pcu_vty.c:1080:34:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	bts->mcs_lqual_ranges[4].low  = atoi(argv[7]);
data/osmo-pcu-0.8.0/src/pcu_vty.c:1081:35:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	bts->mcs_lqual_ranges[4].high  = atoi(argv[8]);
data/osmo-pcu-0.8.0/src/pcu_vty.c:1082:34:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	bts->mcs_lqual_ranges[5].low  = atoi(argv[9]);
data/osmo-pcu-0.8.0/src/pcu_vty.c:1083:35:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	bts->mcs_lqual_ranges[5].high  = atoi(argv[10]);
data/osmo-pcu-0.8.0/src/pcu_vty.c:1084:34:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	bts->mcs_lqual_ranges[6].low  = atoi(argv[11]);
data/osmo-pcu-0.8.0/src/pcu_vty.c:1085:35:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	bts->mcs_lqual_ranges[6].high  = atoi(argv[12]);
data/osmo-pcu-0.8.0/src/pcu_vty.c:1086:34:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	bts->mcs_lqual_ranges[7].low  = atoi(argv[13]);
data/osmo-pcu-0.8.0/src/pcu_vty.c:1087:35:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	bts->mcs_lqual_ranges[7].high  = atoi(argv[14]);
data/osmo-pcu-0.8.0/src/pcu_vty.c:1088:34:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	bts->mcs_lqual_ranges[8].low  = atoi(argv[15]);
data/osmo-pcu-0.8.0/src/pdch.cpp:262:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&pag->identity_lv[1], mi, mi_len);
data/osmo-pcu-0.8.0/src/pdch.cpp:388:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char show_bits[RLC_GPRS_WS + 1];
data/osmo-pcu-0.8.0/src/pdch.cpp:452:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char show_bits[RLC_EGPRS_MAX_WS + 1];
data/osmo-pcu-0.8.0/src/rlc.cpp:49:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(block, data, data_len);
data/osmo-pcu-0.8.0/src/tbf.h:326:15:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 *tbf_state_name[6];
data/osmo-pcu-0.8.0/src/tbf.h:345: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.
	mutable char m_name_buf[60];
data/osmo-pcu-0.8.0/src/tbf_dl.cpp:119:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(msgb_put(llc_msg, len), data, len);
data/osmo-pcu-0.8.0/src/tbf_dl.cpp:909:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char info[RLC_MAX_WS + 1];
data/osmo-pcu-0.8.0/src/tbf_dl.cpp:1000:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char show_v_b[RLC_MAX_SNS + 1];
data/osmo-pcu-0.8.0/src/tbf_dl.cpp:1001:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char show_rbb[RLC_MAX_SNS + 1];
data/osmo-pcu-0.8.0/src/tbf_dl.cpp:1045:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char show_rbb[65];
data/osmo-pcu-0.8.0/src/tbf_dl.cpp:1046:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char show_v_b[RLC_MAX_SNS + 1];
data/osmo-pcu-0.8.0/tests/app_info/AppInfoTest.cpp:167:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(req.data, req_data, 3);
data/osmo-pcu-0.8.0/tests/emu/gprs_tests.h:56:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(msg->l3h, data, len);
data/osmo-pcu-0.8.0/tests/emu/test_pdp_activation.cpp:111:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&tmsi, TLVP_VAL(&ack_tp, GSM48_IE_GMM_ALLOC_PTMSI) + 1, 4);
data/osmo-pcu-0.8.0/tests/llc/LlcTest.cpp:55:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(msg_data, data, len);
data/osmo-pcu-0.8.0/tests/rlcmac/RLCMACTest.cpp:231:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(msgb_put(m, 13), urbb->URBB, 13);
data/osmo-pcu-0.8.0/tests/tbf/TbfTest.cpp:470:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char imsi[16] = {0};
data/osmo-pcu-0.8.0/tests/tbf/TbfTest.cpp:2094:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buf[32];
data/osmo-pcu-0.8.0/tests/tbf/TbfTest.cpp:2121:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buf[32];
data/osmo-pcu-0.8.0/tests/types/TypesTest.cpp:205:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char win_rbb[65];
data/osmo-pcu-0.8.0/tests/types/TypesTest.cpp:353:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char show_rbb[65];
data/osmo-pcu-0.8.0/tests/types/TypesTest.cpp:640:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char to_dump[256] = { 0 };
data/osmo-pcu-0.8.0/tests/types/TypesTest.cpp:745:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(msgb_put(m, sz), immediate_assignment->data, sz);
data/osmo-pcu-0.8.0/src/egprs_rlc_compression.cpp:62:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		len = strlen((const char *)cdwd[idx]);
data/osmo-pcu-0.8.0/src/gprs_ms.cpp:381:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(imsi()) == 0 && strlen(old_ms->imsi()) != 0)
data/osmo-pcu-0.8.0/src/gprs_ms.cpp:381:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(imsi()) == 0 && strlen(old_ms->imsi()) != 0)
data/osmo-pcu-0.8.0/src/gprs_ms.cpp:451:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (imsi[0] && strlen(imsi) < 3) {
data/osmo-pcu-0.8.0/src/gprs_ms.cpp:464:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(m_imsi, imsi, sizeof(m_imsi));
data/osmo-pcu-0.8.0/src/osmo-bts-litecell15/lc15_l1_hw.c:86:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	rc = read(ofd->fd, msg->l1h, msgb_tailroom(msg));
data/osmo-pcu-0.8.0/src/osmo-bts-oc2g/oc2g_l1_hw.c:86:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	rc = read(ofd->fd, msg->l1h, msgb_tailroom(msg));
data/osmo-pcu-0.8.0/src/osmo-bts-sysmo/sysmo_l1_fwd.c:76:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	rc = read(ofd->fd, msg->l1h, msgb_tailroom(msg));
data/osmo-pcu-0.8.0/src/osmo-bts-sysmo/sysmo_l1_hw.c:94:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	rc = read(ofd->fd, msg->l1h, msgb_tailroom(msg));
data/osmo-pcu-0.8.0/src/pcu_l1_if.cpp:228:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (!imsi || strlen(imsi) < PAGING_GROUP_LEN)
data/osmo-pcu-0.8.0/src/pcu_l1_if.cpp:230:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	imsi += strlen(imsi) - PAGING_GROUP_LEN;
data/osmo-pcu-0.8.0/src/tbf_dl.cpp:216:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (ms && strlen(ms->imsi()) == 0) {
data/osmo-pcu-0.8.0/src/tbf_dl.cpp:915:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	unsigned num_blocks = strlen(show_rbb);
data/osmo-pcu-0.8.0/tests/llc/LlcTest.cpp:84:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	enqueue_data(queue, (uint8_t *)(message), strlen(message), info);
data/osmo-pcu-0.8.0/tests/llc/LlcTest.cpp:91:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		(uint8_t *)(exp_message), strlen(exp_message), exp_info);
data/osmo-pcu-0.8.0/tests/ms/MsTest.cpp:485:2:  [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(1100000);

ANALYSIS SUMMARY:

Hits = 139
Lines analyzed = 49026 in approximately 1.05 seconds (46898 lines/second)
Physical Source Lines of Code (SLOC) = 36303
Hits@level = [0] 271 [1]  16 [2] 111 [3]   8 [4]   4 [5]   0
Hits@level+ = [0+] 410 [1+] 139 [2+] 123 [3+]  12 [4+]   4 [5+]   0
Hits/KSLOC@level+ = [0+] 11.2938 [1+] 3.82888 [2+] 3.38815 [3+] 0.330551 [4+] 0.110184 [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.