Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1133352ybl; Fri, 6 Dec 2019 11:49:32 -0800 (PST) X-Google-Smtp-Source: APXvYqxWw3xM/ckL3nPr15RkvpDPK+TzYz2ZlD/31cm+5dbVsiZzPuhL7sCCN3KddTB5hDXYcH5D X-Received: by 2002:a05:6830:14c7:: with SMTP id t7mr3771871otq.72.1575661772700; Fri, 06 Dec 2019 11:49:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575661772; cv=none; d=google.com; s=arc-20160816; b=og+6s90HUlr0m0d8+wX9kivElkb46ICOAe7WaoGmHKWkUCN2gOcUqdWY6Q1ljSgp9a 6TniW+yMteQp9YW1/SpxaK3neBl0wqg2HTa90m5xp8hVmT7OXEo5hSKjBVuSl0EOSMXD RdYPiDQmmizj6smMWk5qHRs4aNNuooOmYfbHPLTnnJvtDlZGOk4xO3PcnfhI1SmzhQSr RCmFSqU8aKUH1QNgljHoOMM0q4POaCJE1O5awo2A/5pc6cMFhIVnBK8qlAmHVoaNxA0J wwLVt3gO0F2JihvaTy2Q1ErABcqfxodIIZYTZh0wJ+RIamPpsDfFu02yF7HFIpUx+FHW d0Mg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=mKTauvYmu/HzA8mbqSwTd1wp1lFbRJsDBZQvR6lo4Pk=; b=T4V3lw1av0nBQCOISXrV9GOdD+soMj07FkOk8NiRwt+Dr2BAPj7NUWSHp3VcDDA+my 69mgDV/es697gNPSVFnWLzTpbuOlOnptEocCM3wwt6ZmZ/gCUFtW+fAsdUNTHAcEYpTY UGI6kp7nQZsbjhFjHqcNCiLg/wNz3Xc7skQtWCPUumNHfwM6A4QGmGHCkC0YQAxFAU4f 2TSWIYH4tbMUdUgD6IxByI88e0OqLVHE6KhYxQNOEsBQpuSWDYdVQBBg0e3N3Q/+wTgV Npkx6kySlnij/CigW1bf49zvAsZus3wd9tIesivhKSaTh9dFFaKN+Eydro1YS9A9U4Bx M36w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=RXChqlWk; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f20si7585146oti.123.2019.12.06.11.49.21; Fri, 06 Dec 2019 11:49:32 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=RXChqlWk; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726332AbfLFTtS (ORCPT + 99 others); Fri, 6 Dec 2019 14:49:18 -0500 Received: from mail-pj1-f66.google.com ([209.85.216.66]:33983 "EHLO mail-pj1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726325AbfLFTtS (ORCPT ); Fri, 6 Dec 2019 14:49:18 -0500 Received: by mail-pj1-f66.google.com with SMTP id j11so2048814pjs.1 for ; Fri, 06 Dec 2019 11:49:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=mKTauvYmu/HzA8mbqSwTd1wp1lFbRJsDBZQvR6lo4Pk=; b=RXChqlWkxNRtCrwa+M/Jd4obxGO1/ZTDujbGHYlGElRxQEM3gbOC3GyPgaQfpaKDSj yyn/BvWbbM+KsZRSoj7Uwj5/0HpTWcMDFFVzZOilJo2kJzPTqBRWE0n50MQsmTemXiFc nHZg/GqmWhcKJ/q20XF+adp6NNdT3tbhGeJX0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=mKTauvYmu/HzA8mbqSwTd1wp1lFbRJsDBZQvR6lo4Pk=; b=R4CnkURbALbAwQiVoi4AjatkEHvprVRO5mcdT0L+MRb9W9OZQOicfsG0/cCXUCyLL1 /wCGa3I5OfniaSzqJwtlub0AfqlcuAeEbal13SkvMhNNA/RZtPPQA76tKw/OpeSEDu5D gjzvM6uFduZJxkqUjHOxsHOC05opby8eCZDP7Flufix9GUiTh3yA3hT2P66yS5BdV2Cw uXb1szT18MYCmFtIwCJbpjBtZjeC3op4KM+/K+RG++gH8YcSGEaYCBMw/geoN031DeB7 iWeXExAQ3aZACOpLj4PPOYj/yGME84PLiqJJqZwlayIo9PHf9maOFXfPmFEk31at5yxm az5g== X-Gm-Message-State: APjAAAXQEA4G+sgXJlYZo55UU1Gxk5+xMndah1PbkGn948SSjtT4Pjr0 ssrDFqtbXaxGqmFim9Cs1GG3hg== X-Received: by 2002:a17:902:9005:: with SMTP id a5mr2880589plp.194.1575661757699; Fri, 06 Dec 2019 11:49:17 -0800 (PST) Received: from google.com ([2620:15c:202:1:534:b7c0:a63c:460c]) by smtp.gmail.com with ESMTPSA id h3sm3851768pji.16.2019.12.06.11.49.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Dec 2019 11:49:16 -0800 (PST) Date: Fri, 6 Dec 2019 11:49:14 -0800 From: Brian Norris To: qize wang Cc: linux-wireless , amit karwar , Nishant Sarmukadam , Ganapathi Bhat , Xinming Hu , Kalle Valo , greg@kroah.com, Dan Carpenter , Solar Designer Subject: Re: [PATCH v3] mwifiex: Fix heap overflow in mmwifiex_process_tdls_action_frame() Message-ID: <20191206194913.GA151147@google.com> References: <20191129101054.2756-1-wangqize888888888@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On Mon, Dec 02, 2019 at 03:16:35PM -0800, Brian Norris wrote: > A bit late, but a few readability and maintainability thoughts: I worded most of my suggestions in the form of a patch here: [PATCH] mwifiex: drop most magic numbers from mwifiex_process_tdls_action_frame() https://lore.kernel.org/linux-wireless/20191206194535.150179-1-briannorris@chromium.org/T/#u https://patchwork.kernel.org/patch/11277011/ Regards, Brian