VirtualBox

Changeset 103067 in vbox for trunk/include


Ignore:
Timestamp:
Jan 25, 2024 3:31:01 PM (12 months ago)
Author:
vboxsync
Message:

Additions: Linux: vboxsf: Prevent array-index-out-of-bounds UBSAN warnings, bugref:10585.

File:
1 edited

Legend:

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

    r101360 r103067  
    15061506            pReq->StrPath.u16Size   = (uint16_t)cchPath + 1;
    15071507            RT_BCOPY_UNFORTIFIED(pReq->StrPath.String.ach, pszPath, cchPath);
    1508             pReq->StrPath.String.ach[cchPath] = '\0';
     1508            *(pReq->StrPath.String.ach + cchPath) = '\0';
    15091509
    15101510            {
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