diff options
Diffstat (limited to 'third_party/python/gyp/test/win/compiler-flags/buffer-security.cc')
-rw-r--r-- | third_party/python/gyp/test/win/compiler-flags/buffer-security.cc | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/third_party/python/gyp/test/win/compiler-flags/buffer-security.cc b/third_party/python/gyp/test/win/compiler-flags/buffer-security.cc new file mode 100644 index 0000000000..e8a48a2a67 --- /dev/null +++ b/third_party/python/gyp/test/win/compiler-flags/buffer-security.cc @@ -0,0 +1,12 @@ +// Copyright (c) 2012 Google Inc. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#include <malloc.h> +#include <string.h> + +int main() { + char* stuff = reinterpret_cast<char*>(_alloca(256)); + strcpy(stuff, "blah"); + return 0; +} |