VirtualBox

Ignore:
Timestamp:
Apr 26, 2017 10:54:22 AM (8 years ago)
Author:
vboxsync
Message:

rtVfsChainSpecDupStrN: unescaping bugfix.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/vfs/vfschain.cpp

    r66652 r66675  
    450450            /* Has escape sequences, must unescape it. */
    451451            char *pszDst = pszCopy;
    452             while (cch)
     452            while (cch-- > 0)
    453453            {
    454454                char ch = *psz++;
    455                 if (ch == '\\')
     455                if (ch == '\\' && cch > 0)
    456456                {
    457457                    char ch2 = psz[2];
     
    459459                    {
    460460                        psz++;
     461                        cch--;
    461462                        ch = ch2;
    462463                    }
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