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

UpdateInfoFileName() returns random bytes from stack (Bugzilla Bug 2239) #225

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

Comments

@tianocore-issues
Copy link

This issue was created automatically with bugzilla2github

Bugzilla Bug 2239

Date: 2019-10-03T04:24:09+00:00
From: Heinrich Schuchardt <<xypron.glpk>>
To: Edhay <<edhaya.chandran>>
CC: edhaya.chandran, eric.jin, @cetola, supreeth.venkatesh, xypron.glpk

Last updated: 2021-11-11T09:47:04+00:00

@tianocore-issues
Copy link
Author

Comment 9916

Date: 2019-10-03 04:24:09 +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>>

In some cases (Size <= FileInfo->Size) UpdateInfoFileName() does not initialize the variable status. So random bytes from the stack will be returned.

I guess that status should be initalized to EFI_SUCCESS.

The problem was indicated by CppCheck (http://cppcheck.sourceforge.net/).

Please, run cppcheck on the whole of edk2-test to discover a lot of similar problems.

@tianocore-issues
Copy link
Author

Comment 10148

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

In pipeline for next release.

@tianocore-issues
Copy link
Author

Comment 17147

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

Vincent to run cppcheck/Coverity and prepare the list of issue

@tianocore-issues
Copy link
Author

Comment 17175

Date: 2021-09-06 09:04:32 +0000
From: Vincent Stehlé <<vincent.stehle>>

Created attachment 822
Cppcheck results

Cppcheck 2.3
edk2-test 6756aa2

Attachment: BZ-822-cppcheck.log

@tianocore-issues
Copy link
Author

Comment 17452

Date: 2021-10-07 10:21:22 +0000
From: Edhay <<edhaya.chandran>>

Carolyn and Edhay to Volunteer to fix the CPPCheck Issues found.

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