Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F145744227
D1861.id3849.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
801 B
Referenced Files
None
Subscribers
None
D1861.id3849.diff
View Options
Index: head/sys/amd64/amd64/ptrace_machdep.c
===================================================================
--- head/sys/amd64/amd64/ptrace_machdep.c
+++ head/sys/amd64/amd64/ptrace_machdep.c
@@ -88,7 +88,8 @@
break;
case PT_SETXSTATE:
- if (data > cpu_max_ext_state_size) {
+ if (data < sizeof(struct savefpu) ||
+ data > cpu_max_ext_state_size) {
error = EINVAL;
break;
}
Index: head/sys/i386/i386/ptrace_machdep.c
===================================================================
--- head/sys/i386/i386/ptrace_machdep.c
+++ head/sys/i386/i386/ptrace_machdep.c
@@ -92,7 +92,8 @@
break;
case PT_SETXSTATE:
- if (data > cpu_max_ext_state_size) {
+ if (data < sizeof(union savefpu) ||
+ data > cpu_max_ext_state_size) {
error = EINVAL;
break;
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Feb 24, 9:12 PM (9 h, 26 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28979042
Default Alt Text
D1861.id3849.diff (801 B)
Attached To
Mode
D1861: Require a valid base FPU state size.
Attached
Detach File
Event Timeline
Log In to Comment