Skip to content

Commit 3f30a51

Browse files
Raja DasA. Patrick Williams III
authored andcommitted
Modified the algo to calculate md5_hex for HB Bins
Change-Id: I3e82d0fd32a4cd56b90d7df16160e144671484fa CQ: SW319776 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/20200 Tested-by: Jenkins Server Tested-by: Jenkins OP Build CI Tested-by: Jenkins OP HW Tested-by: FSP CI Jenkins Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
1 parent 1ff7726 commit 3f30a51

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

src/usr/targeting/common/xmltohb/xmltohb.pl

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5951,8 +5951,18 @@ sub generateTargetingImage {
59515951
{
59525952
#Generate the MD5 checksum value for the read-only data and update the
59535953
#content of the version section
5954+
my $md5hex = Digest::MD5->new;
5955+
$md5hex->add($numTargetsPointerBinData);
5956+
$md5hex->add($attributeListBinData);
5957+
$md5hex->add($attributePointerBinData);
5958+
$md5hex->add($numTargetsBinData);
5959+
$md5hex->add($targetsBinData);
5960+
$md5hex->add($roAttrBinData);
5961+
$md5hex->add($associationsBinData);
5962+
$md5hex->add($heapPnorInitBinData);
5963+
59545964
my $versionHeader = "VERSION";
5955-
$versionHeader .= md5_hex($roAttrBinData);
5965+
my $versionHeader .= $md5hex->hexdigest;
59565966

59575967
$outFile .= $versionHeader;
59585968
my $versionHeaderPadSize =

0 commit comments

Comments
 (0)