Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NULL dereference in BBTestQueryFunctionAutoTest() (Bugzilla Bug 2238) #224

Open
tianocore-issues opened this issue Oct 3, 2019 · 6 comments

Comments

@tianocore-issues
Copy link

This issue was created automatically with bugzilla2github

Bugzilla Bug 2238

Date: 2019-10-03T04:14:42+00:00
From: Heinrich Schuchardt <<xypron.glpk>>
To: Edhay <<edhaya.chandran>>
CC: edhaya.chandran, eric.jin, nobody, supreeth.venkatesh, xypron.glpk

Last updated: 2022-01-13T08:17:16+00:00

@tianocore-issues
Copy link
Author

Comment 9915

Date: 2019-10-03 04:14:42 +0000
From: Heinrich Schuchardt <<xypron.glpk>>

  • Industry Specification: ---
  • Release Observed: EDK II Master
  • Releases to Fix: EDK II Master
  • Target OS: ---
  • Bugzilla Assignee(s): Edhay <<edhaya.chandran>>

Function BBTestQueryFunctionAutoTest() has:

EFI_GUID *ParameterTypeGuid=NULL;
*ParameterTypeGuid =gBlackBoxEfiPlatformToDriverConfigurationClpGuid;

So here we are writing to address 0x0.

In the same function

UINTN *ParameterBlockSize=0;
*ParameterBlockSize = sizeof( EFI_CONFIGURE_CLP_PARAMETER_BLK );

The errors were indicated by CppCheck (http://cppcheck.sourceforge.net/). There are more errors of the the same kind in the code. Please, run CppCheck on the whole of edk2-test and fix them all.

Best regards

Heinrich Schuchardt

@tianocore-issues
Copy link
Author

Comment 10147

Date: 2019-10-21 12:52:08 +0000
From: supreeth.venkatesh

In pipeline for next release.

@tianocore-issues
Copy link
Author

Comment 13455

Date: 2020-08-18 22:23:31 +0000
From: nobody <>

Edhay, please take it.

@tianocore-issues
Copy link
Author

Comment 17149

Date: 2021-09-02 10:50:54 +0000
From: Edhay <<edhaya.chandran>>

*** Bug 2237 has been marked as a duplicate of this bug. ***

@tianocore-issues
Copy link
Author

Comment 17181

Date: 2021-09-07 04:56:25 +0000
From: Edhay <<edhaya.chandran>>

Vincent provide the initial static check reports of such issues. Later the actual fixes shall be distributed among the community volunteers.

@tianocore-issues
Copy link
Author

Comment 18123

Date: 2022-01-13 08:17:16 +0000
From: Edhay <<edhaya.chandran>>

Vincent has provided the report, they are uploaded in the below ticket
https://bugzilla.tianocore.org/show_bug.cgi?id=2239

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant