VirtualBox

Changeset 93317 in vbox for trunk/src/VBox/Runtime/tools


Ignore:
Timestamp:
Jan 18, 2022 3:15:17 PM (3 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
149387
Message:

RTLdrCheckImports: Open the image with the RTLDR_O_DEBUG flag set so we don't barf on unsupported things when all we need to do is listing imports. This was a problem in ASAN builds where we would get TLS stuff added to all the images. bugref:8489

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/tools/RTLdrCheckImports.cpp

    r93115 r93317  
    408408    RTERRINFOSTATIC ErrInfo;
    409409    RTLDRMOD        hLdrMod;
    410     int rc = RTLdrOpenVfsChain(pszImage, 0 /*fFlags*/, RTLDRARCH_WHATEVER, &hLdrMod, &offError, RTErrInfoInitStatic(&ErrInfo));
     410    int rc = RTLdrOpenVfsChain(pszImage, RTLDR_O_FOR_DEBUG, RTLDRARCH_WHATEVER,
     411                               &hLdrMod, &offError, RTErrInfoInitStatic(&ErrInfo));
    411412    if (RT_FAILURE(rc))
    412413    {
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