VirtualBox

Ignore:
Timestamp:
Jun 24, 2021 6:24:12 PM (3 years ago)
Author:
vboxsync
Message:

Runtime/common/dbg/dbgmodghidra.cpp: Some fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/dbg/dbgmodghidra.cpp

    r89882 r89895  
    246246                pelmSym->getAttributeValue("name", &pszSymName);
    247247
    248             if (pszSymName)
     248            if (   pszSymName
     249                && strlen(pszSymName) < RTDBG_SYMBOL_NAME_LENGTH)
    249250            {
    250251                uint64_t u64Addr = 0;
     
    254255                {
    255256                    int rc = RTDbgModSymbolAdd(hCnt, pszSymName, RTDBGSEGIDX_RVA, u64Addr, u64Length, 0 /*fFlags*/, NULL);
    256                     if (    RT_FAILURE(rc)
    257                         &&  rc != VERR_DBG_DUPLICATE_SYMBOL
    258                         &&  rc != VERR_DBG_ADDRESS_CONFLICT) /* (don't be too strict) */
     257                    if (   RT_FAILURE(rc)
     258                        && rc != VERR_DBG_DUPLICATE_SYMBOL
     259                        && rc != VERR_DBG_ADDRESS_CONFLICT
     260                        && rc != VERR_DBG_INVALID_RVA) /* (don't be too strict) */
    259261                        return rc;
    260262                }
     
    380382     * Fend off images.
    381383     */
    382     if (   !pMod->pszDbgFile
    383         || pMod->pImgVt)
     384    if (!pMod->pszDbgFile)
    384385        return VERR_DBG_NO_MATCHING_INTERPRETER;
    385386    pMod->pvDbgPriv = NULL;
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