This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug driver/71850] New: CreateProcess argumend lpCommandLine exceeds limit 32k limit
- From: "christian.wilmes at elektrobit dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 12 Jul 2016 15:22:48 +0000
- Subject: [Bug driver/71850] New: CreateProcess argumend lpCommandLine exceeds limit 32k limit
- Auto-submitted: auto-generated
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71850
Bug ID: 71850
Summary: CreateProcess argumend lpCommandLine exceeds limit 32k
limit
Product: gcc
Version: 6.1.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: driver
Assignee: unassigned at gcc dot gnu.org
Reporter: christian.wilmes at elektrobit dot com
Target Milestone: ---
Under windows the command line is limited to 32k. When passing an compiler
option file (via @optionfile) it is parsed by gcc and then a call to cc1 is
generated via CreateProcess API. In this case gcc passes the parameters from
the option file and does not check wether it exceeds the 32k limit. For example
if someone defines too many include directories gcc will crash with a
"CreateProcess: No such file or directory" error.