Skip to content

Conversation

@dand-oss
Copy link

@dand-oss dand-oss commented Jan 6, 2026

Replaced non-template xdr_enum(xdr_t*, xdr_op*) with a type-safe template that accepts any enum type.

This eliminates the need for reinterpret_cast<xdr_op*> at call sites which violates strict aliasing rules and triggers undefined behavior under UBSAN.

Replaced non-template xdr_enum(xdr_t*, xdr_op*) with a type-safe template that accepts any enum type.

This eliminates the need for reinterpret_cast<xdr_op*> at call sites which violates strict aliasing rules and triggers undefined behavior under UBSAN.
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