cmd.exe: Increase size of WCMD_HandleTildeModifiers() buffers to MAXSTRING.
commitabe848f05f5d91d4c8eb875ebbf143ca9ca9a210
authorDamjan Jovanovic <damjan.jov@gmail.com>
Fri, 13 Nov 2020 16:09:59 +0000 (13 18:09 +0200)
committerAlexandre Julliard <julliard@winehq.org>
Tue, 17 Nov 2020 20:16:43 +0000 (17 21:16 +0100)
tree4799e145a4fc12823e44eedc3e1418543d89e64d
parentab1a97926811f91760d699a5f98b25febdfbf8eb
cmd.exe: Increase size of WCMD_HandleTildeModifiers() buffers to MAXSTRING.

Some buffers in WCMD_HandleTildeModifiers() are only of size MAX_PATH,
even though they handle strings that aren't necessarily
filenames. When changed to have size MAXSTRING, a stack overflow crash
with strings of size MAX_PATH stops happening.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=42731
Signed-off-by: Damjan Jovanovic <damjan.jov@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
programs/cmd/batch.c