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

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