Package: sanitizers 0.1.1

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>.

Authors:Dirk Eddelbuettel [aut, cre]

sanitizers_0.1.1.tar.gz
sanitizers_0.1.1.zip(r-4.5)sanitizers_0.1.1.zip(r-4.4)sanitizers_0.1.1.zip(r-4.3)
sanitizers_0.1.1.tgz(r-4.5-x86_64)sanitizers_0.1.1.tgz(r-4.5-arm64)sanitizers_0.1.1.tgz(r-4.4-x86_64)sanitizers_0.1.1.tgz(r-4.4-arm64)sanitizers_0.1.1.tgz(r-4.3-x86_64)sanitizers_0.1.1.tgz(r-4.3-arm64)
sanitizers_0.1.1.tar.gz(r-4.5-noble)sanitizers_0.1.1.tar.gz(r-4.4-noble)
sanitizers_0.1.1.tgz(r-4.4-emscripten)sanitizers_0.1.1.tgz(r-4.3-emscripten)
sanitizers.pdf |sanitizers.html
sanitizers/json (API)
NEWS

# Install 'sanitizers' in R:
install.packages('sanitizers', repos = c('https://eddelbuettel.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/eddelbuettel/sanitizers/issues

Uses libs:
  • c++– GNU Standard C++ Library v3

On CRAN:

cpp

4.22 score 11 stars 7 scripts 231 downloads 3 exports 0 dependencies

Last updated 3 months agofrom:c30b3c33c6. Checks:11 OK. Indexed: yes.

TargetResultLatest binary
Doc / VignettesOKFeb 14 2025
R-4.5-win-x86_64OKFeb 19 2025
R-4.5-mac-x86_64OKFeb 14 2025
R-4.5-mac-aarch64OKFeb 14 2025
R-4.5-linux-x86_64OKFeb 14 2025
R-4.4-win-x86_64OKFeb 14 2025
R-4.4-mac-x86_64OKFeb 14 2025
R-4.4-mac-aarch64OKFeb 14 2025
R-4.3-win-x86_64OKFeb 14 2025
R-4.3-mac-x86_64OKFeb 14 2025
R-4.3-mac-aarch64OKFeb 14 2025

Exports:heapAddressSanitizeintOverflowSanitizestackAddressSanitize

Dependencies:

Readme and manuals

Help Manual

Help pageTopics
C/C++ Source Code to Trigger Address and Undefined Behaviour Sanitizerssanitizers-package heapAddressSanitize intOverflowSanitize sanitizers stackAddressSanitize