Skip to content

Build builtin Spicy analyzers with sanitizers if Zeek uses them#151

Merged
bbannier merged 2 commits into
masterfrom
topic/bbannier/sanitize-spicy-builtin-analyzers
Jun 25, 2026
Merged

Build builtin Spicy analyzers with sanitizers if Zeek uses them#151
bbannier merged 2 commits into
masterfrom
topic/bbannier/sanitize-spicy-builtin-analyzers

Conversation

@bbannier

Copy link
Copy Markdown
Member

This is a follow-up for zeek/zeek#5561 where we switched to a
target-based approach to enable sanitizers. While doing OBJECT
libraries for builtin Spicy analyzers lost their potentially set
sanitizer flags which were previously set globally. Since sanitizers
usually do change the implementation of functions and types from the C
and C++ standard library this could have lead to false positive errors.

With this patch we now enable sanitizer flags for builtin Spicy
analyzers if Zeek itself was configured to use sanitizers.

bbannier added 2 commits June 25, 2026 14:54
This is a follow-up for zeek/zeek#5561 where we switched to a
target-based approach to enable sanitizers. While doing `OBJECT`
libraries for builtin Spicy analyzers lost their potentially set
sanitizer flags which were previously set globally. Since sanitizers
usually do change the implementation of functions and types from the C
and C++ standard library this could have lead to false positive errors.

With this patch we now enable sanitizer flags for builtin Spicy
analyzers if Zeek itself was configured to use sanitizers.
@bbannier bbannier self-assigned this Jun 25, 2026
@bbannier bbannier mentioned this pull request Jun 25, 2026
@bbannier
bbannier marked this pull request as ready for review June 25, 2026 14:54
@bbannier
bbannier requested a review from timwoj June 25, 2026 14:54
@bbannier
bbannier merged commit 642184e into master Jun 25, 2026
1 check passed
@bbannier
bbannier deleted the topic/bbannier/sanitize-spicy-builtin-analyzers branch June 25, 2026 15:26
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