VirtualBox

儲存庫 vbox 的更動 60370


忽略:
時間撮記:
2016-4-7 下午02:10:06 (9 年 以前)
作者:
vboxsync
訊息:

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

檔案:
修改 1 筆資料

圖例:

未更動
新增
刪除
  • trunk/src/VBox/Runtime/r3/posix/symlink-posix.cpp

    r57358 r60370  
    184184        struct stat s;
    185185        if (!lstat(pszNativeSymlink, &s))
    186             cbBuf = RT_MIN(RT_ALIGN_Z(s.st_size, 64), 64);
     186            cbBuf = RT_MAX(RT_ALIGN_Z(s.st_size, 64), 256);
    187187        else
    188188            cbBuf = 1024;
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette