Search Linux Wireless

Re: [PATCH] wifi: mwifiex: Fix oob check condition in mwifiex_process_rx_packet

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> -       if ((!memcmp(&rx_pkt_hdr->rfc1042_hdr, bridge_tunnel_header,
> -                    sizeof(bridge_tunnel_header))) ||
> -           (!memcmp(&rx_pkt_hdr->rfc1042_hdr, rfc1042_header,
> -                    sizeof(rfc1042_header)) &&
> -            ntohs(rx_pkt_hdr->rfc1042_hdr.snap_type) != ETH_P_AARP &&
> -            ntohs(rx_pkt_hdr->rfc1042_hdr.snap_type) != ETH_P_IPX)) {
> +       if (sizeof(rx_pkt_hdr) + rx_pkt_off <= skb->len &&

sizeof(*rx_pkt_hdr)?



[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Wireless Regulations]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux