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 key size checks 2.x #971

Merged
merged 2 commits into from
May 21, 2020
Merged

Add key size checks 2.x #971

merged 2 commits into from
May 21, 2020

Conversation

roman-khimov
Copy link
Member

Problem

#968.

Solution

Fix it.

Only one type of keys is allowed here.
DecodeBinary works with streams, so it can't do that, but DecodeBytes can and
should. Also fix unmarshalled binary buffer that this check exposed.
@roman-khimov roman-khimov requested a review from fyrchik May 21, 2020 11:31
@codecov
Copy link

codecov bot commented May 21, 2020

Codecov Report

Merging #971 into master-2.x will decrease coverage by 0.01%.
The diff coverage is 75.00%.

Impacted file tree graph

@@              Coverage Diff               @@
##           master-2.x     #971      +/-   ##
==============================================
- Coverage       68.00%   67.99%   -0.02%     
==============================================
  Files             145      145              
  Lines           14305    14312       +7     
==============================================
+ Hits             9728     9731       +3     
- Misses           4117     4121       +4     
  Partials          460      460              
Impacted Files Coverage Δ
pkg/core/interop_system.go 36.57% <0.00%> (-0.22%) ⬇️
pkg/crypto/keys/publickey.go 84.39% <100.00%> (+0.46%) ⬆️
pkg/rpc/client/wsclient.go 84.35% <0.00%> (-1.37%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d0853c0...60bca03. Read the comment docs.

@roman-khimov roman-khimov merged commit 61c5959 into master-2.x May 21, 2020
@roman-khimov roman-khimov deleted the add-key-size-checks-2.x branch May 21, 2020 12:38
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

2 participants