# -------------------------------------------- # CITATION file created with {cffr} R package # See also: https://docs.ropensci.org/cffr/ # -------------------------------------------- cff-version: 1.2.0 message: 'To cite package "sanitizers" in publications use:' type: software license: GPL-2.0-or-later title: 'sanitizers: C/C++ Source Code to Trigger Address and Undefined Behaviour Sanitizers' version: 0.1.1 doi: 10.32614/CRAN.package.sanitizers abstract: Recent gcc and clang compiler versions provide functionality to test for memory violations and other undefined behaviour; this is often referred to as "Address Sanitizer" (or 'ASAN') and "Undefined Behaviour Sanitizer" ('UBSAN'). The Writing R Extension manual describes this in some detail in Section 4.3 title "Checking Memory Access". This feature has to be enabled in the corresponding binary, eg in R, which is somewhat involved as it also required a current compiler toolchain which is not yet widely available, or in the case of Windows, not available at all (via the common Rtools mechanism). As an alternative, pre-built Docker containers such as the Rocker container 'r-devel-san' or the multi-purpose container 'r-debug' can be used. This package then provides a means of testing the compiler setup as the known code failures provides in the sample code here should be detected correctly, whereas a default build of R will let the package pass. The code samples are based on the examples from the Address Sanitizer Wiki at . authors: - family-names: Eddelbuettel given-names: Dirk email: edd@debian.org orcid: https://orcid.org/0000-0001-6419-907X repository: https://eddelbuettel.r-universe.dev repository-code: https://github.com/eddelbuettel/sanitizers commit: c30b3c33c680e3a3510fee13fa99acc1ebcb87af url: https://dirk.eddelbuettel.com/code/sanitizers.html date-released: '2023-06-11' contact: - family-names: Eddelbuettel given-names: Dirk email: edd@debian.org orcid: https://orcid.org/0000-0001-6419-907X