FreeBSD Bugzilla – Attachment 162919 Details for
Bug 176748
[libi386] [patch] BTX Loader i386 incorrectly probes EDD, possibly resulting division by zero
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Add consistency checks to EDD information
patch.txt (text/plain), 481 bytes, created by
Arrigo Marchiori
on 2015-11-09 11:16:56 UTC
(
hide
)
Description:
Add consistency checks to EDD information
Filename:
MIME Type:
Creator:
Arrigo Marchiori
Created:
2015-11-09 11:16:56 UTC
Size:
481 bytes
patch
obsolete
>--- sys/boot/i386/libi386/biosdisk.c.orig 2015-11-09 12:12:08.037936000 +0100 >+++ sys/boot/i386/libi386/biosdisk.c 2015-11-09 12:10:22.908374000 +0100 >@@ -246,7 +246,8 @@ > v86.ds = VTOPSEG(¶ms); > v86.esi = VTOPOFF(¶ms); > v86int(); >- if (!V86_CY(v86.efl)) { >+ if (!V86_CY(v86.efl) && (params.sectors != 0) && >+ (params.sector_size != 0) && ((params.sector_size & 511) == 0)) { > bd->bd_sectors = params.sectors; > bd->bd_sectorsize = params.sector_size; > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 176748
:
132465
|
144581
| 162919