diff options
author | Cedric Nugteren <web@cedricnugteren.nl> | 2018-05-17 10:45:10 +0100 |
---|---|---|
committer | Cedric Nugteren <web@cedricnugteren.nl> | 2018-05-17 10:45:10 +0100 |
commit | b855af681f2d6b7cf6d80504fd4601c64f2034c1 (patch) | |
tree | e2b9120619ea2e05e5371eadf69ee9274c5bb1e7 /src/utilities | |
parent | 8b381480f8bd3b40cc030b07a599da10092b8117 (diff) |
Added a canary region for overflow detection to the tuners
Diffstat (limited to 'src/utilities')
-rw-r--r-- | src/utilities/utilities.hpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/utilities/utilities.hpp b/src/utilities/utilities.hpp index 0edf77fe..84591f70 100644 --- a/src/utilities/utilities.hpp +++ b/src/utilities/utilities.hpp @@ -52,6 +52,9 @@ const std::string kKhronosIntelSubgroups = "cl_intel_subgroups"; // Catched an unknown error constexpr auto kUnknownError = -999; +// Canary size to add to buffers to check for buffer overflows +constexpr auto kCanarySize = 127; + // ================================================================================================= // The routine-specific arguments in string form |