Skip to content

feat(minor): read and write portable bytes through RawSpan (rebased #31) - #32

Merged
lemire merged 1 commit into
masterfrom
rawspan-rebased
Oct 26, 2026
Merged

lemire merged 1 commit into
masterfrom
rawspan-rebased

Conversation

@lemire

@lemire lemire commented Oct 26, 2026

Copy link
Copy Markdown
Member

This is #31 by @vsarunas, rebased onto master (a1c1338, CRoaring 5.4.0 and the new UBSan workflow). The commit and its author are unchanged. #31 comes from a fork that doesn't allow maintainer edits, so it couldn't be rebased in place.

CRoaring 5.4.0 makes portable frozen views tolerate unaligned payloads (RoaringBitmap/CRoaring#918, RoaringBitmap/CRoaring#920). With it, the view tests in this PR pass under UBSan, including the one that reads a bitmap one byte off alignment. They didn't before.

Locally (macOS, Swift 6.2.4): 91 tests pass with swift test, --sanitize=address and --sanitize=undefined (UBSAN_OPTIONS=halt_on_error=1).

@vsarunas

Copy link
Copy Markdown
Contributor

Great, thanks @lemire !

I gave access in case you need to make a tweak to the other PRs.

@lemire
lemire merged commit 410752d into master Oct 26, 2026
4 checks passed
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.

2 participants