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

Add MemorySanitizer and AddressSanitizer to travis #236

Merged
merged 1 commit into from
Oct 4, 2020
Merged

Conversation

elichai
Copy link
Member

@elichai elichai commented Aug 28, 2020

Run all the tests under MemorySanitizer + AddressSanitizer, combined with rebuilding libstd with them :)
It seems to be fast enough(nightly run with this is ~6:45m overall), so why not do it.

Example of errors it can find:

  1. Not allocating enough memory for the context:
    code change: 9dfb329...0bbe50d
    result: https://travis-ci.org/github/rust-bitcoin/rust-secp256k1/jobs/722098237#L1730

  2. Uninitialized reads (shouldn't be a problem for us):
    code change: 0bbe50d...23382d6
    result: https://travis-ci.org/github/rust-bitcoin/rust-secp256k1/jobs/722098767#L1756

@apoelstra apoelstra merged commit a3c7c0a into master Oct 4, 2020
@elichai elichai deleted the sanitizers branch October 5, 2020 08:54
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.

2 participants