1
0
Fork 0
mirror of synced 2025-03-07 03:53:26 +01:00
wine/dlls/vbscript
Kevin Puetz 484f3e0ea4 vbscript: Don't abort when trying to TRACE() functions with many arguments.
__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.

(cherry picked from commit 0fb2d0f04e)
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
2023-03-24 11:39:02 +01:00
..
tests vbscript: Don't abort when trying to TRACE() functions with many arguments. 2023-03-24 11:39:02 +01:00
compile.c vbscript: Emit catch after enumnext in for each loops. 2021-10-14 21:40:47 +02:00
global.c vbscript: Implement DateAdd(). 2023-03-24 11:33:24 +01:00
interp.c vbscript: Don't abort when trying to TRACE() functions with many arguments. 2023-03-24 11:39:02 +01:00
lex.c vbscript: Avoid negating SUCCEEDED(). 2021-11-01 20:47:31 +01:00
Makefile.in
parse.h
parser.y
regexp.c
regexp.h
utils.c
vbdisp.c
vbregexp.c
vbscript.c
vbscript.h vbscript: Use a dedicated opcode for identifier expressions. 2021-10-08 20:20:13 +02:00
vbscript.rc
vbscript.rgs
vbscript.spec
vbscript_classes.idl
vbscript_defs.h
vbscript_main.c
vbsglobal.idl
vbsregexp10.idl
vbsregexp55.idl