Skip to content

Commit

Permalink
And... I wasn't even using dataNull in OSUnserializeXML
Browse files Browse the repository at this point in the history
Signed-off-by: Visual Ehrmanntraut <[email protected]>
  • Loading branch information
VisualEhrmanntraut committed Oct 4, 2023
1 parent 9f91985 commit e4533be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion NootRX/NootRX.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ void NootRXMain::processPatcher(KernelPatcher &patcher) {
auto *dataNull = new char[desc.size + 1];
memcpy(dataNull, desc.data, desc.size);
dataNull[desc.size] = 0;
auto *dataUnserialized = OSUnserializeXML(reinterpret_cast<const char *>(desc.data), desc.size + 1, &errStr);
auto *dataUnserialized = OSUnserializeXML(dataNull, desc.size + 1, &errStr);
delete[] dataNull;
PANIC_COND(!dataUnserialized, "NootRX", "Failed to unserialize Drivers.xml: %s",
errStr ? errStr->getCStringNoCopy() : "<No additional information>");
Expand Down

0 comments on commit e4533be

Please sign in to comment.