Skip to content

Conversation

@clchiou
Copy link
Contributor

@clchiou clchiou commented Jan 10, 2026

When dereferencing a double-far pointer, it seems that otherSegment should be arena[pad] (not arena[ref]), and tag should segment[padOffset + 1] instead of padOffset + 1 itself. The Rust library appears to behave this way.

@clchiou
Copy link
Contributor Author

clchiou commented Jan 13, 2026

Hi @dwrensha, would you mind taking a look at this PR?

@dwrensha dwrensha merged commit d12a4d2 into capnproto:master Jan 14, 2026
1 check passed
@dwrensha
Copy link
Member

Looks good to me. Thanks!

@clchiou clchiou deleted the zero-object-double-far-pointer branch January 14, 2026 12:31
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