KSPP / linux

Linux kernel source tree (Kernel Self Protection Project)
https://kernsec.org/wiki/index.php/Kernel_Self_Protection_Project
Other
80 stars 5 forks source link

Replace one-element arrays with flex-array members in drivers/net/wireless/marvell/mwifiex/fw.h #256

Closed GustavoARSilva closed 1 year ago

GustavoARSilva commented 1 year ago
drivers/net/wireless/marvell/mwifiex/fw.h:
struct mwifiex_fw_header {
 struct mwifiex_fw_data {
    struct mwifiex_fw_header header;
    __le32 seq_num;
    u8 data[1];
 } __packed;

 struct mwifiex_ie_types_data {
    struct mwifiex_ie_types_header header;
    u8 data[1];
 } __packed;

 struct mwifiex_ie_types_ssid_param_set {
    struct mwifiex_ie_types_header header;
    u8 ssid[1];
 } __packed;

 struct mwifiex_ie_types_rsn_param_set {
    struct mwifiex_ie_types_header header;
    u8 rsn_ie[1];
 } __packed;

 struct host_cmd_ds_tdls_config {
    __le16 tdls_action;
    u8 tdls_data[1];
 } __packed;

 struct host_cmd_ds_802_11_scan {
    u8 bss_mode;
    u8 bssid[ETH_ALEN];
    u8 tlv_buffer[1];
 } __packed;

 struct host_cmd_ds_802_11_scan_rsp {
    __le16 bss_descript_size;
    u8 number_of_sets;
    u8 bss_desc_and_tlv_buffer[1];
 } __packed;

 struct mwifiex_ie_types_bss_scan_rsp {
    struct mwifiex_ie_types_header header;
    u8 bssid[ETH_ALEN];
    u8 frame_body[1];
 } __packed;

 struct mwifiex_ie_types_wmm_param_set {
    struct mwifiex_ie_types_header header;
    u8 wmm_ie[1];
 } __packed;

struct host_cmd_tlv_wep_key {
    struct mwifiex_ie_types_header header;
    u8 key_index;
    u8 is_default;
    u8 key[1];
 };
GustavoARSilva commented 1 year ago

https://lore.kernel.org/all/Y9xkECG3uTZ6T1dN@work/