VirtualBox

Changeset 17054 in vbox for trunk/src/VBox/Main/glue


Ignore:
Timestamp:
Feb 24, 2009 11:40:53 AM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
43277
Message:

Main: don't crash in string-to-int parsing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/glue/string.cpp

    r16495 r17054  
    8181int Utf8Str::toInt(uint64_t &i) const
    8282{
     83    if (!str)
     84        return VERR_NO_DIGITS;
    8385    return RTStrToUInt64Ex(str, NULL, 0, &i);
    8486}
     
    8688int Utf8Str::toInt(uint32_t &i) const
    8789{
     90    if (!str)
     91        return VERR_NO_DIGITS;
    8892    return RTStrToUInt32Ex(str, NULL, 0, &i);
    8993}
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