We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Learn more about funding links in repositories.
Report abuse
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
When compiled with the -fsanitizer flag, gcc 13.2.0 warns about a NULL deference in tau.
-fsanitizer
tau/tau/tau.h:1324:61: warning: dereference of NULL '0' [CWE-476] [-Wanalyzer-null-dereference] 1324 | tauStatsFailedTestSuites[failed_testcase_index] = i; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
Step to reproduce: compile the following with gcc -fsanitizer main.c -o main
gcc -fsanitizer main.c -o main
// main.c #include "tau/tau.h" TAU_MAIN() // sets up Tau (+ main function) TEST(foo, bar1) { int a = 42; int b = 13; CHECK_GE(a, b); // pass :) CHECK_LE(b, 8); // fail - Test suite not aborted } TEST(foo, bar2) { char *a = "foo"; char *b = "foobar"; REQUIRE_STREQ(a, a); // pass :) REQUIRE_STREQ(a, b); // fail - Test suite aborted }
--
This library is great. It strikes a good balance between simplicity and functionality. Thanks for your work!
The text was updated successfully, but these errors were encountered:
No branches or pull requests
When compiled with the
-fsanitizer
flag, gcc 13.2.0 warns about a NULL deference in tau.tau/tau/tau.h:1324:61: warning: dereference of NULL '0' [CWE-476] [-Wanalyzer-null-dereference] 1324 | tauStatsFailedTestSuites[failed_testcase_index] = i; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
Step to reproduce: compile the following with
gcc -fsanitizer main.c -o main
--
This library is great. It strikes a good balance between simplicity and functionality.
Thanks for your work!
The text was updated successfully, but these errors were encountered: