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

MSVC sanitizer build #2151

Merged
merged 4 commits into from
Dec 8, 2023
Merged

MSVC sanitizer build #2151

merged 4 commits into from
Dec 8, 2023

Conversation

maxirmx
Copy link
Member

@maxirmx maxirmx commented Nov 17, 2023

No description provided.

Copy link

codecov bot commented Nov 17, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (d934fa9) 76.98% compared to head (b21b5ea) 76.97%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2151      +/-   ##
==========================================
- Coverage   76.98%   76.97%   -0.02%     
==========================================
  Files         194      194              
  Lines       37074    37074              
==========================================
- Hits        28542    28536       -6     
- Misses       8532     8538       +6     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@maxirmx maxirmx force-pushed the maxirmx-2147-windows-ci-2 branch 5 times, most recently from 1692ea2 to 5b08cd7 Compare November 18, 2023 10:23
@maxirmx maxirmx linked an issue Nov 18, 2023 that may be closed by this pull request
@maxirmx
Copy link
Member Author

maxirmx commented Nov 18, 2023

Created Windows runner with ASAN enbled; fixed memory corruption as described in #2152 and some annoying warning.
I was not able to run cli_test in native environment -- #2149, #2150

@maxirmx maxirmx marked this pull request as ready for review November 18, 2023 10:30
@maxirmx maxirmx requested a review from ni4 November 18, 2023 10:30
@maxirmx maxirmx linked an issue Nov 18, 2023 that may be closed by this pull request
@maxirmx
Copy link
Member Author

maxirmx commented Nov 18, 2023

Regarding previously added FALLTHROUGH_STATEMENT (f7ff817)

It was defined as

# define FALLTHROUGH_STATEMENT [[fallthrough]];

and applied as

FALLTHROUGH_STATEMENT;

That was not correct. The standart calls for single null statement, for two some compilers generate a hundred of warnings.

@ni4
Copy link
Contributor

ni4 commented Nov 21, 2023

@maxirmx Thanks, will check it out. Probably we should wait till the windows-native issue is resolved, I was able to reproduce it with pure botan calls.

@ni4
Copy link
Contributor

ni4 commented Nov 24, 2023

@maxirmx it got resolved (but not released yet) and it isn't our issue: randombit/botan#3812
Actually it was a great luck to catch it!

@ni4
Copy link
Contributor

ni4 commented Dec 6, 2023

@maxirmx Could you please rebase on main, as PR #2148 is merged? Or I can do that as well.

@maxirmx maxirmx force-pushed the maxirmx-2147-windows-ci-2 branch 4 times, most recently from 3e78b49 to cfaf373 Compare December 6, 2023 22:30
@maxirmx
Copy link
Member Author

maxirmx commented Dec 6, 2023

@maxirmx Could you please rebase on main, as PR #2148 is merged? Or I can do that as well.

@ni4 I have rebased it

Copy link
Contributor

@ni4 ni4 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@ni4
Copy link
Contributor

ni4 commented Dec 7, 2023

Just in case: coverage fails since one of the previous tests hit some ElGamal 'rarely-hit' code path, and now it didn't.

@ronaldtse
Copy link
Contributor

Thank you @maxirmx @ni4 !

@ronaldtse ronaldtse merged commit 800dd77 into main Dec 8, 2023
113 of 114 checks passed
@maxirmx maxirmx deleted the maxirmx-2147-windows-ci-2 branch June 17, 2024 07:13
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.

CI: Add windows runner with enabled address sanitizer. Add some define to shortcut [[faltghrough]] ifdef.
3 participants