render / rpms / edk2

Forked from rpms/edk2 3 months ago
Clone

Blame SOURCES/edk2-NetworkPkg-IScsiDxe-reformat-IScsiHexToBin-leading-c.patch

9e1c84
From 172b2928c24c0ab955127afcdc9e3a52b3913ba5 Mon Sep 17 00:00:00 2001
d15d15
From: Laszlo Ersek <lersek@redhat.com>
9e1c84
Date: Tue, 8 Jun 2021 14:12:56 +0200
d15d15
Subject: [PATCH 07/10] NetworkPkg/IScsiDxe: reformat IScsiHexToBin() leading
d15d15
 comment block
d15d15
MIME-Version: 1.0
d15d15
Content-Type: text/plain; charset=UTF-8
d15d15
Content-Transfer-Encoding: 8bit
d15d15
d15d15
RH-Author: Laszlo Ersek <lersek@redhat.com>
9e1c84
RH-MergeRequest: 5: NetworkPkg/IScsiDxe: fix IScsiHexToBin() security and functionality bugs [rhel-8.5.0, post-rebase]
9e1c84
RH-Commit: [7/10] 4f867fa4ad8f7305961b83224107c1452a7d44ed
9e1c84
RH-Bugzilla: 1956408
d15d15
RH-Acked-by: Philippe Mathieu-Daudé <philmd@redhat.com>
d15d15
d15d15
We'll need further return values for IScsiHexToBin() in a subsequent
d15d15
patch; make room for them in the leading comment block of the function.
d15d15
While at it, rewrap the comment block to 80 characters width.
d15d15
d15d15
No functional changes.
d15d15
d15d15
Cc: Jiaxin Wu <jiaxin.wu@intel.com>
d15d15
Cc: Maciej Rabeda <maciej.rabeda@linux.intel.com>
9e1c84
Cc: Philippe Mathieu-Daud <philmd@redhat.com>
d15d15
Cc: Siyuan Fu <siyuan.fu@intel.com>
d15d15
Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=3356
d15d15
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
d15d15
Reviewed-by: Maciej Rabeda <maciej.rabeda@linux.intel.com>
9e1c84
Reviewed-by: Philippe Mathieu-Daud <philmd@redhat.com>
9e1c84
Message-Id: <20210608121259.32451-8-lersek@redhat.com>
9e1c84
(cherry picked from commit dc469f137110fe79704b8b92c552972c739bb915)
d15d15
---
d15d15
 NetworkPkg/IScsiDxe/IScsiMisc.c | 16 ++++++++--------
d15d15
 NetworkPkg/IScsiDxe/IScsiMisc.h | 16 ++++++++--------
d15d15
 2 files changed, 16 insertions(+), 16 deletions(-)
d15d15
d15d15
diff --git a/NetworkPkg/IScsiDxe/IScsiMisc.c b/NetworkPkg/IScsiDxe/IScsiMisc.c
d15d15
index 42988e15cb..014700e87a 100644
d15d15
--- a/NetworkPkg/IScsiDxe/IScsiMisc.c
d15d15
+++ b/NetworkPkg/IScsiDxe/IScsiMisc.c
d15d15
@@ -370,14 +370,14 @@ IScsiBinToHex (
d15d15
 /**
d15d15
   Convert the hexadecimal string into a binary encoded buffer.
d15d15
 
d15d15
-  @param[in, out]  BinBuffer   The binary buffer.
d15d15
-  @param[in, out]  BinLength   Length of the binary buffer.
d15d15
-  @param[in]       HexStr      The hexadecimal string.
d15d15
-
d15d15
-  @retval EFI_SUCCESS          The hexadecimal string is converted into a binary
d15d15
-                               encoded buffer.
d15d15
-  @retval EFI_BUFFER_TOO_SMALL The binary buffer is too small to hold the converted data.
d15d15
-
d15d15
+  @param[in, out]  BinBuffer    The binary buffer.
d15d15
+  @param[in, out]  BinLength    Length of the binary buffer.
d15d15
+  @param[in]       HexStr       The hexadecimal string.
d15d15
+
d15d15
+  @retval EFI_SUCCESS           The hexadecimal string is converted into a
d15d15
+                                binary encoded buffer.
d15d15
+  @retval EFI_BUFFER_TOO_SMALL  The binary buffer is too small to hold the
d15d15
+                                converted data.
d15d15
 **/
d15d15
 EFI_STATUS
d15d15
 IScsiHexToBin (
d15d15
diff --git a/NetworkPkg/IScsiDxe/IScsiMisc.h b/NetworkPkg/IScsiDxe/IScsiMisc.h
d15d15
index 231413993b..28cf408cd5 100644
d15d15
--- a/NetworkPkg/IScsiDxe/IScsiMisc.h
d15d15
+++ b/NetworkPkg/IScsiDxe/IScsiMisc.h
d15d15
@@ -165,14 +165,14 @@ IScsiBinToHex (
d15d15
 /**
d15d15
   Convert the hexadecimal string into a binary encoded buffer.
d15d15
 
d15d15
-  @param[in, out]  BinBuffer   The binary buffer.
d15d15
-  @param[in, out]  BinLength   Length of the binary buffer.
d15d15
-  @param[in]       HexStr      The hexadecimal string.
d15d15
-
d15d15
-  @retval EFI_SUCCESS          The hexadecimal string is converted into a binary
d15d15
-                               encoded buffer.
d15d15
-  @retval EFI_BUFFER_TOO_SMALL The binary buffer is too small to hold the converted data.
d15d15
-
d15d15
+  @param[in, out]  BinBuffer    The binary buffer.
d15d15
+  @param[in, out]  BinLength    Length of the binary buffer.
d15d15
+  @param[in]       HexStr       The hexadecimal string.
d15d15
+
d15d15
+  @retval EFI_SUCCESS           The hexadecimal string is converted into a
d15d15
+                                binary encoded buffer.
d15d15
+  @retval EFI_BUFFER_TOO_SMALL  The binary buffer is too small to hold the
d15d15
+                                converted data.
d15d15
 **/
d15d15
 EFI_STATUS
d15d15
 IScsiHexToBin (
d15d15
-- 
d15d15
2.27.0
d15d15