Summary: add test for bufferoverrun Reviewed By: jvillard Differential Revision: D4928322 fbshipit-source-id: 2cd1e21master
parent
e77c1d8ea6
commit
9cad51d00a
@ -0,0 +1,14 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (c) 2017 - present Facebook, Inc.
|
||||||
|
* All rights reserved.
|
||||||
|
*
|
||||||
|
* This source code is licensed under the BSD style license found in the
|
||||||
|
* LICENSE file in the root directory of this source tree. An additional grant
|
||||||
|
* of patent rights can be found in the PATENTS file in the same directory.
|
||||||
|
*/
|
||||||
|
#include <vector>
|
||||||
|
|
||||||
|
void FN_out_of_bound_Bad(std::vector<int> v) {
|
||||||
|
unsigned int n = v.size();
|
||||||
|
v[n] = 1;
|
||||||
|
}
|
Loading…
Reference in new issue