public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* [edk2-devel] [PATCH 0/5] RedfishClientPkg: fix issues with local variables.
@ 2023-08-27 10:56 Mike Maslenkin
  2023-08-27 10:56 ` [edk2-devel] [PATCH 1/5] RedfishClientPkg: fix crash on access to uninialized list variable Mike Maslenkin
                   ` (5 more replies)
  0 siblings, 6 replies; 9+ messages in thread
From: Mike Maslenkin @ 2023-08-27 10:56 UTC (permalink / raw)
  To: devel; +Cc: abner.chang, nicklew, igork, Mike Maslenkin

This patchset contains fixes that resolve crashes while working with
uninitialized variables and a number of fixes for of leaked memory.
Note: looks like uncrustify check is broken at
tianocore/edk2-redfish-client repo, the corresponding PR failed:
https://github.com/tianocore/edk2-redfish-client/pull/46

I didn't find any codyng-style issues in uncrustify output.

Cc: Abner Chang <abner.chang@amd.com>
Cc: Nickle Wang <nicklew@nvidia.com>
Cc: Igor Kulchytskyy <igork@ami.com>
Signed-off-by: Mike Maslenkin <mike.maslenkin@gmail.com>



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#108043): https://edk2.groups.io/g/devel/message/108043
Mute This Topic: https://groups.io/mt/100988470/7686176
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io]
-=-=-=-=-=-=-=-=-=-=-=-



^ permalink raw reply	[flat|nested] 9+ messages in thread

* [edk2-devel] [PATCH 1/5] RedfishClientPkg: fix crash on access to uninialized list variable.
  2023-08-27 10:56 [edk2-devel] [PATCH 0/5] RedfishClientPkg: fix issues with local variables Mike Maslenkin
@ 2023-08-27 10:56 ` Mike Maslenkin
  2023-08-27 10:56 ` [edk2-devel] [PATCH 2/5] RedfishClientPkg: fix access to uninitialized variable Mike Maslenkin
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 9+ messages in thread
From: Mike Maslenkin @ 2023-08-27 10:56 UTC (permalink / raw)
  To: devel; +Cc: abner.chang, nicklew, igork, Mike Maslenkin

Signed-off-by: Mike Maslenkin <mike.maslenkin@gmail.com>
---
 RedfishClientPkg/Features/Bios/v1_0_9/Common/BiosCommon.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/RedfishClientPkg/Features/Bios/v1_0_9/Common/BiosCommon.c b/RedfishClientPkg/Features/Bios/v1_0_9/Common/BiosCommon.c
index b9c799e07684..a1738de46fdf 100644
--- a/RedfishClientPkg/Features/Bios/v1_0_9/Common/BiosCommon.c
+++ b/RedfishClientPkg/Features/Bios/v1_0_9/Common/BiosCommon.c
@@ -97,6 +97,8 @@ RedfishConsumeResourceCommon (
   if (BiosCs->Attributes == NULL) {
     BiosCs->Attributes = AllocateZeroPool (sizeof (RedfishBios_V1_0_9_Attributes_CS));
     ASSERT (BiosCs->Attributes != NULL);
+    // initialize list
+    BiosCs->Attributes->Prop.ForwardLink = &BiosCs->Attributes->Prop;
   }
 
   //
-- 
2.32.0 (Apple Git-132)



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#108044): https://edk2.groups.io/g/devel/message/108044
Mute This Topic: https://groups.io/mt/100988471/7686176
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io]
-=-=-=-=-=-=-=-=-=-=-=-



^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [edk2-devel] [PATCH 2/5] RedfishClientPkg: fix access to uninitialized variable
  2023-08-27 10:56 [edk2-devel] [PATCH 0/5] RedfishClientPkg: fix issues with local variables Mike Maslenkin
  2023-08-27 10:56 ` [edk2-devel] [PATCH 1/5] RedfishClientPkg: fix crash on access to uninialized list variable Mike Maslenkin
@ 2023-08-27 10:56 ` Mike Maslenkin
  2023-08-27 10:56 ` [edk2-devel] [PATCH 3/5] RedfishClientPkg: fix leak of allocated Etag data Mike Maslenkin
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 9+ messages in thread
From: Mike Maslenkin @ 2023-08-27 10:56 UTC (permalink / raw)
  To: devel; +Cc: abner.chang, nicklew, igork, Mike Maslenkin

This patch fixes access to uninitialized variable, causing ASSERT from
FreePool at least.

Before this patch RedfishSettingsResponse was initialized by
GetResourceByUri under 'if (JsonValue != NULL)' condition.
But freed under 'if (Private->Payload != NULL)' condition.
Thus uninitialized pointers caused ASSERT on attempt to free memory.

Signed-off-by: Mike Maslenkin <mike.maslenkin@gmail.com>
---
 RedfishClientPkg/Features/Bios/v1_0_9/Dxe/BiosDxe.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/RedfishClientPkg/Features/Bios/v1_0_9/Dxe/BiosDxe.c b/RedfishClientPkg/Features/Bios/v1_0_9/Dxe/BiosDxe.c
index e7ac8779581c..f5562fb49cab 100644
--- a/RedfishClientPkg/Features/Bios/v1_0_9/Dxe/BiosDxe.c
+++ b/RedfishClientPkg/Features/Bios/v1_0_9/Dxe/BiosDxe.c
@@ -128,6 +128,8 @@ RedfishResourceConsumeResource (
     return Status;
   }
 
+  ZeroMem (&RedfishSettingsResponse, sizeof (REDFISH_RESPONSE));
+
   ExpectedResponse   = &Response;
   RedfishSettingsUri = NULL;
   JsonValue          = RedfishJsonInPayload (Response.Payload);
-- 
2.32.0 (Apple Git-132)



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#108045): https://edk2.groups.io/g/devel/message/108045
Mute This Topic: https://groups.io/mt/100988472/7686176
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io]
-=-=-=-=-=-=-=-=-=-=-=-



^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [edk2-devel] [PATCH 3/5] RedfishClientPkg: fix leak of allocated Etag data
  2023-08-27 10:56 [edk2-devel] [PATCH 0/5] RedfishClientPkg: fix issues with local variables Mike Maslenkin
  2023-08-27 10:56 ` [edk2-devel] [PATCH 1/5] RedfishClientPkg: fix crash on access to uninialized list variable Mike Maslenkin
  2023-08-27 10:56 ` [edk2-devel] [PATCH 2/5] RedfishClientPkg: fix access to uninitialized variable Mike Maslenkin
@ 2023-08-27 10:56 ` Mike Maslenkin
  2023-08-27 10:56 ` [edk2-devel] [PATCH 4/5] RedfishClientPkg: fix memory leak during EFI variables write Mike Maslenkin
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 9+ messages in thread
From: Mike Maslenkin @ 2023-08-27 10:56 UTC (permalink / raw)
  To: devel; +Cc: abner.chang, nicklew, igork, Mike Maslenkin

Signed-off-by: Mike Maslenkin <mike.maslenkin@gmail.com>
---
 RedfishClientPkg/Features/Bios/v1_0_9/Dxe/BiosDxe.c            | 3 +++
 .../Features/ComputerSystem/v1_5_0/Dxe/ComputerSystemDxe.c     | 3 +++
 RedfishClientPkg/Features/Memory/V1_7_1/Dxe/MemoryDxe.c        | 3 +++
 3 files changed, 9 insertions(+)

diff --git a/RedfishClientPkg/Features/Bios/v1_0_9/Dxe/BiosDxe.c b/RedfishClientPkg/Features/Bios/v1_0_9/Dxe/BiosDxe.c
index f5562fb49cab..b27f1de77660 100644
--- a/RedfishClientPkg/Features/Bios/v1_0_9/Dxe/BiosDxe.c
+++ b/RedfishClientPkg/Features/Bios/v1_0_9/Dxe/BiosDxe.c
@@ -220,6 +220,9 @@ RedfishResourceConsumeResource (
     Private->Json = NULL;
   }
 
+  if (Etag != NULL) {
+    FreePool (Etag);
+  }
   return Status;
 }
 
diff --git a/RedfishClientPkg/Features/ComputerSystem/v1_5_0/Dxe/ComputerSystemDxe.c b/RedfishClientPkg/Features/ComputerSystem/v1_5_0/Dxe/ComputerSystemDxe.c
index 91968dbe488f..c5a168a06a98 100644
--- a/RedfishClientPkg/Features/ComputerSystem/v1_5_0/Dxe/ComputerSystemDxe.c
+++ b/RedfishClientPkg/Features/ComputerSystem/v1_5_0/Dxe/ComputerSystemDxe.c
@@ -164,6 +164,9 @@ RedfishResourceConsumeResource (
     Private->Json = NULL;
   }
 
+  if (Etag != NULL) {
+    FreePool (Etag);
+  }
   return Status;
 }
 
diff --git a/RedfishClientPkg/Features/Memory/V1_7_1/Dxe/MemoryDxe.c b/RedfishClientPkg/Features/Memory/V1_7_1/Dxe/MemoryDxe.c
index c55a6848c74e..91fdb85d3e08 100644
--- a/RedfishClientPkg/Features/Memory/V1_7_1/Dxe/MemoryDxe.c
+++ b/RedfishClientPkg/Features/Memory/V1_7_1/Dxe/MemoryDxe.c
@@ -164,6 +164,9 @@ RedfishResourceConsumeResource (
     Private->Json = NULL;
   }
 
+  if (Etag != NULL) {
+    FreePool (Etag);
+  }
   return Status;
 }
 
-- 
2.32.0 (Apple Git-132)



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#108046): https://edk2.groups.io/g/devel/message/108046
Mute This Topic: https://groups.io/mt/100988473/7686176
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io]
-=-=-=-=-=-=-=-=-=-=-=-



^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [edk2-devel] [PATCH 4/5] RedfishClientPkg: fix memory leak during EFI variables write.
  2023-08-27 10:56 [edk2-devel] [PATCH 0/5] RedfishClientPkg: fix issues with local variables Mike Maslenkin
                   ` (2 preceding siblings ...)
  2023-08-27 10:56 ` [edk2-devel] [PATCH 3/5] RedfishClientPkg: fix leak of allocated Etag data Mike Maslenkin
@ 2023-08-27 10:56 ` Mike Maslenkin
  2023-08-27 10:56 ` [edk2-devel] [PATCH 5/5] RedfishClientPkg: fix misprints in Readme.md Mike Maslenkin
  2023-08-28  9:03 ` [edk2-devel] [PATCH 0/5] RedfishClientPkg: fix issues with local variables Nickle Wang via groups.io
  5 siblings, 0 replies; 9+ messages in thread
From: Mike Maslenkin @ 2023-08-27 10:56 UTC (permalink / raw)
  To: devel; +Cc: abner.chang, nicklew, igork, Mike Maslenkin

Signed-off-by: Mike Maslenkin <mike.maslenkin@gmail.com>
---
 .../RedfishConfigLangMapDxe/RedfishConfigLangMapDxe.c       | 6 +++++-
 RedfishClientPkg/RedfishETagDxe/RedfishETagDxe.c            | 6 +++++-
 2 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/RedfishClientPkg/RedfishConfigLangMapDxe/RedfishConfigLangMapDxe.c b/RedfishClientPkg/RedfishConfigLangMapDxe/RedfishConfigLangMapDxe.c
index 86684cc72e1e..6a72afed8715 100644
--- a/RedfishClientPkg/RedfishConfigLangMapDxe/RedfishConfigLangMapDxe.c
+++ b/RedfishClientPkg/RedfishConfigLangMapDxe/RedfishConfigLangMapDxe.c
@@ -424,7 +424,11 @@ SaveConfigLangMapList (
     gRT->SetVariable (VariableName, &gEfiRedfishClientVariableGuid, VARIABLE_ATTRIBUTE_NV_BS, 0, NULL);
   }
 
-  return gRT->SetVariable (VariableName, &gEfiRedfishClientVariableGuid, VARIABLE_ATTRIBUTE_NV_BS, VarSize, (VOID *)VarData);
+  Status = gRT->SetVariable (VariableName, &gEfiRedfishClientVariableGuid, VARIABLE_ATTRIBUTE_NV_BS, VarSize, (VOID *)VarData);
+
+  FreePool (VarData);
+
+  return Status;
 }
 
 /**
diff --git a/RedfishClientPkg/RedfishETagDxe/RedfishETagDxe.c b/RedfishClientPkg/RedfishETagDxe/RedfishETagDxe.c
index 7ac6e885dea6..a892ced984c8 100644
--- a/RedfishClientPkg/RedfishETagDxe/RedfishETagDxe.c
+++ b/RedfishClientPkg/RedfishETagDxe/RedfishETagDxe.c
@@ -411,7 +411,11 @@ SaveETagList (
     gRT->SetVariable (VariableName, &gEfiRedfishClientVariableGuid, VARIABLE_ATTRIBUTE_NV_BS, 0, NULL);
   }
 
-  return gRT->SetVariable (VariableName, &gEfiRedfishClientVariableGuid, VARIABLE_ATTRIBUTE_NV_BS, VarSize, (VOID *)VarData);
+  Status = gRT->SetVariable (VariableName, &gEfiRedfishClientVariableGuid, VARIABLE_ATTRIBUTE_NV_BS, VarSize, (VOID *)VarData);
+
+  FreePool (VarData);
+
+  return Status;
 }
 
 /**
-- 
2.32.0 (Apple Git-132)



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#108047): https://edk2.groups.io/g/devel/message/108047
Mute This Topic: https://groups.io/mt/100988474/7686176
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io]
-=-=-=-=-=-=-=-=-=-=-=-



^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [edk2-devel] [PATCH 5/5] RedfishClientPkg: fix misprints in Readme.md
  2023-08-27 10:56 [edk2-devel] [PATCH 0/5] RedfishClientPkg: fix issues with local variables Mike Maslenkin
                   ` (3 preceding siblings ...)
  2023-08-27 10:56 ` [edk2-devel] [PATCH 4/5] RedfishClientPkg: fix memory leak during EFI variables write Mike Maslenkin
@ 2023-08-27 10:56 ` Mike Maslenkin
  2023-08-28  9:03 ` [edk2-devel] [PATCH 0/5] RedfishClientPkg: fix issues with local variables Nickle Wang via groups.io
  5 siblings, 0 replies; 9+ messages in thread
From: Mike Maslenkin @ 2023-08-27 10:56 UTC (permalink / raw)
  To: devel; +Cc: abner.chang, nicklew, igork, Mike Maslenkin

Signed-off-by: Mike Maslenkin <mike.maslenkin@gmail.com>
---
 RedfishClientPkg/Readme.md | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/RedfishClientPkg/Readme.md b/RedfishClientPkg/Readme.md
index 18a27633cf45..0aec0580aa5c 100644
--- a/RedfishClientPkg/Readme.md
+++ b/RedfishClientPkg/Readme.md
@@ -40,7 +40,7 @@ Below are the block diagrams of UEFI Redfish Client EDK2 Implementation.
 ![UEFI Redfish Client Implementation](https://github.com/changab/edk2-staging/blob/edk2-redfish-client/RedfishClientPkg/Documents/Media/RedfishClientDriverStack.svg?raw=true)
 
 ## EFI EDK2 Redfish Client Framework
-The functionality of each block in the diagrams are described in belwo sections,
+The functionality of each block in the diagrams are described in below sections,
 
 ### EDK2 Redfish Foundation ***[[1]](#[0])***
 EDK2 Redfish Redfish Foundation provides the facilities of communicating with
@@ -68,7 +68,7 @@ project.
 
 ### EDK2 Redfish JSON Schema to C Structure Convertor ***[[3]](#[0])***
 This is the script auto-generated EDK2 drivers and libraries that provide the
-Redfish schema naming based JSON to C structure and vise versa converters. C
+Redfish schema naming based JSON to C structure and vice versa converters. C
 structure is another representation of Redfish properties other than JSON and
 CSDL(XML). The higher layer Redfish client application can deal with C structure
 instead of using JSON library to manipulate Redfish properties. The script
@@ -85,7 +85,7 @@ sits between **JSON Schema to C Structure converters** and **EFI Platform
 Configuration to Redfish Protocol**. The Redfish feature driver gets and sets
 the platform configuration and incorporates it with Redfish JSON schema C
 structure to manipulate Redfish JSON resources. Then applies the settings from
-Redfish service to platform configurations, or vise versa to update platform
+Redfish service to platform configurations, or vice versa to update platform
 configurations to Redfish service. Both EDK2 Redfish Non-Collection and
 Collection Feature drivers are script auto-generated base on Redfish schema
 naming. The EDK2 Redfish Non-Collection feature driver manages the resource of
-- 
2.32.0 (Apple Git-132)



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#108048): https://edk2.groups.io/g/devel/message/108048
Mute This Topic: https://groups.io/mt/100988475/7686176
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io]
-=-=-=-=-=-=-=-=-=-=-=-



^ permalink raw reply related	[flat|nested] 9+ messages in thread

* Re: [edk2-devel] [PATCH 0/5] RedfishClientPkg: fix issues with local variables.
  2023-08-27 10:56 [edk2-devel] [PATCH 0/5] RedfishClientPkg: fix issues with local variables Mike Maslenkin
                   ` (4 preceding siblings ...)
  2023-08-27 10:56 ` [edk2-devel] [PATCH 5/5] RedfishClientPkg: fix misprints in Readme.md Mike Maslenkin
@ 2023-08-28  9:03 ` Nickle Wang via groups.io
  2023-08-28 23:18   ` Mike Maslenkin
  5 siblings, 1 reply; 9+ messages in thread
From: Nickle Wang via groups.io @ 2023-08-28  9:03 UTC (permalink / raw)
  To: Mike Maslenkin, devel@edk2.groups.io; +Cc: abner.chang@amd.com, igork@ami.com

Hi Mike,

> I didn't find any codyng-style issues in uncrustify output.

I fetch your branch and run uncrustify tool to fix error in vs code editor. I push the fix to your branch at this commit for your reference: https://github.com/ghbaccount/edk2-redfish-client/commit/f22209f7bd5946168326a3197006d92856247d35 The uncrustify check on PR is now passed successfully. My commit breaks patch check as expected, please incorporate my changes with yours and do a force push to this PR again.

For the way of fixing uncrustify error, I am using the instructions here: https://github.com/tianocore/tianocore.github.io/wiki/EDK-II-Code-Formatting#recommended-usage-visual-studio-vs-code-plugin

Thanks,
Nickle

> -----Original Message-----
> From: Mike Maslenkin <mike.maslenkin@gmail.com>
> Sent: Sunday, August 27, 2023 6:57 PM
> To: devel@edk2.groups.io
> Cc: abner.chang@amd.com; Nickle Wang <nicklew@nvidia.com>;
> igork@ami.com; Mike Maslenkin <mike.maslenkin@gmail.com>
> Subject: [PATCH 0/5] RedfishClientPkg: fix issues with local variables.
>
> External email: Use caution opening links or attachments
>
>
> This patchset contains fixes that resolve crashes while working with uninitialized
> variables and a number of fixes for of leaked memory.
> Note: looks like uncrustify check is broken at tianocore/edk2-redfish-client repo,
> the corresponding PR failed:
> https://github.co/
> m%2Ftianocore%2Fedk2-redfish-
> client%2Fpull%2F46&data=05%7C01%7Cnicklew%40nvidia.com%7C7cf336153fb
> f4e2e821008dba6ec62e0%7C43083d15727340c1b7db39efd9ccc17a%7C0%7C0
> %7C638287306436105158%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAw
> MDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C
> &sdata=VUxJA017msZzRYd%2FAxi0KeZvLi2s0QI6uKgHsOuDdws%3D&reserved=0
>
> I didn't find any codyng-style issues in uncrustify output.
>
> Cc: Abner Chang <abner.chang@amd.com>
> Cc: Nickle Wang <nicklew@nvidia.com>
> Cc: Igor Kulchytskyy <igork@ami.com>
> Signed-off-by: Mike Maslenkin <mike.maslenkin@gmail.com>



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#108053): https://edk2.groups.io/g/devel/message/108053
Mute This Topic: https://groups.io/mt/100988470/7686176
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io]
-=-=-=-=-=-=-=-=-=-=-=-



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [edk2-devel] [PATCH 0/5] RedfishClientPkg: fix issues with local variables.
  2023-08-28  9:03 ` [edk2-devel] [PATCH 0/5] RedfishClientPkg: fix issues with local variables Nickle Wang via groups.io
@ 2023-08-28 23:18   ` Mike Maslenkin
  2023-08-29  7:45     ` Nickle Wang via groups.io
  0 siblings, 1 reply; 9+ messages in thread
From: Mike Maslenkin @ 2023-08-28 23:18 UTC (permalink / raw)
  To: devel, nicklew; +Cc: abner.chang@amd.com, igork@ami.com

Hi Nickle,

I incorporated changes required for uncrustify check.
Also I added additional patch with trivial spelling fixes. Do I need
to resend v.2 to the list?

Regards,
Mike.

On Mon, Aug 28, 2023 at 12:03 PM Nickle Wang via groups.io
<nicklew=nvidia.com@groups.io> wrote:
>
> Hi Mike,
>
> > I didn't find any codyng-style issues in uncrustify output.
>
> I fetch your branch and run uncrustify tool to fix error in vs code editor. I push the fix to your branch at this commit for your reference: https://github.com/ghbaccount/edk2-redfish-client/commit/f22209f7bd5946168326a3197006d92856247d35 The uncrustify check on PR is now passed successfully. My commit breaks patch check as expected, please incorporate my changes with yours and do a force push to this PR again.
>
> For the way of fixing uncrustify error, I am using the instructions here: https://github.com/tianocore/tianocore.github.io/wiki/EDK-II-Code-Formatting#recommended-usage-visual-studio-vs-code-plugin
>
> Thanks,
> Nickle
>
> > -----Original Message-----
> > From: Mike Maslenkin <mike.maslenkin@gmail.com>
> > Sent: Sunday, August 27, 2023 6:57 PM
> > To: devel@edk2.groups.io
> > Cc: abner.chang@amd.com; Nickle Wang <nicklew@nvidia.com>;
> > igork@ami.com; Mike Maslenkin <mike.maslenkin@gmail.com>
> > Subject: [PATCH 0/5] RedfishClientPkg: fix issues with local variables.
> >
> > External email: Use caution opening links or attachments
> >
> >
> > This patchset contains fixes that resolve crashes while working with uninitialized
> > variables and a number of fixes for of leaked memory.
> > Note: looks like uncrustify check is broken at tianocore/edk2-redfish-client repo,
> > the corresponding PR failed:
> > https://github.co/
> > m%2Ftianocore%2Fedk2-redfish-
> > client%2Fpull%2F46&data=05%7C01%7Cnicklew%40nvidia.com%7C7cf336153fb
> > f4e2e821008dba6ec62e0%7C43083d15727340c1b7db39efd9ccc17a%7C0%7C0
> > %7C638287306436105158%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAw
> > MDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C
> > &sdata=VUxJA017msZzRYd%2FAxi0KeZvLi2s0QI6uKgHsOuDdws%3D&reserved=0
> >
> > I didn't find any codyng-style issues in uncrustify output.
> >
> > Cc: Abner Chang <abner.chang@amd.com>
> > Cc: Nickle Wang <nicklew@nvidia.com>
> > Cc: Igor Kulchytskyy <igork@ami.com>
> > Signed-off-by: Mike Maslenkin <mike.maslenkin@gmail.com>
>
>
>
> 
>
>


-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#108071): https://edk2.groups.io/g/devel/message/108071
Mute This Topic: https://groups.io/mt/100988470/7686176
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io]
-=-=-=-=-=-=-=-=-=-=-=-



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [edk2-devel] [PATCH 0/5] RedfishClientPkg: fix issues with local variables.
  2023-08-28 23:18   ` Mike Maslenkin
@ 2023-08-29  7:45     ` Nickle Wang via groups.io
  0 siblings, 0 replies; 9+ messages in thread
From: Nickle Wang via groups.io @ 2023-08-29  7:45 UTC (permalink / raw)
  To: Mike Maslenkin, devel@edk2.groups.io; +Cc: abner.chang@amd.com, igork@ami.com

Hi Mike,

Yes, if you don't mind, please send v2 patch set for community review.

Thanks,
Nickle

> -----Original Message-----
> From: Mike Maslenkin <mike.maslenkin@gmail.com>
> Sent: Tuesday, August 29, 2023 7:19 AM
> To: devel@edk2.groups.io; Nickle Wang <nicklew@nvidia.com>
> Cc: abner.chang@amd.com; igork@ami.com
> Subject: Re: [edk2-devel] [PATCH 0/5] RedfishClientPkg: fix issues with local
> variables.
>
> External email: Use caution opening links or attachments
>
>
> Hi Nickle,
>
> I incorporated changes required for uncrustify check.
> Also I added additional patch with trivial spelling fixes. Do I need to resend v.2 to
> the list?
>
> Regards,
> Mike.
>
> On Mon, Aug 28, 2023 at 12:03 PM Nickle Wang via groups.io
> <nicklew=nvidia.com@groups.io> wrote:
> >
> > Hi Mike,
> >
> > > I didn't find any codyng-style issues in uncrustify output.
> >
> > I fetch your branch and run uncrustify tool to fix error in vs code editor. I push
> the fix to your branch at this commit for your reference:
> https://github.co/
> m%2Fghbaccount%2Fedk2-redfish-
> client%2Fcommit%2Ff22209f7bd5946168326a3197006d92856247d35&data=05
> %7C01%7Cnicklew%40nvidia.com%7Cd987118958794ea8bc9608dba81d308e%7
> C43083d15727340c1b7db39efd9ccc17a%7C0%7C0%7C638288615556969633%7
> CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6
> Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=S2IV%2B5NbPjC40SJ1
> o0SUJLlDzeCoyiqGAHLYH%2Fg%2F0%2FA%3D&reserved=0 The uncrustify check
> on PR is now passed successfully. My commit breaks patch check as expected,
> please incorporate my changes with yours and do a force push to this PR again.
> >
> > For the way of fixing uncrustify error, I am using the instructions
> > here:
> > https://gith/
> > ub.com%2Ftianocore%2Ftianocore.github.io%2Fwiki%2FEDK-II-Code-Formatti
> > ng%23recommended-usage-visual-studio-vs-code-
> plugin&data=05%7C01%7Cnic
> >
> klew%40nvidia.com%7Cd987118958794ea8bc9608dba81d308e%7C43083d1572
> 7340c
> >
> 1b7db39efd9ccc17a%7C0%7C0%7C638288615556969633%7CUnknown%7CTWF
> pbGZsb3d
> >
> 8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D
> %7C
> >
> 3000%7C%7C%7C&sdata=qVkcSqm9RB8TciZqDBWuwkrPQsoMXLlS9ObWeVMk%
> 2BEg%3D&r
> > eserved=0
> >
> > Thanks,
> > Nickle
> >
> > > -----Original Message-----
> > > From: Mike Maslenkin <mike.maslenkin@gmail.com>
> > > Sent: Sunday, August 27, 2023 6:57 PM
> > > To: devel@edk2.groups.io
> > > Cc: abner.chang@amd.com; Nickle Wang <nicklew@nvidia.com>;
> > > igork@ami.com; Mike Maslenkin <mike.maslenkin@gmail.com>
> > > Subject: [PATCH 0/5] RedfishClientPkg: fix issues with local variables.
> > >
> > > External email: Use caution opening links or attachments
> > >
> > >
> > > This patchset contains fixes that resolve crashes while working with
> > > uninitialized variables and a number of fixes for of leaked memory.
> > > Note: looks like uncrustify check is broken at
> > > tianocore/edk2-redfish-client repo, the corresponding PR failed:
> > > https://gi/
> > >
> thub.co%2F&data=05%7C01%7Cnicklew%40nvidia.com%7Cd987118958794ea8b
> c9
> > >
> 608dba81d308e%7C43083d15727340c1b7db39efd9ccc17a%7C0%7C0%7C63828
> 8615
> > >
> 556969633%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2
> luMz
> > >
> IiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=37M4Ew20
> MNry1
> > > 8V6m1K%2FfKTazjM1ZORlVyvZgtroeRU%3D&reserved=0
> > > m%2Ftianocore%2Fedk2-redfish-
> > >
> client%2Fpull%2F46&data=05%7C01%7Cnicklew%40nvidia.com%7C7cf336153fb
> > >
> f4e2e821008dba6ec62e0%7C43083d15727340c1b7db39efd9ccc17a%7C0%7C0
> > >
> %7C638287306436105158%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAw
> > >
> MDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C
> > >
> &sdata=VUxJA017msZzRYd%2FAxi0KeZvLi2s0QI6uKgHsOuDdws%3D&reserved=0
> > >
> > > I didn't find any codyng-style issues in uncrustify output.
> > >
> > > Cc: Abner Chang <abner.chang@amd.com>
> > > Cc: Nickle Wang <nicklew@nvidia.com>
> > > Cc: Igor Kulchytskyy <igork@ami.com>
> > > Signed-off-by: Mike Maslenkin <mike.maslenkin@gmail.com>
> >
> >
> >
> > 
> >
> >


-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#108077): https://edk2.groups.io/g/devel/message/108077
Mute This Topic: https://groups.io/mt/100988470/7686176
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io]
-=-=-=-=-=-=-=-=-=-=-=-



^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2023-08-29  7:45 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-27 10:56 [edk2-devel] [PATCH 0/5] RedfishClientPkg: fix issues with local variables Mike Maslenkin
2023-08-27 10:56 ` [edk2-devel] [PATCH 1/5] RedfishClientPkg: fix crash on access to uninialized list variable Mike Maslenkin
2023-08-27 10:56 ` [edk2-devel] [PATCH 2/5] RedfishClientPkg: fix access to uninitialized variable Mike Maslenkin
2023-08-27 10:56 ` [edk2-devel] [PATCH 3/5] RedfishClientPkg: fix leak of allocated Etag data Mike Maslenkin
2023-08-27 10:56 ` [edk2-devel] [PATCH 4/5] RedfishClientPkg: fix memory leak during EFI variables write Mike Maslenkin
2023-08-27 10:56 ` [edk2-devel] [PATCH 5/5] RedfishClientPkg: fix misprints in Readme.md Mike Maslenkin
2023-08-28  9:03 ` [edk2-devel] [PATCH 0/5] RedfishClientPkg: fix issues with local variables Nickle Wang via groups.io
2023-08-28 23:18   ` Mike Maslenkin
2023-08-29  7:45     ` Nickle Wang via groups.io

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox