VirtualBox

Changeset 67130 in vbox for trunk/src/VBox/VMM/VMMR0


Ignore:
Timestamp:
May 29, 2017 12:46:19 PM (8 years ago)
Author:
vboxsync
Message:

VMMR0.cpp/RTAssertMsg1Weak: Limit the expression length to 75% of the buffer so we get the location.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR0/VMMR0.cpp

    r65898 r67130  
    22442244        RTStrPrintf(pVM->vmm.s.szRing0AssertMsg1, sizeof(pVM->vmm.s.szRing0AssertMsg1),
    22452245                    "\n!!R0-Assertion Failed!!\n"
    2246                     "Expression: %s\n"
     2246                    "Expression: %.*s\n"
    22472247                    "Location  : %s(%d) %s\n",
    2248                     pszExpr, pszFile, uLine, pszFunction);
     2248                    sizeof(pVM->vmm.s.szRing0AssertMsg1) / 4 * 3, pszExpr,
     2249                    pszFile, uLine, pszFunction);
    22492250
    22502251    /*
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