-
Notifications
You must be signed in to change notification settings - Fork 19
Add ASAN and Valgrind integration for CI test suite #289
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
65df21f
Add ASAN and Valgrind integration for CI test suite
fdcastel 1b21cf2
Add lsan.supp and fix suppressions file path
fdcastel 2e5af48
Mark ASAN CI job as continue-on-error
fdcastel 832d8e7
Fix heap-buffer-overflow in ConvertingString<> state buffer allocation
fdcastel 8ea653f
Remove continue-on-error from ASAN CI job
fdcastel 84b9dec
Address PR review: rename to BUILD_WITH_*, restructure sanitizer options
fdcastel e28f255
Restructure LOGGING handling to use remove_definitions pattern
fdcastel 52f0495
Simplify LOGGING guard to a single combined condition
fdcastel b7aa955
Fix version detection when no stable release tag exists
fdcastel 5323214
Exclude DEBUG macro from sanitizer builds
fdcastel 836e6d4
Fix SQLWCHAR conversion path in MainUnicode
fdcastel f20e6fc
Revert "Fix SQLWCHAR conversion path in MainUnicode"
fdcastel 9daab27
Make sanitizer presets explicitly mutually exclusive
fdcastel 8258a27
Pin sanitizer flags OFF in standard presets
fdcastel 0f8f90f
Fix ConvertingString heap overflow without causing stack smash
fdcastel bea6403
Use byte-level widening/narrowing on Linux SQLWCHAR paths
fdcastel 09b934a
Trim PR #289 to ASAN/Valgrind CI scope
fdcastel 98115a1
Disable ASAN CI job until Linux widechar paths are fixed
fdcastel File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| # LeakSanitizer suppressions for Firebird ODBC Driver test suite | ||
| # | ||
| # This file suppresses known leak reports from third-party libraries | ||
| # (Firebird client, unixODBC, system allocators, etc.). | ||
| # Populate as false positives are discovered during ASAN/LSAN runs. | ||
| # | ||
| # Usage: | ||
| # export LSAN_OPTIONS="suppressions=lsan.supp" | ||
|
|
||
| leak:libfbclient | ||
| leak:libodbc | ||
| leak:libodbcinst |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| # Valgrind suppressions for Firebird ODBC Driver test suite | ||
| # | ||
| # This file suppresses known false positives from third-party libraries | ||
| # (Firebird client, unixODBC, system allocators, etc.). | ||
| # Populate as false positives are discovered during Valgrind runs. | ||
| # | ||
| # Usage: | ||
| # valgrind --leak-check=full --suppressions=valgrind.supp ./firebird_odbc_tests | ||
| # | ||
| # Or via CTest (when ENABLE_VALGRIND=ON): | ||
| # ctest -T memcheck | ||
|
|
||
| { | ||
| fbclient_global_init | ||
| Memcheck:Leak | ||
| ... | ||
| obj:*/libfbclient.so* | ||
| } |
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.
Uh oh!
There was an error while loading. Please reload this page.