• Kevin Puetz's avatar
    vbscript: Don't abort when trying to TRACE() functions with many arguments. · 0fb2d0f0
    Kevin Puetz authored
    __wine_dbg_output accumulates the output characters in a debug_info
    structure, flushing it when it encounters '\n'. If debug_info plus the
    new string exceed 1024 characters, append_output will print
    
    > wine_dbg_output: debugstr buffer overflow
    
    and then crash the process via abort().
    
    wine_dbgstr_variant limits the length printed for any individual argument,
    but a function with multiple parameters can still plausibly exceed 1024.
    
    Fixed by formatting the TRACE for each argument on a separate line,
    as similar places (like oleaut32/typelib.c:dump_DispParms) do.
    0fb2d0f0
Name
Last commit
Last update
..
tests Loading commit data...
Makefile.in Loading commit data...
compile.c Loading commit data...
global.c Loading commit data...
interp.c Loading commit data...
lex.c Loading commit data...
parse.h Loading commit data...
parser.y Loading commit data...
regexp.c Loading commit data...
regexp.h Loading commit data...
utils.c Loading commit data...
vbdisp.c Loading commit data...
vbregexp.c Loading commit data...
vbscript.c Loading commit data...
vbscript.h Loading commit data...
vbscript.rc Loading commit data...
vbscript.rgs Loading commit data...
vbscript.spec Loading commit data...
vbscript_classes.idl Loading commit data...
vbscript_defs.h Loading commit data...
vbscript_main.c Loading commit data...
vbsglobal.idl Loading commit data...
vbsregexp10.idl Loading commit data...
vbsregexp55.idl Loading commit data...