From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) (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 0434B81E95 for ; Tue, 15 Nov 2016 18:17:40 -0800 (PST) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga101.jf.intel.com with ESMTP; 15 Nov 2016 18:17:44 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.31,497,1473145200"; d="scan'208";a="1085797665" Received: from shwdeopenpsi068.ccr.corp.intel.com ([10.239.9.9]) by fmsmga002.fm.intel.com with ESMTP; 15 Nov 2016 18:17:42 -0800 From: Star Zeng To: edk2-devel@lists.01.org Cc: Star Zeng , Jiewen Yao , Liming Gao , Michael D Kinney , Jeff Fan , Laszlo Ersek , Ard Biesheuvel Date: Wed, 16 Nov 2016 10:17:37 +0800 Message-Id: <1479262660-54096-1-git-send-email-star.zeng@intel.com> X-Mailer: git-send-email 2.7.0.windows.1 Subject: [PATCH V2 0/3] HobLib: Check FV alignment when building FV HOB 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: Wed, 16 Nov 2016 02:17:40 -0000 If the FvImage buffer is not at its required alignment, then ASSERT(). Also update the function header description of BuildFv(2)Hob() correspondingly. Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=205 V2: If the FvImage buffer is not at its required alignment, then ASSERT(). Cc: Jiewen Yao Cc: Liming Gao Cc: Michael D Kinney Cc: Jeff Fan Cc: Laszlo Ersek Cc: Ard Biesheuvel Star Zeng (3): MdePkg HobLib: Check FV alignment when building FV HOB IntelFrameworkPkg PeiHobLib: Check FV alignment when building FV HOB ArmVirtPkg DxeHobLib: Update func header description of BuildFv(2)Hob() ArmVirtPkg/Library/ArmVirtDxeHobLib/HobLib.c | 4 +- .../Library/PeiHobLibFramework/HobLib.c | 70 +++++++++++++++++++++- MdePkg/Include/Library/HobLib.h | 4 +- MdePkg/Library/DxeCoreHobLib/HobLib.c | 4 +- MdePkg/Library/DxeHobLib/HobLib.c | 4 +- MdePkg/Library/PeiHobLib/HobLib.c | 70 +++++++++++++++++++++- 6 files changed, 150 insertions(+), 6 deletions(-) -- 2.7.0.windows.1