Skip to content

Commit

Permalink
Fix potential buffer overflow
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46296 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
asl committed Jan 24, 2008
1 parent b487e72 commit 58ea52a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/System/Win32/Program.inc
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ Program::ExecuteAndWait(const Path& path,
}

// Now build the command line.
char *command = reinterpret_cast<char *>(_alloca(len));
char *command = reinterpret_cast<char *>(_alloca(len+1));
char *p = command;

for (unsigned i = 0; args[i]; i++) {
Expand Down

0 comments on commit 58ea52a

Please sign in to comment.