[edk2-devel] [PATCH v1 0/2] Uninitialized local variable.

Paul via groups.io posted 2 patches 1 year, 6 months ago
Failed in applying to current master (apply log)
MdeModulePkg/Universal/BdsDxe/BdsEntry.c       | 2 ++
SecurityPkg/Tcg/Opal/OpalPassword/OpalDriver.c | 1 +
2 files changed, 3 insertions(+)
[edk2-devel] [PATCH v1 0/2] Uninitialized local variable.
Posted by Paul via groups.io 1 year, 6 months ago
From: Paul Grimes <paul.grimes@amd.com>

The variable 'VariableSize' is used prior to being
initialized.  This patch initializes the variable.

https://github.com/pbgrimes/edk2/tree/fix_uninitialized_local_variable

Cc: Zhiguang Liu <zhiguang.liu@intel.com>
Cc: Ray Ni <ray.ni@intel.com>
Cc: Gua Guo <gua.guo@intel.com>
Cc: Qi Zhang <qi1.zhang@intel.com>
Cc: Rahul Kumar <rahul1.kumar@intel.com>


Paul Grimes (2):
  MdeModulePkg: BdsDxe: Uninitialized local variable.
  SecurityPkg: OpalPasswordDxe: uninitialized local variable.

 MdeModulePkg/Universal/BdsDxe/BdsEntry.c       | 2 ++
 SecurityPkg/Tcg/Opal/OpalPassword/OpalDriver.c | 1 +
 2 files changed, 3 insertions(+)

-- 
2.24.0.windows.2



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#95484): https://edk2.groups.io/g/devel/message/95484
Mute This Topic: https://groups.io/mt/94499465/1787277
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org]
-=-=-=-=-=-=-=-=-=-=-=-
回复: [edk2-devel] [PATCH v1 0/2] Uninitialized local variable.
Posted by gaoliming via groups.io 1 year, 6 months ago
Paul:
  How do you find this issue? Are they reported by the compiler or code
analyzer? 

Thanks
Liming
> -----邮件原件-----
> 发件人: devel@edk2.groups.io <devel@edk2.groups.io> 代表 Paul via
> groups.io
> 发送时间: 2022年10月23日 0:00
> 收件人: devel@edk2.groups.io
> 抄送: Zhiguang Liu <zhiguang.liu@intel.com>; Ray Ni <ray.ni@intel.com>;
Gua
> Guo <gua.guo@intel.com>; Qi Zhang <qi1.zhang@intel.com>; Rahul Kumar
> <rahul1.kumar@intel.com>
> 主题: [edk2-devel] [PATCH v1 0/2] Uninitialized local variable.
> 
> From: Paul Grimes <paul.grimes@amd.com>
> 
> The variable 'VariableSize' is used prior to being
> initialized.  This patch initializes the variable.
> 
> https://github.com/pbgrimes/edk2/tree/fix_uninitialized_local_variable
> 
> Cc: Zhiguang Liu <zhiguang.liu@intel.com>
> Cc: Ray Ni <ray.ni@intel.com>
> Cc: Gua Guo <gua.guo@intel.com>
> Cc: Qi Zhang <qi1.zhang@intel.com>
> Cc: Rahul Kumar <rahul1.kumar@intel.com>
> 
> 
> Paul Grimes (2):
>   MdeModulePkg: BdsDxe: Uninitialized local variable.
>   SecurityPkg: OpalPasswordDxe: uninitialized local variable.
> 
>  MdeModulePkg/Universal/BdsDxe/BdsEntry.c       | 2 ++
>  SecurityPkg/Tcg/Opal/OpalPassword/OpalDriver.c | 1 +
>  2 files changed, 3 insertions(+)
> 
> --
> 2.24.0.windows.2
> 
> 
> 
> 
> 





-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#95584): https://edk2.groups.io/g/devel/message/95584
Mute This Topic: https://groups.io/mt/94572971/1787277
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org]
-=-=-=-=-=-=-=-=-=-=-=-