From 0c8b7c00e8aa0749bdf4c689790ad7a2830cf760 Mon Sep 17 00:00:00 2001 From: Subv Date: Tue, 1 May 2018 14:54:15 -0500 Subject: GPU: Don't write to invalid memory locations when handling ioctls that don't have an output. --- src/core/hle/service/nvdrv/devices/nvhost_as_gpu.cpp | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/core/hle/service/nvdrv/devices/nvhost_as_gpu.cpp') diff --git a/src/core/hle/service/nvdrv/devices/nvhost_as_gpu.cpp b/src/core/hle/service/nvdrv/devices/nvhost_as_gpu.cpp index 36d7f837b..a7097bd23 100644 --- a/src/core/hle/service/nvdrv/devices/nvhost_as_gpu.cpp +++ b/src/core/hle/service/nvdrv/devices/nvhost_as_gpu.cpp @@ -39,7 +39,6 @@ u32 nvhost_as_gpu::InitalizeEx(const std::vector& input, std::vector& ou IoctlInitalizeEx params{}; std::memcpy(¶ms, input.data(), input.size()); NGLOG_WARNING(Service_NVDRV, "(STUBBED) called, big_page_size={:#X}", params.big_page_size); - std::memcpy(output.data(), ¶ms, output.size()); return 0; } @@ -135,7 +134,6 @@ u32 nvhost_as_gpu::BindChannel(const std::vector& input, std::vector& ou std::memcpy(¶ms, input.data(), input.size()); NGLOG_DEBUG(Service_NVDRV, "called, fd={:X}", params.fd); channel = params.fd; - std::memcpy(output.data(), ¶ms, output.size()); return 0; } -- cgit v1.2.3