The hardware and bandwidth for this mirror is donated by METANET, the Webhosting and Full Service-Cloud Provider.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]metanet.ch.

sanitizers: C/C++ Source Code to Trigger Address and Undefined Behaviour Sanitizers

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 <https://github.com/google/sanitizers/wiki>.

Version: 0.1.1
Published: 2023-06-11
DOI: 10.32614/CRAN.package.sanitizers
Author: Dirk Eddelbuettel
Maintainer: Dirk Eddelbuettel <edd at debian.org>
BugReports: https://github.com/eddelbuettel/sanitizers/issues
License: GPL-2 | GPL-3 [expanded from: GPL (≥ 2)]
URL: https://github.com/eddelbuettel/sanitizers, https://dirk.eddelbuettel.com/code/sanitizers.html
NeedsCompilation: yes
Materials: README NEWS ChangeLog
CRAN checks: sanitizers results

Documentation:

Reference manual: sanitizers.pdf

Downloads:

Package source: sanitizers_0.1.1.tar.gz
Windows binaries: r-devel: sanitizers_0.1.1.zip, r-release: sanitizers_0.1.1.zip, r-oldrel: sanitizers_0.1.1.zip
macOS binaries: r-release (arm64): sanitizers_0.1.1.tgz, r-oldrel (arm64): sanitizers_0.1.1.tgz, r-release (x86_64): sanitizers_0.1.1.tgz, r-oldrel (x86_64): sanitizers_0.1.1.tgz
Old sources: sanitizers archive

Linking:

Please use the canonical form https://CRAN.R-project.org/package=sanitizers to link to this page.

These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.