RtlCopyMemory 崩溃

发布时间 2023-10-26 14:33:21作者: lydstory
	deviceExtension = (PDEVICE_EXTENSION)DeviceObject->DeviceExtension;

	deviceExtension->file_name.Length = openFileInformation->file_nameLength;
	deviceExtension->file_name.MaximumLength = openFileInformation->file_nameLength;
	deviceExtension->file_name.Buffer = (PCHAR)ExAllocatePool(NonPagedPool, openFileInformation->file_nameLength);

	RtlCopyMemory(
		deviceExtension->file_name.Buffer,
		openFileInformation->file_name,
		openFileInformation->file_nameLength
		);