VirtualBox

Changeset 15997 in vbox for trunk


Ignore:
Timestamp:
Jan 16, 2009 4:13:23 PM (16 years ago)
Author:
vboxsync
Message:

DBGFR3MemScan: Fixed crash on 32-bit hosts.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/DBGFMem.cpp

    r13816 r15997  
    4040 * @param   pVM         The VM handle.
    4141 * @param   pAddress    Where to store the mixed address.
    42  * @param   cbRange     The number of bytes to scan.
     42 * @param   pcbRange    The number of bytes to scan. Passed as a pointer because
     43 *                      it may be 64-bit.
    4344 * @param   pabNeedle   What to search for - exact search.
    4445 * @param   cbNeedle    Size of the search byte string.
    4546 * @param   pHitAddress Where to put the address of the first hit.
    4647 */
    47 static DECLCALLBACK(int) dbgfR3MemScan(PVM pVM, PCDBGFADDRESS pAddress, RTGCUINTPTR cbRange, const uint8_t *pabNeedle, size_t cbNeedle,
     48static DECLCALLBACK(int) dbgfR3MemScan(PVM pVM, PCDBGFADDRESS pAddress, PCRTGCUINTPTR pcbRange, const uint8_t *pabNeedle, size_t cbNeedle,
    4849                                       PDBGFADDRESS pHitAddress)
    4950{
     
    5152     * Validate the input we use, PGM does the rest.
    5253     */
     54    RTGCUINTPTR cbRange = *pcbRange;
    5355    if (!DBGFR3AddrIsValid(pVM, pAddress))
    5456        return VERR_INVALID_POINTER;
     
    114116    PVMREQ pReq;
    115117    int rc = VMR3ReqCall(pVM, VMREQDEST_ANY, &pReq, RT_INDEFINITE_WAIT, (PFNRT)dbgfR3MemScan, 6,
    116                          pVM, pAddress, cbRange, pabNeedle, cbNeedle, pHitAddress);
     118                         pVM, pAddress, &cbRange, pabNeedle, cbNeedle, pHitAddress);
    117119    if (RT_SUCCESS(rc))
    118120        rc = pReq->iStatus;
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