Increase the length of allowed parameters in ilasm.
authorEric Mellino <erme@microsoft.com>
Sat, 25 Feb 2017 00:48:50 +0000 (16:48 -0800)
committerEric Mellino <erme@microsoft.com>
Sat, 25 Feb 2017 00:48:50 +0000 (16:48 -0800)
The way this code is structured prevents parameters longer than 128 characters
from being passed. This change simply increases that to 1024 characters, although
a more robust change could be made in the future to account for platform differences.

Commit migrated from https://github.com/dotnet/coreclr/commit/f30a73fd453ecb104889c40a2ea92b1b72e99edb

src/coreclr/src/ilasm/main.cpp

index 35f4545..912ccce 100644 (file)
@@ -106,7 +106,7 @@ extern "C" int _cdecl wmain(int argc, __in WCHAR **argv)
 {
     int         i, NumFiles = 0, NumDeltaFiles = 0;
     bool        IsDLL = false, IsOBJ = false;
-    char        szOpt[128];
+    char        szOpt[1024];
     Assembler   *pAsm;
     MappedFileStream *pIn;
     AsmParse    *pParser;