Page MenuHomeFreeBSD

D36826.id111396.diff
No OneTemporary

D36826.id111396.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
Fri, Dec 12, 2:15 PM (2 h, 26 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
26897756
Default Alt Text
D36826.id111396.diff (589 B)

Event Timeline