Skip to content

Conversation

outtersg
Copy link
Contributor

@outtersg outtersg commented Oct 1, 2025

See #20002.

The #if to have instrumented versions of strlcpy and strlcat was too inclusive, and defined them even on *BSD that indeed have those already defined, resulting in "duplicate symbol" at linking.

We use a really simple heuristic here (OSes that are used to have instrumented strlcpy and strlcat already defined in their msan library do not redefine them).

Copy link
Member

@iluuu1994 iluuu1994 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM otherwise, thanks!

The #if to have instrumented versions of strlcpy and strlcat was too
inclusive, and defined them even on *BSD that indeed have those already
defined, resulting in "duplicate symbol" at linking.
@iluuu1994
Copy link
Member

Great, thank you @outtersg!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants