VirtualBox

Changeset 44222 in vbox for trunk/include/VBox


Ignore:
Timestamp:
Jan 1, 2013 7:23:50 PM (12 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
83021
Message:

vbsfBuildFullPath: Use the u16Length dude. The darwin tricks does and UTF-8 does, so the UTF-16 case should too.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/shflsvc.h

    r43952 r44222  
    220220    if (RT_UNLIKELY(pString->u16Length >= pString->u16Size))
    221221        return false;
     222    /** @todo r=bird: Check that u16Length is a multiple of two if UTF-16 input? */
     223    /** @todo r=bird: Do we require the string to have a NUL terminator char, if
     224     *        so check for it!! (Just had a problem with too small (/2) u16Length
     225     *        and code behaving incorrectly because it worked up to the terminator
     226     *        instead of the length.) */
     227    /** @todo r=bird: Who checks for valid UTF-8 encoding of strings? */
    222228    return true;
    223229}
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