Re: [edk2-devel] [PATCH] CryptoPkg: Check the type is data and Support other OID types.

2020-03-26 Thread GuoMinJ
Hi jian and xiaoyu, could you please help review this change.  Original message From: "GuoMinJ via Groups.Io" Date: Wed, Feb 26, 2020, 10:24 AMTo: devel@edk2.groups.ioCc: GuoMinJ Subject: [edk2-devel] [PATCH] CryptoPkg: Check the type is data and Support other OID types.

Re: [edk2-devel] [PATCH] MdeModulePkg/SmiHandlerProfileInfo: Overflowed Array Index

2020-03-26 Thread GuoMinJ
Hi jiang, haocould you please help verify this change.  Original message From: "GuoMinJ via Groups.Io" Date: Sat, Feb 22, 2020, 1:19 PMTo: devel@edk2.groups.ioCc: GuoMinJ Subject: [edk2-devel] [PATCH] MdeModulePkg/SmiHandlerProfileInfo: Overflowed Array Index

[edk2-devel] [PATCH v2 2/2] CryptoPkg/BaseHashApiLib: Rename BaseHashApiLib by HashApiLib

2020-03-04 Thread GuoMinJ
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2552 According to CryptoPkg.dsc, the library class only have HashApiLib, so i think the BaseHashApiLib should be considered as base name rather than library class. Cc: Jian J Wang Cc: Xiaoyu Lu Signed-off-by: GuoMinJ --- CryptoPkg/Library

[edk2-devel] [PATCH v2 1/2] CryptoPkg/BaseCryptLibOnProtocolPpi: Add missing comments

2020-03-04 Thread GuoMinJ
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2552 DxeCryptLibConstructor have no comments for it, add comments for it. Cc: Jian J Wang Cc: Xiaoyu Lu Signed-off-by: GuoMinJ --- .../Library/BaseCryptLibOnProtocolPpi/DxeCryptLib.c | 9 + 1 file changed, 9 insertions(+) diff

[edk2-devel] [PATCH v2] UnitTestFrameworkPkg/UnitTestLib: Check Suite pointer before use.

2020-03-04 Thread GuoMinJ
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2530 The Suite pointer is used before check if it is valid, correct it to check the validation before use. Cc: Michael D Kinney Cc: Sean Brogan Cc: Bret Barkelew Signed-off-by: GuoMinJ --- UnitTestFrameworkPkg/Library/UnitTestLib

[edk2-devel] [PATCH v3] MdePkg/UnitTestBaseLib: Add check for pointer BinData

2020-03-04 Thread GuoMinJ
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2531 AllocatePool may fail and BinData may be invalid, check it before use. Cc: Michael D Kinney Cc: Liming Gao Signed-off-by: GuoMinJ --- MdePkg/Test/UnitTest/Library/BaseLib/Base64UnitTest.c | 3 +++ 1 file changed, 3 insertions(+) diff

[edk2-devel] [edk2-platform][PATCH v2] IntelSiliconPkg: Add periods in comments

2020-03-04 Thread GuoMinJ
https://bugzilla.tianocore.org/show_bug.cgi?id=2518 ECC need '.' character at the end of line. Ray Ni Rangasai V Chaganty Signed-off-by: GuoMinJ --- .../Intel/IntelSiliconPkg/Include/Library/ConfigBlockLib.h | 6 +++--- .../Library/BaseConfigBlockLib/BaseConfigBlockLib.c | 6

[edk2-devel] [PATCH v2] MdePkg/UnitTestBaseLib: Pointer BinData need to be checked

2020-03-04 Thread GuoMinJ
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2531 AllocatePool may fail and BinData may be invalid, check it before use. Cc: Michael D Kinney Cc: Liming Gao Signed-off-by: GuoMinJ --- MdePkg/Test/UnitTest/Library/BaseLib/Base64UnitTest.c | 3 +++ 1 file changed, 3 insertions(+) diff

[edk2-devel] [PATCH v2] UefiCpuPkg/MpInitLib: ECC issue.

2020-03-04 Thread GuoMinJ
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2553 The comment haven't indicate the output attribute. Cc: Eric Dong Cc: Ray Ni Cc: Laszlo Ersek Signed-off-by: GuoMinJ --- UefiCpuPkg/Library/MpInitLib/DxeMpLib.c | 2 +- UefiCpuPkg/Library/MpInitLib/MpLib.h| 2 +- UefiCpuPkg/Library

[edk2-devel] [PATCH v2] MdeModulePkg/SdDxe: Potential NULL pointer on Token

2020-03-04 Thread GuoMinJ
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2286 Token pointer may be NULL, it is should be check before use it. Cc: Hao A Wu Cc: Ray Ni Signed-off-by: GuoMinJ --- MdeModulePkg/Bus/Sd/SdDxe/SdBlockIo.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git

[edk2-devel] [PATCH] CryptoPkg: Check the type is data and Support other OID types.

2020-02-25 Thread GuoMinJ
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2539 Microsoft signtool supports creation of attached P7's with any OID payload via the "/p7co" parameter. It is necessary to check the data before get the string. Signed-off-by: GuoMinJ --- .../BaseCryptLib/Pk/CryptPkcs7VerifyBase

[edk2-devel] [PATCH] EmulatorPkg/WinHost: Debug CpuBreakPoint.

2020-02-25 Thread GuoMinJ
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2319 __debugbreak() in any application will terminate the application on windows 10. add /debug option for debugging windows 10. Signed-off-by: GuoMinJ --- EmulatorPkg/Win/Host/WinHost.c | 30 ++ 1 file changed, 30

[edk2-devel] [PATCH] CryptoPkg: ECC issue.

2020-02-24 Thread GuoMinJ
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2552 Some issue is reported by ECC tool, correct it. Signed-off-by: GuoMinJ --- .../Library/BaseCryptLibOnProtocolPpi/DxeCryptLib.c | 9 + CryptoPkg/Library/BaseHashApiLib/BaseHashApiLib.inf | 2 +- 2 files changed, 10

[edk2-devel] [PATCH] UefiCpuPkg: ECC issue.

2020-02-24 Thread GuoMinJ
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2553 The comment haven't indicate the output attribute. Signed-off-by: GuoMinJ --- UefiCpuPkg/Library/MpInitLib/DxeMpLib.c | 2 +- UefiCpuPkg/Library/MpInitLib/MpLib.h| 2 +- UefiCpuPkg/Library/MpInitLib/PeiMpLib.c | 2 +- 3 files changed

[edk2-devel] [PATCH] MdeModulePkg/SdDxe: Potential NULL pointer on Token

2020-02-21 Thread GuoMinJ
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2286 Token pointer may be NULL, it is should be check before use it. Signed-off-by: GuoMinJ --- MdeModulePkg/Bus/Sd/SdDxe/SdBlockIo.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/MdeModulePkg/Bus/Sd/SdDxe

[edk2-devel] [PATCH] MdeModulePkg/SmiHandlerProfileInfo: Overflowed Array Index

2020-02-21 Thread GuoMinJ
be off-by one than size of array, so when check array, the max index should less than size of array. Signed-off-by: GuoMinJ --- .../SmiHandlerProfileInfo/SmiHandlerProfileInfo.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/MdeModulePkg/Application

[edk2-devel] [PATCH] MdeModulePkg: Remove gEfiFormBrowserExProtocolGuid Protocol Guid

2020-02-21 Thread GuoMinJ
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2145 Replace the gEfiFormBrowserExProtocolGuid with gEdkiiFormBrowserExProtocolGuid, remove the unnecessary declaration. Signed-off-by: GuoMinJ --- MdeModulePkg/Include/Protocol/FormBrowserEx.h | 1 - MdeModulePkg/MdeModulePkg.ci.yaml

[edk2-devel] [PATCH] MdeModulePkg/Bus: Potential NULL pointer on Token

2020-02-20 Thread GuoMinJ
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2286 Token pointer may be NULL, it is should be check before use it. Signed-off-by: GuoMinJ --- MdeModulePkg/Bus/Sd/SdDxe/SdBlockIo.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/MdeModulePkg/Bus/Sd/SdDxe

[edk2-devel] [PATCH] MdeModulePkg/Application: Overflowed Array Index

2020-02-19 Thread GuoMinJ
be off-by one than size of array, so when check array, the max index should less than size of array. Signed-off-by: GuoMinJ --- .../SmiHandlerProfileInfo/SmiHandlerProfileInfo.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/MdeModulePkg/Application

[edk2-devel] [PATCH] MdeModulePkg/Application: Overflowed Array Index

2020-02-19 Thread GuoMinJ
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2272 Index should be off-by one than size of array, so when check mUsbTypeString, the max index should less than size of array. Signed-off-by: GuoMinJ --- .../Application/SmiHandlerProfileInfo/SmiHandlerProfileInfo.c | 2 +- 1 file changed

[edk2-devel] [PATCH] UnitTestFrameworkPkg: Invalid index may be used.

2020-02-19 Thread GuoMinJ
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2535 The UINT_TEST_STATUS and FAILURE_TYPE have used 0 as status, so use 0 as unknown is confused, remove it from array enumeration but keep it location in the array. Signed-off-by: GuoMinJ --- .../Library/UnitTestResultReportLib

[edk2-devel] [PATCH] MdePkg/Test: Pointer BinData need to be checked

2020-02-18 Thread GuoMinJ
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2531 AllocatePool may fail and BinData may be invalid, check it before use. Signed-off-by: GuoMinJ --- MdePkg/Test/UnitTest/Library/BaseLib/Base64UnitTest.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/MdePkg/Test/UnitTest/Library

[edk2-devel] [PATCH] UnitTestFrameworkPkg: Suspicious check for pointer Suite

2020-02-18 Thread GuoMinJ
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2530 The Suite pointer is used before check if it is valid, correct it to check the validation before use. Signed-off-by: GuoMinJ --- UnitTestFrameworkPkg/Library/UnitTestLib/RunTests.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions

Re: [edk2-devel] [RFC PATCH 1/1] MdeModulePkg/PiDxeS3BootScriptLib: Use SafeIntLib to avoid truncation

2020-02-17 Thread GuoMinJ
I agree with this comment. Laszlo Ersek 于2020年2月17日周一 下午5:32写道: > On 02/13/20 19:33, Philippe Mathieu-Daudé wrote: > > On 2/13/20 7:29 PM, Philippe Mathieu-Daude wrote: > >> Math expressions written in terms of SafeIntLib function calls > >> are easily readable, making review trivial. Convert

Re: [edk2-devel] [RFC PATCH 1/1] MdeModulePkg/PiDxeS3BootScriptLib: Use SafeIntLib to avoid truncation

2020-02-17 Thread GuoMinJ
I agree with this comment. -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#54572): https://edk2.groups.io/g/devel/message/54572 Mute This Topic: https://groups.io/mt/71248587/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe:

Re: [edk2-devel] [RFC PATCH 1/1] MdeModulePkg/PiDxeS3BootScriptLib: Use SafeIntLib to avoid truncation

2020-02-17 Thread GuoMinJ
I agree with this comment. Thanks. Guomin -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#54570): https://edk2.groups.io/g/devel/message/54570 Mute This Topic: https://groups.io/mt/71248587/21656 Group Owner: devel+ow...@edk2.groups.io

[edk2-devel] [PATCH] IntelSiliconPkg: Issue reported by ECC in edk2-platforms.

2020-02-15 Thread GuoMinJ
https://bugzilla.tianocore.org/show_bug.cgi?id=2518 ECC need '.' character at the end of line. Signed-off-by: GuoMinJ --- .../Intel/IntelSiliconPkg/Include/Library/ConfigBlockLib.h | 6 +++--- .../Library/BaseConfigBlockLib/BaseConfigBlockLib.c | 6 +++--- 2 files changed, 6

[edk2-devel] [PATCH 1/3] FmpDevicePkg/FmpDxe: Issues reported by ECC in EDK2.

2020-02-13 Thread GuoMinJ
https://bugzilla.tianocore.org/show_bug.cgi?id=2515 Change the FmpDevicePkg to match the ECC check rule Signed-off-by: GuoMinJ --- FmpDevicePkg/FmpDxe/Dependency.c | 4 ++-- FmpDevicePkg/FmpDxe/Dependency.h | 2 +- FmpDevicePkg/FmpDxe/FmpDxe.c | 2 +- 3 files changed, 4 insertions(+), 4

[edk2-devel] [PATCH 3/3] SecurityPkg: Issues reported by ECC in EDK2.

2020-02-13 Thread GuoMinJ
https://bugzilla.tianocore.org/show_bug.cgi?id=2515 Change the SecurityPkg to match the ECC check rule Signed-off-by: GuoMinJ --- SecurityPkg/Tcg/Tcg2Dxe/Tcg2Dxe.c | 4 ++-- SecurityPkg/Tcg/Tcg2Pei/Tcg2Pei.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/SecurityPkg

[edk2-devel] [PATCH 2/3] MdeModulePkg: Issues reported by ECC in EDK2.

2020-02-13 Thread GuoMinJ
https://bugzilla.tianocore.org/show_bug.cgi?id=2515 Change the MdeModulePkg to match the ECC check rule Signed-off-by: GuoMinJ --- MdeModulePkg/Bus/Pci/PciBusDxe/PciEnumeratorSupport.c | 4 ++-- MdeModulePkg/Bus/Pci/SdMmcPciHcDxe/SdMmcPciHci.c | 2 +- MdeModulePkg/MdeModulePkg.uni