Skip to content

Avoid [0] access of 0-length objects#44

Merged
MichaelChirico merged 2 commits intomainfrom
MichaelChirico-patch-1
Apr 16, 2025
Merged

Avoid [0] access of 0-length objects#44
MichaelChirico merged 2 commits intomainfrom
MichaelChirico-patch-1

Conversation

@MichaelChirico
Copy link
Copy Markdown
Collaborator

@MichaelChirico MichaelChirico commented Apr 16, 2025

An example of such an access is here:

bit/src/bit.c

Line 247 in c733080

word = b[j];

Which occurs under as.bit(logical()).

Same runtime environment as r-lib/vctrs#1968, though this time it's not memcpy() at root.

@MichaelChirico MichaelChirico merged commit 6ad9669 into main Apr 16, 2025
10 checks passed
@MichaelChirico MichaelChirico deleted the MichaelChirico-patch-1 branch April 16, 2025 17:02
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