Skip to content

Avoid std::copy calls that make 0 length copy, possibly reading from an invalid pointer (UBSAN issue) - #1627

Open
perrydv wants to merge 2 commits into
develfrom
avoid-0-length-std-copy
Open

Avoid std::copy calls that make 0 length copy, possibly reading from an invalid pointer (UBSAN issue)#1627
perrydv wants to merge 2 commits into
develfrom
avoid-0-length-std-copy

Conversation

@perrydv

@perrydv perrydv commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

This attempts to the fix the latest CRAN UBSAN (non-)issue from code that has been working for years.

I'm having a hard time reproducing the original UBSAN issue so I haven't verified that this fixes it, but I think it should. In any case I'll run testing.

The changes are minor so there really shouldn't be a testing problem...

@perrydv

perrydv commented Aug 10, 2026

Copy link
Copy Markdown
Contributor Author

Three times testing failed on "Error in library(testthat) : there is no package called ‘testthat’". This seemed like a basic infrastructure issue with GitHub and/or CRAN, so I expected it to resolve itself when I restarted the test jobs, but it hasn't. @paciorek Do you have any ideas?

@perrydv

perrydv commented Aug 10, 2026

Copy link
Copy Markdown
Contributor Author

Per suggestion from Claude AI, I cleared the cache. I also moved the Version and Date back to what they had been, after having modified them when trying to use R CMD check --as-cran. Tests are rerunning.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant