VirtualBox

Changeset 97557 in vbox for trunk/src/VBox/Main


Ignore:
Timestamp:
Nov 15, 2022 7:50:05 PM (2 years ago)
Author:
vboxsync
Message:

Guest Control/Main: Fixed a crash with long paths in GuestPath::BuildDestinationPath(). bugref:10286

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-client/GuestCtrlPrivate.cpp

    r97538 r97557  
    17871787            uint8_t         ab[4096];
    17881788        } u;
    1789         RTPATHPARSED Parsed;
    1790         vrc = RTPathParse(strDstPath.c_str(), &Parsed, sizeof(u),  enmDstPathStyle == PathStyle_DOS
    1791                                                                  ? RTPATH_STR_F_STYLE_DOS : RTPATH_STR_F_STYLE_UNIX);
     1789        vrc = RTPathParse(strDstPath.c_str(), &u.Parsed, sizeof(u),  enmDstPathStyle == PathStyle_DOS
     1790                                                                   ? RTPATH_STR_F_STYLE_DOS : RTPATH_STR_F_STYLE_UNIX);
    17921791        if (RT_SUCCESS(vrc))
    17931792        {
    1794             if (Parsed.fProps & RTPATH_PROP_DOTDOT_REFS) /* #4 */
     1793            if (u.Parsed.fProps & RTPATH_PROP_DOTDOT_REFS) /* #4 */
    17951794                vrc = VERR_INVALID_PARAMETER;
    17961795        }
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