From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) (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 13C37207E57D4 for ; Tue, 11 Apr 2017 18:52:33 -0700 (PDT) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 11 Apr 2017 18:52:32 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.37,187,1488873600"; d="scan'208";a="1134232224" Received: from shwdeopenpsi014.ccr.corp.intel.com ([10.239.9.13]) by fmsmga001.fm.intel.com with ESMTP; 11 Apr 2017 18:52:31 -0700 From: Hao Wu To: edk2-devel@lists.01.org, guoheyi@huawei.com Cc: Hao Wu , Feng Tian Date: Wed, 12 Apr 2017 09:52:23 +0800 Message-Id: <20170412015228.20328-1-hao.a.wu@intel.com> X-Mailer: git-send-email 2.12.0.windows.1 Subject: [PATCH v3 0/5] Fix undefined behavior in signed left shift X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Apr 2017 01:52:33 -0000 After searching the whole code base, more cases are found related with: 'LastLba3 << 24' Send a new patch series (V3 based on the patch for ScsiDisk) to fix the suspicious undefined behavior in signed left shift. Cc: Feng Tian Hao Wu (5): MdeModulePkg/ScsiDiskDxe: Fix undefined behavior in signed left shift MdeModulePkg/IdeBusPei: Fix undefined behavior in signed left shift MdeModulePkg/UfsBlkIoPei: Fix undefined behavior in signed left shift MdeModulePkg/UsbBotPei: Fix undefined behavior in signed left shift IntelFWMdlPkg/IdeBusDxe: Fix undefined behavior in signed left shift IntelFrameworkModulePkg/Bus/Pci/IdeBusDxe/Atapi.c | 6 +++--- MdeModulePkg/Bus/Pci/IdeBusPei/AtapiPeim.c | 4 ++-- MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDisk.c | 4 ++-- MdeModulePkg/Bus/Ufs/UfsBlockIoPei/UfsBlockIoPei.c | 6 +++--- MdeModulePkg/Bus/Usb/UsbBotPei/PeiAtapi.c | 6 +++--- 5 files changed, 13 insertions(+), 13 deletions(-) -- 2.12.0.windows.1