-
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
Changes from 5 commits
65df21f
1b21cf2
2e5af48
832d8e7
8ea653f
84b9dec
e28f255
52f0495
b7aa955
5323214
836e6d4
f20e6fc
9daab27
8258a27
0f8f90f
bea6403
09b934a
98115a1
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -85,7 +85,7 @@ class ConvertingString | |
| if ( length == SQL_NTS ) | ||
| lengthString = 0; | ||
| else if ( retCountOfBytes ) | ||
| lengthString = length / sizeof(wchar_t); | ||
| lengthString = length / sizeof(SQLWCHAR); | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. And please! Have you forgotten that this change causes a stack smash?)) Simply because the the lengthString becomes greater, and the This undoubtedly right change CAN NOT be done without a deep refactoring of the unicode routins. I thought I've explaned it clearly in #289 (comment)
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You were right — this change alone breaks the symmetric
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Right. But it's insufficient to close this thread, please revert the changes) return the line 88 back to the original
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Cannot see where the line 88 is reverted in ^^^ |
||
| else | ||
| lengthString = length; | ||
| } | ||
|
|
||
| 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 |
| 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* | ||
| } |
Uh oh!
There was an error while loading. Please reload this page.