-
-
Notifications
You must be signed in to change notification settings - Fork 195
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
-fsanitize=undefined runtime error: member access within null pointer of type 'struct TxItem' #203
Labels
Comments
Merged
Thanks! The first one is legit -- although it has no practical significance, it is technically a UB, so I opened #204 to fix it. The other two are unhelpful. Could you please help us set up the sanitizer in the CI? |
Started #205 in attempt to add sanitizer to cmake build. It may take some experimenting to get right on CI. |
pavel-kirienko
pushed a commit
that referenced
this issue
Nov 3, 2022
Related to #203 Co-authored-by: John Vishnefske <john.vishnefske@viavisolutions.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I compiled canard.c from release tarball 3.0.0, and the public catch2 tests with my meson file. -fsanitize=undefined seems to be triggering while running unit tests.
../subprojects/libcanard-3.0.0/tests/test_public_tx.cpp:101:
PASSED:
REQUIRE( 3 == alloc.getNumAllocatedFragments() )
with expansion:
3 == 3
../subprojects/libcanard-3.0.0/libcanard/canard.c:413:47: runtime error: member access within null pointer of type 'struct TxItem'
../subprojects/libcanard-3.0.0/tests/test_public_tx.cpp:107:
PASSED:
REQUIRE( -3 == que.push(&ins.getInstance(), 1'000'000'000'300ULL, meta, 100, payload.data()) )
with expansion:
-3 == -3
The text was updated successfully, but these errors were encountered: