Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F109297909
D36826.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
589 B
Referenced Files
None
Subscribers
None
D36826.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D36826: libefivar: Fix a buffer overread.
Attached
Detach File
Event Timeline
Log In to Comment