VirtualBox

Changeset 66779 in vbox for trunk


Ignore:
Timestamp:
May 4, 2017 9:54:38 AM (7 years ago)
Author:
vboxsync
Message:

gccplugin: crash fix attempt

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bldprogs/VBoxCompilerPlugInsGcc.cpp

    r66778 r66779  
    604604
    605605                    unsigned cCallArgs = gimple_call_num_args(hStmt);
    606                     if (cCallArgs > State.iFmt)
     606                    if (cCallArgs >= State.iFmt)
    607607                        MyCheckFormatRecursive(&State, gimple_call_arg(hStmt, State.iFmt - 1));
    608608                    else
    609609                        error_at(gimple_location(hStmt),
    610                                  "Call has only %d arguments; %s() format string is argument #%u, thus missing\n",
     610                                 "Call has only %d arguments; %s() format string is argument #%u (1-based), thus missing\n",
    611611                                 cCallArgs, DECL_NAME(hFnDecl) ? IDENTIFIER_POINTER(DECL_NAME(hFnDecl)) : "<unamed>",State.iFmt);
    612612                }
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