sysarch

看板DFBSD_submit作者時間21年前 (2004/11/21 20:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/2 (看更多)
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--
文章代碼(AID): #11e8Ee00 (DFBSD_submit)
討論串 (同標題文章)
文章代碼(AID): #11e8Ee00 (DFBSD_submit)