1
0
atdalīts no xt-sys/exectos

Allocate memory before copying a buffer

Šī revīzija ir iekļauta:
2024-04-29 22:39:32 +02:00
vecāks ab618f95b9
revīzija 0756eb9b29

Parādīt failu

@@ -812,8 +812,8 @@ BlpGetModuleInfoStrings(IN PWCHAR SectionData,
return STATUS_EFI_OUT_OF_RESOURCES;
}
/* Cioy strings read from '.modinfo' section */
String = (PWCHAR)(Array + Count + 1);
/* Allocate memory and copy strings read from '.modinfo' section */
BlAllocateMemoryPool(SectionSize, (PVOID*)&String);
RtlCopyMemory(String, InfoStrings, SectionSize);
/* Make sure last string is NULL-terminated */