Skip to content
Snippets Groups Projects
Commit 2fccd1f1 authored by Gerd Hoffmann's avatar Gerd Hoffmann Committed by mergify[bot]
Browse files

ArmPkg/SemihostFs: replace SetMem with ZeroMem

SetMem arguments 2+3 are in the wrong order, resulting in
the call having no effect because Length is zero.

Fix this by using ZeroMem instead.

Bugzilla: https://bugzilla.tianocore.org/show_bug.cgi?id=4205


Reported-by: default avatarJeremy Boone <jeremy.boone@nccgroup.com>
Signed-off-by: Gerd Hoffmann's avatarGerd Hoffmann <kraxel@redhat.com>
Reviewed-by: default avatarRebecca Cran <rebecca@bsdio.com>
Reviewed-by: default avatarSami Mujawar <sami.mujawar@arm.com>
parent 69da506c
No related branches found
No related tags found
No related merge requests found
......@@ -574,7 +574,7 @@ ExtendFile (
}
Remaining = Size;
SetMem (WriteBuffer, 0, sizeof (WriteBuffer));
ZeroMem (WriteBuffer, sizeof (WriteBuffer));
while (Remaining > 0) {
WriteNb = MIN (Remaining, sizeof (WriteBuffer));
WriteSize = WriteNb;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment