commit | 27f1ebc52ba801ff6bc5cdf63cd476128f9e1f63 | [log] [tgz] |
---|---|---|
author | Anton Korobeynikov <asl@math.spbu.ru> | Thu Jan 24 01:20:48 2008 +0000 |
committer | Anton Korobeynikov <asl@math.spbu.ru> | Thu Jan 24 01:20:48 2008 +0000 |
tree | d2f9752cbf04fea24cd2cb7e45d1ea9b442c9c3a | |
parent | 580607928bc87fa22ad5a71a16e0025722b339ea [diff] [blame] |
Fix potential buffer overflow git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46296 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/System/Win32/Program.inc b/lib/System/Win32/Program.inc index 3badb19..cb00213 100644 --- a/lib/System/Win32/Program.inc +++ b/lib/System/Win32/Program.inc
@@ -134,7 +134,7 @@ } // 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++) {