summaryrefslogtreecommitdiff
path: root/test/correctness
diff options
context:
space:
mode:
authorCedric Nugteren <web@cedricnugteren.nl>2018-05-17 12:16:32 +0200
committerCedric Nugteren <web@cedricnugteren.nl>2018-05-17 12:16:32 +0200
commit8290ad78b934601ae156e752fce5fa921cb6479d (patch)
treef4cdf012f5d046f457d0ddee3e44350fcb98147a /test/correctness
parent85341836dd4d24214f8eaa483d87a728568b41ca (diff)
Fixed a few issues with canary region testing
Diffstat (limited to 'test/correctness')
-rw-r--r--test/correctness/testblas.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/correctness/testblas.cpp b/test/correctness/testblas.cpp
index ddd29f80..3c92565e 100644
--- a/test/correctness/testblas.cpp
+++ b/test/correctness/testblas.cpp
@@ -220,7 +220,7 @@ void TestBlas<T,U>::TestRegular(std::vector<Arguments<U>> &test_vector, const st
}
// Checks for differences in the 'canary' region to detect buffer overflows
for (auto canary_id=size_t{0}; canary_id<kCanarySize; ++canary_id) {
- auto index = get_index_(args, get_id1_(args), get_id2_(args)) + canary_id;
+ auto index = get_index_(args, get_id1_(args) - 1, get_id2_(args) - 1) + canary_id;
if (!TestSimilarity(result1[index], result2[index])) {
errors++;
if (verbose_) {