This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug driver/71850] New: CreateProcess argumend lpCommandLine exceeds limit 32k limit


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]