From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-1.mimecast.com (us-smtp-delivery-1.mimecast.com [207.211.31.81]) by mx.groups.io with SMTP id smtpd.web12.10916.1582302279385650062 for ; Fri, 21 Feb 2020 08:24:39 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=fvncG0KU; spf=pass (domain: redhat.com, ip: 207.211.31.81, mailfrom: lersek@redhat.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1582302278; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=IhA2dkwd8Yk9CTJpTPSzRuWxm7R/zfyOVbQW0DcM03M=; b=fvncG0KUNicdsSiTipVXpG7kpNOjbpnLPQl5edY27YY7ZOkwOL3DbmJzTBphJpwfD44dMl YEPVmXs5OAiEJAtGhTggsi+4mnQuG1/9V0Kz+MJNEW3cUEgCTRc+RasSX+fiemIZjiWXiT lsQXKkC5dy+T1pvJ3/cZuoV9eqOc6Mk= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-323-R_JToGRONCC-zTxIhZzWWQ-1; Fri, 21 Feb 2020 11:24:31 -0500 X-MC-Unique: R_JToGRONCC-zTxIhZzWWQ-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id D447D107B267; Fri, 21 Feb 2020 16:24:29 +0000 (UTC) Received: from lacos-laptop-7.usersys.redhat.com (unknown [10.36.118.95]) by smtp.corp.redhat.com (Postfix) with ESMTP id 35A7D10001AE; Fri, 21 Feb 2020 16:24:29 +0000 (UTC) Subject: Re: [edk2-devel] [PATCH] MdeModulePkg/Application: Overflowed Array Index To: devel@edk2.groups.io, newexplorerj@gmail.com References: From: "Laszlo Ersek" Message-ID: Date: Fri, 21 Feb 2020 17:24:28 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Language: en-US Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit On 02/20/20 08:01, GuoMinJ wrote: > REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2272 > REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2289 > REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2290 > REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2287 > REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2288 > > Index should be off-by one than size of array, so when check > array, the max index should less than size of array. > > Signed-off-by: GuoMinJ > --- > .../SmiHandlerProfileInfo/SmiHandlerProfileInfo.c | 10 +++++----- > 1 file changed, 5 insertions(+), 5 deletions(-) Please put "SmiHandlerProfileInfo" somewhere in the subject. If necessary due to length constraints, drop "Application". Thanks Laszlo