Skip to content

[PR] Apply multiple sanitizers#166

Open
elazaro-riverside wants to merge 4 commits intomainfrom
feature/apply-multiple-sans
Open

[PR] Apply multiple sanitizers#166
elazaro-riverside wants to merge 4 commits intomainfrom
feature/apply-multiple-sans

Conversation

@elazaro-riverside
Copy link
Copy Markdown
Collaborator

No description provided.

Comment on lines +201 to +202
uint32_t cwe_id = static_cast<uint32_t>(std::stoi(vuln.WeaknessID));
switch (cwe_id) {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

It looks like "0" is not a valid CWE id...

So, we could not deal with strings and instead use a sentinel value of 0 to indicate "instrument all".
Vulnerability.hpp would parse the appropriate string and convert it to a sentinel integer, which we can then switch on here.

@elazaro-riverside elazaro-riverside force-pushed the feature/apply-multiple-sans branch from eedfad3 to e7774da Compare March 30, 2026 13:36
@elazaro-riverside elazaro-riverside changed the title [DRAFT] Apply multiple sanitizers [PR] Apply multiple sanitizers Mar 30, 2026
@elazaro-riverside elazaro-riverside marked this pull request as ready for review March 30, 2026 14:27
@elazaro-riverside elazaro-riverside self-assigned this Mar 30, 2026
@elazaro-riverside elazaro-riverside added the CVEAssert Related to CVEAssert component label Mar 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CVEAssert Related to CVEAssert component

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants