Skip to content

Reduce FuzzSign1 memory consumption#104

Merged
thomas-fossati merged 1 commit intoveraison:mainfrom
qmuntal:improve-fuzz
Sep 27, 2022
Merged

Reduce FuzzSign1 memory consumption#104
thomas-fossati merged 1 commit intoveraison:mainfrom
qmuntal:improve-fuzz

Conversation

@qmuntal
Copy link
Copy Markdown
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

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

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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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