|
Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
|
Installed-package check: logical bounds of the arrays under the sanitizer configuration that the package publishes. More...
#include <cstddef>#include <cstdlib>#include <cstring>#include <iostream>#include <string>#include <utility>#include <aleph-version.H>#include <tpl_array.H>#include <tpl_arrayQueue.H>#include <tpl_memArray.H>Go to the source code of this file.
Functions | |
| int | main (int argc, char **argv) |
Installed-package check: logical bounds of the arrays under the sanitizer configuration that the package publishes.
Built with nothing but Aleph::Aleph. Without arguments it runs every legitimate access and, when the package annotates MemArray for AddressSanitizer, checks after each operation that exactly the reserved slots beyond the logical size are poisoned. With the name of a case as argument it reads the first slot beyond the logical size, which AddressSanitizer must report as a container-overflow in any build type.
The storage of ArrayQueue is circular: its logical sequence is not a prefix of the buffer, so it is only required to work without reports.
Definition in file logical_bounds.cc.
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
Definition at line 256 of file logical_bounds.cc.