From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 94135821E2 for ; Sun, 19 Feb 2017 19:29:55 -0800 (PST) Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 19 Feb 2017 19:29:55 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.35,184,1484035200"; d="scan'208";a="227331597" Received: from fmsmsx104.amr.corp.intel.com ([10.18.124.202]) by fmsmga004.fm.intel.com with ESMTP; 19 Feb 2017 19:29:55 -0800 Received: from fmsmsx126.amr.corp.intel.com (10.18.125.43) by fmsmsx104.amr.corp.intel.com (10.18.124.202) with Microsoft SMTP Server (TLS) id 14.3.248.2; Sun, 19 Feb 2017 19:29:55 -0800 Received: from shsmsx151.ccr.corp.intel.com (10.239.6.50) by FMSMSX126.amr.corp.intel.com (10.18.125.43) with Microsoft SMTP Server (TLS) id 14.3.248.2; Sun, 19 Feb 2017 19:29:54 -0800 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.88]) by SHSMSX151.ccr.corp.intel.com ([169.254.3.204]) with mapi id 14.03.0248.002; Mon, 20 Feb 2017 11:29:51 +0800 From: "Fu, Siyuan" To: "Wu, Hao A" , "edk2-devel@lists.01.org" CC: "Wu, Jiaxin" Thread-Topic: [PATCH] NetworkPkg/IpSecDxe: Add check to avoid possible divide by zero Thread-Index: AQHSiyXWPhabT5IClUmFAg0n0f7QIqFxPNjw Date: Mon, 20 Feb 2017 03:29:50 +0000 Message-ID: References: <1487559758-54048-1-git-send-email-hao.a.wu@intel.com> In-Reply-To: <1487559758-54048-1-git-send-email-hao.a.wu@intel.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ctpclassification: CTP_IC x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiN2MyMTc3ZjAtMjgzMy00NDA5LWIxMTgtNjgyMjc0ZTljM2ZkIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX0lDIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE1LjkuNi42IiwiVHJ1c3RlZExhYmVsSGFzaCI6IlI2ZUt4VGRueFF5dmxOY2FYWG5DcGh3Y2tpRWJGUkdUVmZkMWkrXC83bUU4PSJ9 x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Subject: Re: [PATCH] NetworkPkg/IpSecDxe: Add check to avoid possible divide by zero X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Feb 2017 03:29:55 -0000 Content-Language: en-US Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: base64 UmV2aWV3ZWQtYnk6IEZ1IFNpeXVhbiA8c2l5dWFuLmZ1QGludGVsLmNvbT4NCg0KDQotLS0tLU9y aWdpbmFsIE1lc3NhZ2UtLS0tLQ0KRnJvbTogV3UsIEhhbyBBIA0KU2VudDogMjAxN8TqMtTCMjDI 1SAxMTowMw0KVG86IGVkazItZGV2ZWxAbGlzdHMuMDEub3JnDQpDYzogV3UsIEhhbyBBIDxoYW8u YS53dUBpbnRlbC5jb20+OyBXdSwgSmlheGluIDxqaWF4aW4ud3VAaW50ZWwuY29tPjsgRnUsIFNp eXVhbiA8c2l5dWFuLmZ1QGludGVsLmNvbT4NClN1YmplY3Q6IFtQQVRDSF0gTmV0d29ya1BrZy9J cFNlY0R4ZTogQWRk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