[syslinux:master] pxelinux-options: Fix data corruption bug

syslinux-bot for H. Peter Anvin hpa at zytor.com
Mon Jun 16 21:03:02 PDT 2014


Commit-ID:  7798fdc99fc5f16a8a1f3f94bb2428908634d5a6
Gitweb:     http://www.syslinux.org/commit/7798fdc99fc5f16a8a1f3f94bb2428908634d5a6
Author:     H. Peter Anvin <hpa at zytor.com>
AuthorDate: Mon, 16 Jun 2014 21:01:11 -0700
Committer:  H. Peter Anvin <hpa at zytor.com>
CommitDate: Mon, 16 Jun 2014 21:01:11 -0700

pxelinux-options: Fix data corruption bug

Fix bug where the data would invariably be incorrectly written.

Signed-off-by: H. Peter Anvin <hpa at zytor.com>

---
 utils/pxelinux-options | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/utils/pxelinux-options b/utils/pxelinux-options
index dfd98cf..073eee5 100755
--- a/utils/pxelinux-options
+++ b/utils/pxelinux-options
@@ -226,8 +226,6 @@ sub read_optsets($)
 	return undef unless (read($file, $data, 16) == 16);
 	($blen, $alen, $bufsize, $junk) = unpack("VVVV", $data);
 
-	printf STDERR "EFI: offset = 0x%x, blen = %d, alen = %d, bufsize = %d\n", $hdroffset, $blen, $alen, $bufsize;
-
 	$patch_start = $boff = $hdroffset + 32;
 	$aoff = $boff + $blen;
 
@@ -264,7 +262,7 @@ sub read_optsets($)
     return (\%hdr, $bdata, $adata);
 }
 
-sub write_optsets($$$@)
+sub write_optsets($$@)
 {
     my($file, $hdr, $bdata, $adata) = @_;
     my $boff = 0;


More information about the Syslinux-commits mailing list