Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@qmuntal
Copy link
Member

@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

@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
Member 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.

3 participants