VirtualBox

Changeset 105201 in vbox


Ignore:
Timestamp:
Jul 8, 2024 7:36:36 PM (5 months ago)
Author:
vboxsync
Message:

Devices/Network, /Config.kmk: fix build config issue, added mem alloc safety check. bugref:10268

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Config.kmk

    r105160 r105201  
    596596VBOX_WITH_NAT_SERVICE = 1
    597597# Enable NAT with Libslirp
    598 if1of ($(KBUILD_TARGET), darwin, linux)
     598if1of ($(KBUILD_TARGET), darwin linux)
    599599 VBOX_WITH_LIBSLIRP = 1
    600600endif
  • trunk/src/VBox/Devices/Network/DrvNATlibslirp.cpp

    r105133 r105201  
    10171017{
    10181018    char *pNewBuf = (char *)RTMemAlloc(cb); /** @todo r=aeichner Missing check whether memory was actually allocated */
     1019    if (pNewBuf == NULL)
     1020        return -1;
     1021
    10191022    memcpy(pNewBuf, pBuf, cb);
    10201023
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