[prev in list] [next in list] [prev in thread] [next in thread]
List: bochs-cvs
Subject: [Bochs-cvs] CVS: bochs/iodev harddrv.cc,1.227,1.228
From: "Stanislav Shwartsman" <sshwarts () users ! sourceforge ! net>
Date: 2009-04-30 7:30:16
Message-ID: E1LzQim-0005v5-NK () ddv4jf1 ! ch3 ! sourceforge ! com
[Download RAW message or body]
Update of /cvsroot/bochs/bochs/iodev
In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv22591/iodev
Modified Files:
harddrv.cc
Log Message:
SFbugfix - "an integer overflow BUG of Bochs-2.3.7 source code"
Index: harddrv.cc
===================================================================
RCS file: /cvsroot/bochs/bochs/iodev/harddrv.cc,v
retrieving revision 1.227
retrieving revision 1.228
diff -u -d -r1.227 -r1.228
--- harddrv.cc 25 Apr 2009 08:06:32 -0000 1.227
+++ harddrv.cc 30 Apr 2009 07:30:13 -0000 1.228
@@ -427,7 +427,7 @@
disk_size = BX_HD_THIS channels[channel].drives[device].hard_drive->hd_size;
if (image_mode != BX_ATA_MODE_VMWARE3 && image_mode != BX_ATA_MODE_VMWARE4) {
cyl = (int)(disk_size / (heads * spt * 512));
- if (disk_size != (Bit64u)(cyl * heads * spt * 512)) {
+ if (disk_size != ((Bit64u)cyl * heads * spt * 512)) {
BX_PANIC(("ata%d-%d: geometry autodetection failed", channel, device));
}
BX_HD_THIS channels[channel].drives[device].hard_drive->cylinders = cyl;
------------------------------------------------------------------------------
Register Now & Save for Velocity, the Web Performance & Operations
Conference from O'Reilly Media. Velocity features a full day of
expert-led, hands-on workshops and two days of sessions from industry
leaders in dedicated Performance & Operations tracks. Use code vel09scf
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
_______________________________________________
Bochs-cvs mailing list
Bochs-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bochs-cvs
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic