VirtualBox

Changeset 60371 in vbox


Ignore:
Timestamp:
Apr 7, 2016 2:10:23 PM (9 years ago)
Author:
vboxsync
Message:

Runtime/posix/symlink-posix.cpp: Fix guessing the initial buffer size, on some filesystems st_size is 0 which resulted in cbBuf being 0 and failing to allocate memory later on

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r3/posix/symlink-posix.cpp

    r60370 r60371  
    184184        struct stat s;
    185185        if (!lstat(pszNativeSymlink, &s))
    186             cbBuf = RT_MAX(RT_ALIGN_Z(s.st_size, 64), 256);
     186            cbBuf = RT_MAX(RT_ALIGN_Z(s.st_size, 64), 64);
    187187        else
    188188            cbBuf = 1024;
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