VirtualBox

Changeset 43464 in vbox for trunk/src/VBox/Devices/Network


Ignore:
Timestamp:
Sep 28, 2012 2:07:28 PM (12 years ago)
Author:
vboxsync
Message:

NAT: fixed pointer signing issue

Location:
trunk/src/VBox/Devices/Network/slirp/bsd
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Network/slirp/bsd/amd64/in_cksum.c

    r28171 r43464  
    111111        if ((offset = 3 & (long) lw) != 0) {
    112112                const u_int32_t *masks = in_masks + (offset << 2);
    113                 lw = (u_int32_t *) (((long) lw) - offset);
     113                lw = (u_int32_t *) (((RTHCUINTPTR) lw) - offset);
    114114                sum = *lw++ & masks[len >= 3 ? 3 : len];
    115115                len -= 4 - offset;
  • trunk/src/VBox/Devices/Network/slirp/bsd/i386/in_cksum.c

    r27869 r43464  
    119119        if ((offset = 3 & (long) lw) != 0) {
    120120                const u_int32_t *masks = in_masks + (offset << 2);
    121                 lw = (u_int32_t *) (((long) lw) - offset);
     121                lw = (u_int32_t *) (((RTHCUINTPTR) lw) - offset);
    122122                sum = *lw++ & masks[len >= 3 ? 3 : len];
    123123                len -= 4 - offset;
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