VirtualBox

Changeset 107213 in vbox for trunk


Ignore:
Timestamp:
Dec 2, 2024 4:25:39 PM (2 months ago)
Author:
vboxsync
Message:

NAT: Timer expiration has to be kept as a 64-bit value to avoid overflows on systems with longer uptime (see bugref:10268).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Network/DrvNATlibslirp.cpp

    r107028 r107213  
    156156{
    157157    struct slirpTimer *next;
    158     uint32_t uTimeExpire;
     158    int64_t uTimeExpire;
    159159    SlirpTimerCb pHandler;
    160160    void *opaque;
     
    10951095    Assert(pThis);
    10961096
    1097     uint32_t currTime = drvNAT_ClockGetNsCb(pThis) / (1000 * 1000);
     1097    int64_t currTime = drvNAT_ClockGetNsCb(pThis) / (1000 * 1000);
    10981098    SlirpTimer *pCurrent = pThis->pNATState->pTimerHead;
    10991099    while (pCurrent != NULL)
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