mirror of
https://github.com/acidanthera/OpenCorePkg.git
synced 2025-12-08 19:25:01 +00:00
OcXmlLib: Fix potential buffer overflow when deserializing mdata
This commit is contained in:
parent
fe93ca4186
commit
68b53e136c
@ -1574,6 +1574,8 @@ PlistMetaDataValue (
|
||||
if (PlistNodeCast (Node, PLIST_NODE_TYPE_DATA) != NULL) {
|
||||
Content = XmlNodeContent (Node);
|
||||
if (Content != NULL) {
|
||||
|
||||
Length = *Size;
|
||||
Result = OcBase64Decode (Content, AsciiStrLen (Content), Buffer, &Length);
|
||||
|
||||
if (!RETURN_ERROR (Result) && (UINT32) Length == Length) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user