http://bugs.winehq.org/show_bug.cgi?id=34814
Bug #: 34814 Summary: wineconsole truncates argument string in 256 bytes Product: Wine Version: 1.7.4 Platform: x86-64 OS/Version: Mac OS X Status: UNCONFIRMED Severity: minor Priority: P2 Component: -unknown AssignedTo: wine-bugs@winehq.org ReportedBy: ohkawa.hiroki@shift.gr.jp Classification: Unclassified
wineconsole truncates command-line argument string (without switches, like `--backend=...') in 256 bytes, whereas wine command does not.
It looks too short in practical use. 4096 bytes or more would be better. (It would surely be much better to calculate buffer length dynamically from system-wide limitation, or in same way as wine command does, though...)
FIY. I've tried to apply a ad-hoc, workaround patch to programs/wineconsole/wineconsole.c, just to widen `WCHAR buffer[256]', and it seems to be working.
https://bugs.winehq.org/show_bug.cgi?id=34814
--- Comment #1 from Austin English austinenglish@gmail.com --- This is your friendly reminder that there has been no bug activity for over a year. Is this still an issue in current (1.7.37 or newer) wine? If so, please attach the terminal output in 1.7.37 (see http://wiki.winehq.org/FAQ#get_log).
https://bugs.winehq.org/show_bug.cgi?id=34814
Hugh McMaster hugh.mcmaster@outlook.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |hugh.mcmaster@outlook.com
https://bugs.winehq.org/show_bug.cgi?id=34814
--- Comment #2 from Bruno Jesus 00cpxxx@gmail.com --- Was this fixed by http://source.winehq.org/git/wine.git/commitdiff/0516d969ebffa93f1317a9dbf6e... ?
https://bugs.winehq.org/show_bug.cgi?id=34814
--- Comment #3 from Hugh McMaster hugh.mcmaster@outlook.com --- Bruno,
I tested this with 'wineconsole cmd.exe help' and a lot of arguments. The resulting error (expected!) repeated the entire argument string, e.g. 'No help available for <long series of arguments>'.
Previously, the argument string was truncated at 256 chars.
https://bugs.winehq.org/show_bug.cgi?id=34814
--- Comment #4 from Bruno Jesus 00cpxxx@gmail.com --- (In reply to Hugh McMaster from comment #3)
Bruno,
I tested this with 'wineconsole cmd.exe help' and a lot of arguments. The resulting error (expected!) repeated the entire argument string, e.g. 'No help available for <long series of arguments>'.
Previously, the argument string was truncated at 256 chars.
I'm sorry, I may be too sleepy, does this mean it's fixed?
https://bugs.winehq.org/show_bug.cgi?id=34814
--- Comment #5 from Hugh McMaster hugh.mcmaster@outlook.com --- (In reply to Bruno Jesus from comment #4)
I'm sorry, I may be too sleepy, does this mean it's fixed?
I'm not the OP, but yes, the bug is fixed.
https://bugs.winehq.org/show_bug.cgi?id=34814
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |0516d969ebffa93f1317a9dbf6e | |4c1a1af457a59 Status|UNCONFIRMED |RESOLVED Resolution|--- |FIXED
--- Comment #6 from Austin English austinenglish@gmail.com --- (In reply to Hugh McMaster from comment #5)
(In reply to Bruno Jesus from comment #4)
I'm sorry, I may be too sleepy, does this mean it's fixed?
I'm not the OP, but yes, the bug is fixed.
Fixed.
https://bugs.winehq.org/show_bug.cgi?id=34814
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #7 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 1.7.43.