diff options
author | Florian Mayer <fmayer@google.com> | 2022-03-31 22:00:02 +0000 |
---|---|---|
committer | Florian Mayer <fmayer@google.com> | 2022-03-31 22:00:04 +0000 |
commit | 20698192b915b1434676ba0307069236e4b75bed (patch) | |
tree | 1a362754bb3cebff8cd1411cfed83d1b231715b1 | |
parent | 89d835e053b8fc50bc1279c096f0823e94210d25 (diff) | |
download | incremental_delivery-20698192b915b1434676ba0307069236e4b75bed.tar.gz |
Fix out of bounds in libincfs-test.
Bug: 227661209
Change-Id: I260eec034e9b84115b331b49e430c05149bb4a48
-rw-r--r-- | incfs/tests/util/map_ptr_test.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/incfs/tests/util/map_ptr_test.cpp b/incfs/tests/util/map_ptr_test.cpp index ff9e466..c78d91d 100644 --- a/incfs/tests/util/map_ptr_test.cpp +++ b/incfs/tests/util/map_ptr_test.cpp @@ -43,7 +43,7 @@ protected: ASSERT_GE(fd.get(), 0); // Generate the file data. - std::vector<uint32_t> data(INCFS_DATA_FILE_BLOCK_SIZE); + std::vector<uint32_t> data(FILE_SIZE); for (int i = 0; i < FILE_SIZE; i++) { data[i] = i; } |