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

Reduce FuzzSign1 memory consumption #104

Merged
merged 1 commit into from Sep 27, 2022

Conversation

qmuntal
Copy link
Contributor

@qmuntal qmuntal commented Sep 23, 2022

This PR reduces the memory consumption of FuzzSign1 by creating the necessary signers and verifiers before actually executing the fuzz target instead of creating a new set on every execution.

This fuzz test in particular is causing intermitent failures in an internal pipeline we (the Microsoft Go team) run nightly, and the error is always associated to the host killing the fuzzing execution due to an elevated memory consumption.

@thomas-fossati @shizhMSFT @yogeshbdeshpande

Signed-off-by: qmuntal <qmuntaldiaz@microsoft.com>
@codecov
Copy link

codecov bot commented Sep 23, 2022

Codecov Report

Merging #104 (92770b7) into main (66f9d81) will increase coverage by 2.35%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #104      +/-   ##
==========================================
+ Coverage   89.74%   92.10%   +2.35%     
==========================================
  Files          10       10              
  Lines         985      975      -10     
==========================================
+ Hits          884      898      +14     
+ Misses         67       51      -16     
+ Partials       34       26       -8     
Impacted Files Coverage Δ
headers.go 93.05% <100.00%> (-0.24%) ⬇️
signer.go 100.00% <0.00%> (ø)
ed25519.go 100.00% <0.00%> (ø)
verifier.go 100.00% <0.00%> (ø)
sign.go 88.93% <0.00%> (+1.03%) ⬆️
sign1.go 86.86% <0.00%> (+1.75%) ⬆️
algorithm.go 100.00% <0.00%> (+3.44%) ⬆️
ecdsa.go 95.89% <0.00%> (+19.32%) ⬆️
rsa.go 100.00% <0.00%> (+25.00%) ⬆️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

Copy link
Contributor

@thomas-fossati thomas-fossati left a comment

Choose a reason for hiding this comment

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

👍

Copy link
Contributor

@yogeshbdeshpande yogeshbdeshpande left a comment

Choose a reason for hiding this comment

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

LGTM!
(Apologies for the delay)

@qmuntal
Copy link
Contributor Author

qmuntal commented Sep 27, 2022

This is ready to merge, I don't have write access in this repo 😄

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.

None yet

3 participants