mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-18 12:29:21 +00:00
Fix potential buffer overflow
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46296 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b487e7215c
commit
58ea52a6a5
@ -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++) {
|
||||
|
Loading…
Reference in New Issue
Block a user