Page MenuHomeFreeBSD

D36826.diff
No OneTemporary

D36826.diff

diff --git a/lib/libefivar/efivar-dp-format.c b/lib/libefivar/efivar-dp-format.c
--- a/lib/libefivar/efivar-dp-format.c
+++ b/lib/libefivar/efivar-dp-format.c
@@ -1049,8 +1049,9 @@
//
// In case no NULL terminator in SerialNumber, create a new one with NULL terminator
//
- NewStr = AllocateCopyPool ((Length + 1) * sizeof (CHAR16), SerialNumberStr);
+ NewStr = AllocatePool ((Length + 1) * sizeof (CHAR16));
ASSERT (NewStr != NULL);
+ CopyMem (NewStr, SerialNumberStr, Length * sizeof (CHAR16));
NewStr[Length] = 0;
SerialNumberStr = NewStr;
}

File Metadata

Mime Type
text/plain
Expires
Tue, Feb 4, 5:46 AM (20 h, 48 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16448647
Default Alt Text
D36826.diff (589 B)

Event Timeline