VirtualBox

Changeset 52008 in vbox for trunk


Ignore:
Timestamp:
Jul 13, 2014 1:50:00 AM (10 years ago)
Author:
vboxsync
Message:

NAT/Net: Fix corner case of incorrect wraparound in ring buffer logic
that may lead to loss of data.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/NetworkServices/NAT/pxtcp.c

    r51974 r52008  
    17631763        lim = sz - 1;           /* empty slot at the end */
    17641764    }
    1765     else if (lim == 1) {
     1765    else if (lim == 1 && beg != 0) {
    17661766        lim = sz;               /* empty slot at the beginning */
    17671767    }
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