VirtualBox

Changeset 20287 in vbox


Ignore:
Timestamp:
Jun 4, 2009 2:19:57 PM (16 years ago)
Author:
vboxsync
Message:

Fixed buffer overflow for non-DMA floppy transfers.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Storage/fdc.c

    r20087 r20287  
    15971597    fdrive_t *cur_drv;
    15981598    uint32_t retval = 0;
    1599     int pos, len;
     1599    unsigned pos, len;
    16001600#ifdef VBOX
    16011601    int rc;
     
    16191619                = cur_drv->Led.Actual.s.fReading = 1;
    16201620
     1621            Assert(len <= sizeof(fdctrl->fifo));
    16211622            rc = cur_drv->pDrvBlock->pfnRead (
    16221623                cur_drv->pDrvBlock,
    16231624                fd_sector (cur_drv) * 512,
    16241625                fdctrl->fifo,
    1625                 len * 512
     1626                len
    16261627                );
    16271628
     
    17821783                fd_sector (cur_drv) * 512,
    17831784                fdctrl->fifo,
    1784                 FD_SECTOR_LEN * 512
     1785                FD_SECTOR_LEN
    17851786                );
    17861787
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette