sysarch
This is a multi-part message in MIME format.
--------------060603010602080803050605
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Range verification of LDTs in i386_get_ldt() is wrong (arguments are unsigned)
--------------060603010602080803050605
Content-Type: text/plain;
name="sys_machdep.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="sys_machdep.diff"
--- sys/i386/i386/sys_machdep.c 2004-11-20 22:29:50.000000000 +0000
+++ sys/i386/i386/sys_machdep.new.c 2004-11-20 22:33:57.000000000 +0000
@@ -333,7 +333,7 @@
#endif
/* verify range of LDTs exist */
- if ((uap->start < 0) || (uap->num <= 0))
+ if (uap->start > MAX_LD)
return(EINVAL);
s = splhigh();
--------------060603010602080803050605--
討論串 (同標題文章)
完整討論串 (本文為第 1 之 2 篇):