VirtualBox

Changeset 29840 in vbox for trunk/src/VBox


Ignore:
Timestamp:
May 27, 2010 10:19:59 AM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
62056
Message:

Runtime: no more than four octets are allowed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/misc/cidr.cpp

    r29837 r29840  
    9090        else
    9191            return VERR_INVALID_PARAMETER;
     92
     93        if(cDelimiter > 3)
     94            /* no more than four octets */
     95            return VERR_INVALID_PARAMETER;
     96
    9297        rc = RTStrToUInt8Ex(pszNext + 1, &pszNext, 10, &addr[cDelimiter]);
    9398        if (rc == VWRN_NUMBER_TOO_BIG)
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette