Skip to content

UefiHostTestPkg/BaseMemoryLibHost: Fix SetMem functions#511

Open
mkmrd wants to merge 1 commit intotianocore:HBFAfrom
mkmrd:fix-setmem-functions
Open

UefiHostTestPkg/BaseMemoryLibHost: Fix SetMem functions#511
mkmrd wants to merge 1 commit intotianocore:HBFAfrom
mkmrd:fix-setmem-functions

Conversation

@mkmrd
Copy link

@mkmrd mkmrd commented Mar 23, 2025

The Length parameter contains the number of bytes to fill the buffer, so there was an overflow in the SetMem16, SetMem32 and SetMem64 functions. Fixed by dividing the Length parameter by the size of the Value parameter.

The Length parameter contains the number of bytes to fill the buffer, so
there was an overflow in the SetMem16, SetMem32 and SetMem64 functions.
Fixed by dividing the Length parameter by the size of the Value parameter.

Signed-off-by: Maksim Mordanov <mordanovmaksim@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant