GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Enable compiler sanitizers for test builds, fixed new bugs found with them by shan-tanu-joshi-3010 · Pull Request #1154 · CrowCpp/Crow

Conversation

@shan-tanu-joshi-3010

@shan-tanu-joshi-3010 shan-tanu-joshi-3010 commented Feb 28, 2026

Copy link
Copy Markdown
Contributor

No description provided.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
shan-tanu-joshi-3010 added 3 commits January 17, 2026 23:51
@shan-tanu-joshi-3010
Fix heap-buffer-overflow in query_string for malformed '%'
6aa5076
@shan-tanu-joshi-3010
Removed intermediate debug file test_fix.cpp
8347d63
@shan-tanu-joshi-3010
Enable compiler sanitizers for test builds (Fixes CrowCpp#1137)
389d4f7
@shan-tanu-joshi-3010

shan-tanu-joshi-3010 commented Feb 28, 2026

Copy link
Copy Markdown
Contributor Author

tried to add the feature sanitizer in cli issue #1137

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@shan-tanu-joshi-3010
Enable compiler sanitizers for test builds (Fixes CrowCpp#1137)
bb15f66
@shan-tanu-joshi-3010

shan-tanu-joshi-3010 commented Mar 1, 2026

Copy link
Copy Markdown
Contributor Author

the feature has two sanitizers AddressSanitizer (ASan) and UndefinedBehaviorSanitizer (UBSan) and works only for ci not for production

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@shan-tanu-joshi-3010
Enable compiler sanitizers for test builds (Fixes CrowCpp#1137)
cf10a3e
@shan-tanu-joshi-3010

shan-tanu-joshi-3010 commented Mar 4, 2026

Copy link
Copy Markdown
Contributor Author

fixes the error

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

gittiver
gittiver reviewed Mar 5, 2026
View reviewed changes
Comment thread CMakePresets.json Resolved

Uh oh!

There was an error while loading. Please reload this page.

gittiver
gittiver reviewed Mar 5, 2026
View reviewed changes

@gittiver gittiver left a comment

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

There are changes in query_string and tests which are not directly related to sanitizers.
Why are they there - warnings by sanitizers and can we have these fixes separately?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@shan-tanu-joshi-3010

shan-tanu-joshi-3010 commented Mar 7, 2026

Copy link
Copy Markdown
Contributor Author

There are changes in query_string and tests which are not directly related to sanitizers. Why are they there - warnings by sanitizers and can we have these fixes separately?

These changes are directly caused by the sanitizer build configuration. The ci-sanitize preset inherits from ci-linux, which uses the flags-gcc-clang compiler flags — including -Wold-style-cast, -Wconversion, and -Wsign-conversion with -Werror. The
query_string.h changes replace C-style casts with static_cast and add bounds-checking to prevent heap-buffer-overflow (the original issue this PR addresses). The test changes fix corresponding warnings so the sanitizer build compiles cleanly.
These aren't cosmetic cleanups — they're required for the sanitizer build to pass. I can split them into a separate PR if you prefer, but note that the sanitizer CI job will fail without them.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@shan-tanu-joshi-3010

shan-tanu-joshi-3010 commented Mar 7, 2026

Copy link
Copy Markdown
Contributor Author

If you want I can solve this in a seperate pr but I am new to git hub so I am still figuring out how things work here

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@gittiver gittiver linked an issue Mar 8, 2026 that may be closed by this pull request
Enable compiler sanitizers for test builds #1137
Closed
@gittiver gittiver changed the title Enable compiler sanitizers for test builds Enable compiler sanitizers for test builds, fixed new bugs found Mar 8, 2026
@gittiver gittiver changed the title Enable compiler sanitizers for test builds, fixed new bugs found Enable compiler sanitizers for test builds, fixed new bugs found with them Mar 8, 2026
gittiver
gittiver approved these changes Mar 8, 2026
View reviewed changes
@gittiver
gittiver merged commit 06e93cf into CrowCpp:master Mar 8, 2026
20 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@BrewTestBot BrewTestBot mentioned this pull request Mar 29, 2026
crow 1.3.2 Homebrew/homebrew-core#274906
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@gittiver gittiver gittiver approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Enable compiler sanitizers for test builds

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@shan-tanu-joshi-3010 @gittiver
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.