Add support for very long command line in RhCreateAndInject #84

Closed
rtissera opened this Issue Mar 15, 2016 · 0 comments

Comments

Projects
None yet
2 participants
@rtissera

Hello,

Currently the command line max length is hardcoded to MAX_PATH which is incorrect, as explained here : https://blogs.msdn.microsoft.com/oldnewthing/20031210-00/?p=41553

I have attached a very primitive patch to illustrate the issue.
IMHO it is safe to allow the command line generated to contain up to 8191 characters.

It is very, very useful in specific use cases to support command lines containing more than 260 characters (MAX_PATH value).

0001-Add-support-for-very-long-up-to-8191-characters-comm.txt

@spazzarama spazzarama added this to the 2.8 milestone Mar 19, 2016

@spazzarama spazzarama closed this in e1b3746 Mar 2, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment