summaryrefslogtreecommitdiff
path: root/deps/gyp/test/win/compiler-flags/buffer-security.cc
blob: e8a48a2a6741fcecd31968e73839117f2d8f5a7d (plain)
1
2
3
4
5
6
7
8
9
10
11
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;
}