CRAN/E | sanitizers

sanitizers

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

Installation

About

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 .

github.com/eddelbuettel/sanitizers
dirk.eddelbuettel.com/code/sanitizers.html
Bug report File report

Key Metrics

Version 0.1.1
Published 2023-06-11 332 days ago
Needs compilation? yes
License GPL-2
License GPL-3
CRAN checks sanitizers results

Downloads

Yesterday 15 0%
Last 7 days 50 -35%
Last 30 days 226 +5%
Last 90 days 618 -28%
Last 365 days 3.065 +15%

Maintainer

Maintainer

Dirk Eddelbuettel

edd@debian.org

Authors

Dirk Eddelbuettel

Material

README
NEWS
ChangeLog
Reference manual
Package source

macOS

r-release

arm64

r-oldrel

arm64

r-release

x86_64

r-oldrel

x86_64

Windows

r-devel

x86_64

r-release

x86_64

r-oldrel

x86_64

Old Sources

sanitizers archive