Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
3c3cf47a
Commit
3c3cf47a
authored
Feb 28, 2023
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Also check for data execution on x86-64.
It can still be disabled from Wow64.
parent
a3ff624b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
signal_x86_64.c
dlls/ntdll/unix/signal_x86_64.c
+9
-0
No files found.
dlls/ntdll/unix/signal_x86_64.c
View file @
3c3cf47a
...
...
@@ -2010,6 +2010,15 @@ static void segv_handler( int signal, siginfo_t *siginfo, void *sigcontext )
leave_handler
(
ucontext
);
return
;
}
if
(
rec
.
ExceptionCode
==
EXCEPTION_ACCESS_VIOLATION
&&
rec
.
ExceptionInformation
[
0
]
==
EXCEPTION_EXECUTE_FAULT
)
{
ULONG
flags
;
NtQueryInformationProcess
(
GetCurrentProcess
(),
ProcessExecuteFlags
,
&
flags
,
sizeof
(
flags
),
NULL
);
/* send EXCEPTION_EXECUTE_FAULT only if data execution prevention is enabled */
if
(
!
(
flags
&
MEM_EXECUTE_OPTION_DISABLE
))
rec
.
ExceptionInformation
[
0
]
=
EXCEPTION_READ_FAULT
;
}
break
;
case
TRAP_x86_ALIGNFLT
:
/* Alignment check exception */
if
(
EFL_sig
(
ucontext
)
&
0x00040000
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment