mirror of
https://gitlab.winehq.org/wine/wine-staging.git
synced 2024-09-13 09:17:20 -07:00
27 lines
958 B
Diff
27 lines
958 B
Diff
|
From 3d340d4f31aa1cb3ad6cd9e7a59118e84ab040f1 Mon Sep 17 00:00:00 2001
|
||
|
From: =?UTF-8?q?Aida=20Jonikien=C4=97?= <aidas957@gmail.com>
|
||
|
Date: Fri, 8 Mar 2024 17:52:24 -0600
|
||
|
Subject: [PATCH] ntdll: Trigger write watches on the "info" pointer in
|
||
|
SystemInterruptInformation.
|
||
|
|
||
|
---
|
||
|
dlls/ntdll/unix/system.c | 2 +-
|
||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||
|
|
||
|
diff --git a/dlls/ntdll/unix/system.c b/dlls/ntdll/unix/system.c
|
||
|
index 4c6c4cd23e2..9dc1ff80152 100644
|
||
|
--- a/dlls/ntdll/unix/system.c
|
||
|
+++ b/dlls/ntdll/unix/system.c
|
||
|
@@ -2943,7 +2943,7 @@ NTSTATUS WINAPI NtQuerySystemInformation( SYSTEM_INFORMATION_CLASS class,
|
||
|
len = peb->NumberOfProcessors * sizeof(SYSTEM_INTERRUPT_INFORMATION);
|
||
|
if (size >= len)
|
||
|
{
|
||
|
- if (!info) ret = STATUS_ACCESS_VIOLATION;
|
||
|
+ if (!info || !virtual_check_buffer_for_write( info, len )) ret = STATUS_ACCESS_VIOLATION;
|
||
|
else
|
||
|
{
|
||
|
#ifdef HAVE_GETRANDOM
|
||
|
--
|
||
|
2.43.0
|
||
|
|