Skip to content

Line flagged in CRAN's clang-UBSAN checks #46

@jennybc

Description

@jennybc

readxl currently has a ... memo, I'll call it, from their clang-UBSAN checks. readxl still passes R CMD check and our own tests cleanly but this line gets flagged:

snprintf(ret, retlen, "%d", (int)cell->d);

Here's the detailed report:

https://www.stats.ox.ac.uk/pub/bdr/memtests/clang-UBSAN/readxl/tests/testthat.Rout

I suspect that this can be seen as a false positive, in light of external knowledge of the xls spec and memory layout. I'm trying to figure that out for myself, but would be happy for any wisdom or wording you have to share.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions