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
b07ce099
Commit
b07ce099
authored
Jan 06, 2024
by
Jinoh Kang
Committed by
Alexandre Julliard
Jan 18, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll/tests: Avoid misaligned load in exception handler code in run_exception_test_flags().
This is required for testing EH behavior on alignment check (#AC) exceptions.
parent
702aeb3a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
exception.c
dlls/ntdll/tests/exception.c
+8
-6
No files found.
dlls/ntdll/tests/exception.c
View file @
b07ce099
...
...
@@ -3200,7 +3200,7 @@ static void run_exception_test_flags(void *handler, const void* context,
const
void
*
code
,
unsigned
int
code_size
,
DWORD
access
,
DWORD
handler_flags
)
{
unsigned
char
buf
[
8
+
6
+
8
+
8
];
unsigned
char
buf
[
2
+
8
+
2
+
8
+
8
];
RUNTIME_FUNCTION
runtime_func
;
UNWIND_INFO
*
unwind
=
(
UNWIND_INFO
*
)
buf
;
void
(
*
func
)(
void
)
=
code_mem
;
...
...
@@ -3219,11 +3219,13 @@ static void run_exception_test_flags(void *handler, const void* context,
*
(
ULONG
*
)
&
buf
[
4
]
=
0x1010
;
*
(
const
void
**
)
&
buf
[
8
]
=
context
;
/* jmp near */
buf
[
16
]
=
0xff
;
buf
[
17
]
=
0x25
;
*
(
ULONG
*
)
&
buf
[
18
]
=
0
;
*
(
void
**
)
&
buf
[
22
]
=
handler
;
/* movabs $<handler>, %rax */
buf
[
16
]
=
0x48
;
buf
[
17
]
=
0xb8
;
*
(
void
**
)
&
buf
[
18
]
=
handler
;
/* jmp *%rax */
buf
[
26
]
=
0xff
;
buf
[
27
]
=
0xe0
;
memcpy
((
unsigned
char
*
)
code_mem
+
0x1000
,
buf
,
sizeof
(
buf
));
memcpy
(
code_mem
,
code
,
code_size
);
...
...
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