Skip to content

Commit 3878d55

Browse files
Slight change to annotate overflow as unlikely in command line parameter handling
1 parent 7ad8cc5 commit 3878d55

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/ch/JITProcessManager.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ HRESULT JITProcessManager::CreateServerProcess(int argc, __in_ecount(argc) LPWST
5252
STARTUPINFOW si = { 0 };
5353

5454
// overallocate constant cmd line (jshost -jitserver:<guid>)
55-
size_t cmdLineSize = (MAX_PATH + argc) * sizeof(WCHAR);
55+
size_t cmdLineSize = (MAX_PATH + (size_t)argc) * sizeof(WCHAR);
5656
for (int i = 0; i < argc; ++i)
5757
{
5858
// calculate space requirement for each arg

0 commit comments

Comments
 (0)