Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
e4bd0d88
Commit
e4bd0d88
authored
Jan 10, 2007
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll/tests: Fix exception test for CPUs that do segment limit checks differently.
parent
56407742
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
5 deletions
+15
-5
exception.c
dlls/ntdll/tests/exception.c
+15
-5
No files found.
dlls/ntdll/tests/exception.c
View file @
e4bd0d88
...
...
@@ -145,9 +145,9 @@ static const struct exception
{
{
0xa1
,
0xfc
,
0xff
,
0xff
,
0xff
,
0xc3
},
/* movl 0xfffffffc,%eax; ret */
0
,
5
,
STATUS_ACCESS_VIOLATION
,
2
,
{
0
,
0xfffffffc
}
},
{
{
0xa1
,
0xfd
,
0xff
,
0xff
,
0xff
,
0xc3
},
/* movl 0xfffffffd,%eax; ret */
0
,
5
,
STATUS_ACCESS_VIOLATION
,
2
,
{
0
,
0xfffffff
f
}
},
0
,
5
,
STATUS_ACCESS_VIOLATION
,
2
,
{
0
,
0xfffffff
d
}
},
{
{
0xa1
,
0xfe
,
0xff
,
0xff
,
0xff
,
0xc3
},
/* movl 0xfffffffe,%eax; ret */
0
,
5
,
STATUS_ACCESS_VIOLATION
,
2
,
{
0
,
0xfffffff
f
}
},
0
,
5
,
STATUS_ACCESS_VIOLATION
,
2
,
{
0
,
0xfffffff
e
}
},
{
{
0xa1
,
0xff
,
0xff
,
0xff
,
0xff
,
0xc3
},
/* movl 0xffffffff,%eax; ret */
0
,
5
,
STATUS_ACCESS_VIOLATION
,
2
,
{
0
,
0xffffffff
}
},
...
...
@@ -155,11 +155,11 @@ static const struct exception
{
{
0xa3
,
0xfc
,
0xff
,
0xff
,
0xff
,
0xc3
},
/* movl %eax,0xfffffffc; ret */
0
,
5
,
STATUS_ACCESS_VIOLATION
,
2
,
{
1
,
0xfffffffc
}
},
{
{
0xa3
,
0xfd
,
0xff
,
0xff
,
0xff
,
0xc3
},
/* movl %eax,0xfffffffd; ret */
0
,
5
,
STATUS_ACCESS_VIOLATION
,
2
,
{
0
,
0xffffffff
}
},
0
,
5
,
STATUS_ACCESS_VIOLATION
,
2
,
{
1
,
0xfffffffd
}
},
{
{
0xa3
,
0xfe
,
0xff
,
0xff
,
0xff
,
0xc3
},
/* movl %eax,0xfffffffe; ret */
0
,
5
,
STATUS_ACCESS_VIOLATION
,
2
,
{
0
,
0xffffffff
}
},
0
,
5
,
STATUS_ACCESS_VIOLATION
,
2
,
{
1
,
0xfffffffe
}
},
{
{
0xa3
,
0xff
,
0xff
,
0xff
,
0xff
,
0xc3
},
/* movl %eax,0xffffffff; ret */
0
,
5
,
STATUS_ACCESS_VIOLATION
,
2
,
{
0
,
0xffffffff
}
},
0
,
5
,
STATUS_ACCESS_VIOLATION
,
2
,
{
1
,
0xffffffff
}
},
};
static
int
got_exception
;
...
...
@@ -202,11 +202,21 @@ static DWORD handler( EXCEPTION_RECORD *rec, EXCEPTION_REGISTRATION_RECORD *fram
ok
(
rec
->
NumberParameters
==
except
->
nb_params
,
"%u: Wrong number of parameters %u/%u
\n
"
,
entry
,
rec
->
NumberParameters
,
except
->
nb_params
);
/* Most CPUs (except Intel Core apparently) report a segment limit violation */
/* instead of page faults for accesses beyond 0xffffffff */
if
(
except
->
nb_params
==
2
&&
except
->
params
[
1
]
>=
0xfffffffd
)
{
if
(
rec
->
ExceptionInformation
[
0
]
==
0
&&
rec
->
ExceptionInformation
[
1
]
==
0xffffffff
)
goto
skip_params
;
}
for
(
i
=
0
;
i
<
rec
->
NumberParameters
;
i
++
)
ok
(
rec
->
ExceptionInformation
[
i
]
==
except
->
params
[
i
],
"%u: Wrong parameter %d: %lx/%x
\n
"
,
entry
,
i
,
rec
->
ExceptionInformation
[
i
],
except
->
params
[
i
]
);
skip_params:
/* don't handle exception if it's not the address we expected */
if
(
rec
->
ExceptionAddress
!=
(
char
*
)
code_mem
+
except
->
offset
)
return
ExceptionContinueSearch
;
...
...
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