VirtualBox

Changeset 33454 in vbox for trunk


Ignore:
Timestamp:
Oct 26, 2010 9:51:53 AM (14 years ago)
Author:
vboxsync
Message:

IPRT: off-by-one

Location:
trunk/src/VBox/Runtime/r3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r3/path.cpp

    r31405 r33454  
    4747     */
    4848    size_t cch = g_cchrtProcDir;
    49     if (cch <= cchPath)
     49    if (cch < cchPath)
    5050    {
    5151        memcpy(pszPath, g_szrtProcExePath, cch);
  • trunk/src/VBox/Runtime/r3/process.cpp

    r28800 r33454  
    101101     */
    102102    size_t cch = g_cchrtProcExePath;
    103     if (cch <= cchExecName)
     103    if (cch < cchExecName)
    104104    {
    105105        memcpy(pszExecName, g_szrtProcExePath, cch);
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