https://bugs.winehq.org/show_bug.cgi?id=49314
Bug ID: 49314 Summary: Wine segfaults with too many command-line arguments Product: Wine Version: 5.7 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: esteve.varela@gmail.com Distribution: ---
Running the `wine` command on any program, with too many arguments (or too long of a command-line) causes a segfault.
An example of a command that can reproduce this bug on most systems: wine start '/?' /usr/bin/*
Expected output: A list of option flags for wine start Gotten result: Segmentation fault
This bug is problematic because it can happen with command-lines shorter than 32767 bytes (which I believe to be the upper limit supported by wine), though the exact circumstances aren't exactly clear.
The reported behavior has been observed with wine 5.7, but is still present in 5.9. On wine-staging, the error is instead: 0024:err:seh:segv_handler_early Got unexpected trap 14 during process initialization