Skip to content
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

Fixes some tests/bugs, and adds a build with sanitizers #182

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

sterrettm2
Copy link
Contributor

@sterrettm2 sterrettm2 commented Feb 7, 2025

It seems most of the tests were not handling the case where the input size was zero; to be sure these don't misbehave, I've extended those tests to test arrays of size zero. In doing so, I found a few bugs in that handling which should be fixed by this patch.

In addition, this patch adds a new build option to the makefile test_asan, which enabled address sanitizer and undefined behavior sanitizer. This currently only works with clang; GCC seems to show a clearly invalid issue, whereas clang shows no issue there. I also resolved all of the issues found by the undefined behavior sanitizer in this patch.

I wanted to add a CI run that ran the sanitizers, but it seems it would be too slow using both the sanitizers and in the SDE.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant