C/C++ Source Code to Trigger Address and Undefined Behaviour Sanitizers
Overview
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.
- Expanded README.md with additional badges, and updated URLs
- Updated continuous integration multiple times
- Switched to Authors@R
- Added
usage,argumentsandvaluesections to manual page
From inst/NEWS.Rd in the release
Install
Health
- OK13 OK2026-09-16
- NOTE12 OK, 2 NOTE2026-03-10
Documentation
- Help pages
- 1includes a package overview page
- Examples that run
- no examples
- Exported functions with examples
- 0%
- Documented parameters
- 100%
- Return-value docs
- 100%
- Help pages citing references
- 0%
Downloads
Repository
- PRs merged (all time)
- not measured
- Median days to close, 50 most recently updated closed issues
- 0
- Median days to close, 50 most recently updated closed PRs
- not measured
Commits over time
2 development-tooling and community-health practices detected across 2 families in the upstream repository
Checks run against github.com/eddelbuettel/sanitizers on 2026-10-11.
The repository owner accepts GitHub Sponsors
Dependencies
Installing sanitizers adds no packages beyond those that come with R.
Code & Tests
People & History
Pick two releases to compare their code metrics.
- 0.1.2Latest
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- 0.1.12023-06-11 · diff ↗ ·
removed 1 export
pattern:^[[:alpha:]]+added 3 exports
stackAddressSanitize, heapAddressSanitize, intOverflowSanitize - RR 4.3.0 released · 2023-04-21
- RR 4.2.0 released · 2022-04-22
- RR 4.1.0 released · 2021-05-18
- RR 4.0.0 released · 2020-04-24
- RR 3.6.0 released · 2019-04-26
- RR 3.5.0 released · 2018-04-23
- RR 3.4.0 released · 2017-04-21
- RR 3.3.0 released · 2016-05-03
- RR 3.2.0 released · 2015-04-16
- 0.1.02014-08-03
- RR 3.1.0 released · 2014-04-10
Package metadata
- First published
- 2014-08-03
- Total releases
- 3 / 12 yrs
- License
- GPL (>= 2) OSI
- Download size
- 11 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("sanitizers")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-18, which the citation names so these numbers can be found later. More on citing and the projects behind them.