From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pg1-f172.google.com (mail-pg1-f172.google.com [209.85.215.172]) by mx.groups.io with SMTP id smtpd.web12.31816.1585203625979204536 for ; Wed, 25 Mar 2020 23:20:26 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ZcS4/kAc; spf=pass (domain: gmail.com, ip: 209.85.215.172, mailfrom: newexplorerj@gmail.com) Received: by mail-pg1-f172.google.com with SMTP id b1so2361675pgm.8 for ; Wed, 25 Mar 2020 23:20:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:subject:message-id:references:from:to:cc:mime-version :content-transfer-encoding; bh=eC9jGWH/ZS/JdjV+d6zdPkbD4oKQqNvHitvIJm99i4U=; b=ZcS4/kAcvNUwnQfX0BiumA43MddPPMrI9Atoa72rAbIh7vNhGeB0zS128RfjfzZkBh psnjsZqrlzW9tpOqDT50HBGYwgVovx6JCCMvOTgDwwrSm6vdy8APGqQ5rCvgvNWJuQ6k WetqXLUjBmDKCFxaEhskET8v/fo1R6EOFGV1YtCD/5OEi5yqYGzXv8tXcRhxhMqDyFD2 2O6PVBRBncegO1/aI0h42AxqnHNKC404qMyviJJ58cSqkPY8sV+s0m3nRFOLpzBx3aro e1pssTVVdRQDYvPJW7g7w5mGrtNCtJrvY23Iz7VpDF7a69XqiF48C2pSDqSn6UfFeQm8 rP9g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:subject:message-id:references:from:to:cc :mime-version:content-transfer-encoding; bh=eC9jGWH/ZS/JdjV+d6zdPkbD4oKQqNvHitvIJm99i4U=; b=VL/No/vgCoSLvsXg1QAqUGM+RUHo9fDSZquVOvz4JF7Mpqn7TJuJfUlbV21Cq3Mbl3 MLr++cIZwGmzumYtYDIqaWqwkAl0TM1Mxjpg/Fsirr91QjbwrHHbh2pidjE/fJnbPAJU YspMu8frSdWuGz4p+wa50j/arOAYMNBwUs8PqMDYUGbJmd3VoUpkxMzZ2f1d5xxxzLA1 Q/GDPggSgC/v3BMgroVPGHFje7Zy2evc2IT0BxoUFyJtM6Wa2qksSMiqZRuVlcfHPub9 QL2xNZYgPM8YjdSDKev2WnTrqeLZ3iNf7UxypnuCuJ46vvjQn/NcOKG/xBjCXD9pms1b iR+Q== X-Gm-Message-State: ANhLgQ39m6QsyX0XkJmRI5cAs5AfofYOwoqTqI7RN2f0g13N1cv8JpnO 7pkzXAQN3Oqofm+2pHB6Ia0YesWvoao= X-Google-Smtp-Source: ADFU+vvyhaeIUYWCTwNi7vjrLDHs8Tmaz8UlHANd5X5v1DUmaObY//POZRPnTvB7LQNuDjSsFzBmqg== X-Received: by 2002:a63:4850:: with SMTP id x16mr6891731pgk.317.1585203625060; Wed, 25 Mar 2020 23:20:25 -0700 (PDT) Return-Path: Received: from [10.17.0.26] ([45.135.186.93]) by smtp.gmail.com with ESMTPSA id s76sm776766pgc.64.2020.03.25.23.20.19 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 25 Mar 2020 23:20:24 -0700 (PDT) Date: Thu, 26 Mar 2020 14:10:50 +0800 Subject: Re: [edk2-devel] [PATCH] MdeModulePkg/SmiHandlerProfileInfo: Overflowed Array Index X-Priority: 3 Message-ID: References: <15F5A1D77088756B.29207@groups.io> From: "GuoMinJ" To: "devel@edk2.groups.io" , "newexplorerj@gmail.com" , "GuoMinJ via Groups.Io" Cc: "jian.j.wang@intel.com" , "hao.a.wu@intel.com" MIME-Version: 1.0 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: base64 PGRpdiBkaXI9ImF1dG8iPkhpIGppYW5nLCBoYW88ZGl2PmNvdWxkIHlvdSBwbGVhc2UgaGVscCB2 ZXJpZnkgdGhpcyBjaGFuZ2UuJm5ic3A7PC9kaXY+PC9kaXY+PGRpdiBzdHlsZT0ibGluZS1oZWln aHQ6MS41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