From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) (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 6971621D046D0 for ; Tue, 19 Sep 2017 04:40:53 -0700 (PDT) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 19 Sep 2017 04:43:57 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.42,418,1500966000"; d="scan'208";a="1173706463" Received: from shwdeopenpsi014.ccr.corp.intel.com ([10.239.9.13]) by orsmga001.jf.intel.com with ESMTP; 19 Sep 2017 04:43:53 -0700 From: Hao Wu To: edk2-devel@lists.01.org Cc: Hao Wu , Steven Shi , Michael Kinney , Liming Gao , Star Zeng , Eric Dong , Fu Siyuan , Ye Ting , Wu Jiaxin Date: Tue, 19 Sep 2017 19:43:45 +0800 Message-Id: <20170919114351.18448-1-hao.a.wu@intel.com> X-Mailer: git-send-email 2.12.0.windows.1 Subject: [PATCH 0/6] Resolve undefined behaviours in left shift OPs 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: Tue, 19 Sep 2017 11:40:53 -0000 The series resolves two kinds of undefined behaviours in left shift operations: a. Left-shifting negative values; b. Left-shifting that incurs the result being out of range. Cc: Steven Shi Cc: Michael Kinney Cc: Liming Gao Cc: Star Zeng Cc: Eric Dong Cc: Fu Siyuan Cc: Ye Ting Cc: Wu Jiaxin Hao Wu (6): MdePkg/PrintLib: Fix possible negative value left shift MdeModulePkg/PrintLib: Fix possible negative value left shift MdeModulePkg/Tpl: Fix negative value left shift MdeModulePkg/DxeNetLib: Fix negative value left shift MdeModulePkg/Crc32: Fix possible out of range left shift MdeModulePkg/AtaAtapiPassThru: Fix possible out of range left shift MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AhciMode.c | 4 ++-- MdeModulePkg/Core/Dxe/Event/Tpl.c | 2 +- MdeModulePkg/Core/RuntimeDxe/Crc32.c | 6 +++--- MdeModulePkg/Library/DxeNetLib/DxeNetLib.c | 2 +- MdeModulePkg/Library/DxePrintLibPrint2Protocol/PrintLib.c | 2 +- MdePkg/Library/BasePrintLib/PrintLibInternal.c | 2 +- 6 files changed, 9 insertions(+), 9 deletions(-) -- 2.12.0.windows.1