The following issues were found
drivers/net/wireless/intel/iwlwifi/pcie/ctxt-info-gen3.c
1 issues
Line: 200
Column: 2
CWE codes:
120
Suggestion:
Make sure destination can always hold the source data
goto err_free_ctxt_info;
}
memcpy(trans_pcie->iml, trans->iml, trans->iml_len);
iwl_enable_fw_load_int_ctx_info(trans);
/* kick FW self load */
iwl_write64(trans, CSR_CTXT_INFO_ADDR,
Reported by FlawFinder.
drivers/scsi/dpt/dpti_ioctl.h
1 issues
Line: 94
Column: 2
CWE codes:
119
120
Suggestion:
Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length
unsigned sectors; /* sectors for drives on cntlr. */
uCHAR do_drive32; /* Flag for Above 16 MB Ability */
uCHAR BusQuiet; /* SCSI Bus Quiet Flag */
char idPAL[4]; /* 4 Bytes Of The ID Pal */
uCHAR primary; /* 1 For Primary, 0 For Secondary */
uCHAR eataVersion; /* EATA Version */
uINT cpLength; /* EATA Command Packet Length */
uINT spLength; /* EATA Status Packet Length */
uCHAR drqNum; /* DRQ Index (0,5,6,7) */
Reported by FlawFinder.
drivers/scsi/libsas/sas_task.c
1 issues
Line: 27
Column: 3
CWE codes:
120
Suggestion:
Make sure destination can always hold the source data
tstat->buf_valid_size =
min_t(int, SAS_STATUS_BUF_SIZE,
be32_to_cpu(iu->sense_data_len));
memcpy(tstat->buf, iu->sense_data, tstat->buf_valid_size);
if (iu->status != SAM_STAT_CHECK_CONDITION)
dev_warn(dev, "dev %016llx sent sense data, but stat(0x%x) is not CHECK CONDITION\n",
SAS_ADDR(task->dev->sas_addr), iu->status);
}
Reported by FlawFinder.
drivers/net/wireless/ti/wl18xx/acx.c
1 issues
Line: 315
Column: 2
CWE codes:
120
Suggestion:
Make sure destination can always hold the source data
}
acx->sync_mode = wl->conf.sg.params[WL18XX_CONF_SG_TIME_SYNC];
memcpy(acx->zone_mac_addr, wl->zone_master_mac_addr, ETH_ALEN);
ret = wl1271_cmd_configure(wl, ACX_TIME_SYNC_CFG,
acx, sizeof(*acx));
if (ret < 0) {
wl1271_warning("acx time sync cfg failed: %d", ret);
Reported by FlawFinder.
drivers/net/wireless/marvell/mwifiex/init.c
1 issues
Line: 163
Column: 2
CWE codes:
120
Suggestion:
Make sure destination can always hold the source data
priv->del_list_idx = 0;
priv->hs2_enabled = false;
priv->check_tdls_tx = false;
memcpy(priv->tos_to_tid_inv, tos_to_tid_inv, MAX_NUM_TID);
mwifiex_init_11h_params(priv);
return mwifiex_add_bss_prio_tbl(priv);
}
Reported by FlawFinder.
drivers/net/wireless/marvell/mwifiex/fw.h
1 issues
Line: 2076
Column: 2
CWE codes:
119
120
Suggestion:
Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length
struct host_cmd_ds_version_ext {
u8 version_str_sel;
char version_str[128];
} __packed;
struct host_cmd_ds_mgmt_frame_reg {
__le16 action;
__le32 mask;
Reported by FlawFinder.
drivers/scsi/elx/efct/efct_driver.h
1 issues
Line: 64
Column: 2
CWE codes:
119
120
Suggestion:
Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length
struct efct_intr_context intr_context[MAX_PCI_INTERRUPTS];
u32 numa_node;
char name[EFC_NAME_LENGTH];
u32 instance_index;
struct list_head list_entry;
struct efct_scsi_tgt tgt_efct;
struct efct_xport *xport;
struct efc *efcport;
Reported by FlawFinder.
drivers/net/wireless/ti/wl12xx/main.c
1 issues
Line: 1467
Column: 2
CWE codes:
120
Suggestion:
Make sure destination can always hold the source data
struct wl12xx_priv *priv = wl->priv;
/* apply driver default configuration */
memcpy(&wl->conf, &wl12xx_conf, sizeof(wl12xx_conf));
/* apply default private configuration */
memcpy(&priv->conf, &wl12xx_default_priv_conf, sizeof(priv->conf));
}
Reported by FlawFinder.
drivers/net/wireless/ti/wl1251/wl12xx_80211.h
1 issues
Line: 80
Column: 2
CWE codes:
119
120
Suggestion:
Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length
struct wl12xx_ie_ssid {
struct wl12xx_ie_header header;
char ssid[IEEE80211_MAX_SSID_LEN];
} __packed;
struct wl12xx_ie_rates {
struct wl12xx_ie_header header;
u8 rates[MAX_SUPPORTED_RATES];
Reported by FlawFinder.
drivers/net/wireless/ti/wl1251/tx.c
1 issues
Line: 370
Column: 9
CWE codes:
119
120
Suggestion:
Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length
static const char *wl1251_tx_parse_status(u8 status)
{
/* 8 bit status field, one character per bit plus null */
static char buf[9];
int i = 0;
memset(buf, 0, sizeof(buf));
if (status & TX_DMA_ERROR)
Reported by FlawFinder.