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

[Merged by Bors] - Revert part of #5339 #5340

Closed
wants to merge 1 commit into from
Closed

Conversation

fasmat
Copy link
Member

@fasmat fasmat commented Dec 11, 2023

Motivation

Reverts part of #5339

Changes

PutUvarint from standard library and github.com/multiformats/go-varint do not behave exactly the same. With Go 1.20 to the stdlib implementation was fixed to detect short reads, but in contrast to github.com/multiformats/go-varint it will still not return an error when decoding non-minimal encodings of integers.

Test Plan

n/a

TODO

  • Explain motivation or link existing issue(s)
  • Test changes and document test plan
  • Update documentation as needed
  • Update changelog as needed

@fasmat fasmat requested a review from pigmej December 11, 2023 13:57
@fasmat fasmat self-assigned this Dec 11, 2023
@fasmat
Copy link
Member Author

fasmat commented Dec 11, 2023

bors merge

spacemesh-bors bot pushed a commit that referenced this pull request Dec 11, 2023
## Motivation
Reverts part of #5339

## Changes
`PutUvarint` from standard library and `github.com/multiformats/go-varint` do not behave exactly the same. With Go 1.20 to the stdlib implementation was fixed to detect short reads, but in contrast to `github.com/multiformats/go-varint` it will still not return an error when decoding non-minimal encodings of integers.

## Test Plan
n/a

## TODO
<!-- This section should be removed when all items are complete -->
- [x] Explain motivation or link existing issue(s)
- [x] Test changes and document test plan
- [x] Update documentation as needed
- [x] Update [changelog](../CHANGELOG.md) as needed
Copy link

codecov bot commented Dec 11, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (2ab4a96) 77.5% compared to head (f4ecafa) 77.5%.

Additional details and impacted files
@@            Coverage Diff            @@
##           develop   #5340     +/-   ##
=========================================
- Coverage     77.5%   77.5%   -0.1%     
=========================================
  Files          252     252             
  Lines        29651   29651             
=========================================
- Hits         22987   22985      -2     
- Misses        5207    5208      +1     
- Partials      1457    1458      +1     

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

@spacemesh-bors
Copy link

Pull request successfully merged into develop.

Build succeeded:

@spacemesh-bors spacemesh-bors bot changed the title Revert part of #5339 [Merged by Bors] - Revert part of #5339 Dec 11, 2023
@spacemesh-bors spacemesh-bors bot closed this Dec 11, 2023
@spacemesh-bors spacemesh-bors bot deleted the partial-revert-5339 branch December 11, 2023 14:58
fasmat added a commit that referenced this pull request Dec 11, 2023
Reverts part of #5339

`PutUvarint` from standard library and `github.com/multiformats/go-varint` do not behave exactly the same. With Go 1.20 to the stdlib implementation was fixed to detect short reads, but in contrast to `github.com/multiformats/go-varint` it will still not return an error when decoding non-minimal encodings of integers.

n/a

<!-- This section should be removed when all items are complete -->
- [x] Explain motivation or link existing issue(s)
- [x] Test changes and document test plan
- [x] Update documentation as needed
- [x] Update [changelog](../CHANGELOG.md) as needed
lrettig pushed a commit that referenced this pull request Dec 14, 2023
## Motivation
Reverts part of #5339

## Changes
`PutUvarint` from standard library and `github.com/multiformats/go-varint` do not behave exactly the same. With Go 1.20 to the stdlib implementation was fixed to detect short reads, but in contrast to `github.com/multiformats/go-varint` it will still not return an error when decoding non-minimal encodings of integers.

## Test Plan
n/a

## TODO
<!-- This section should be removed when all items are complete -->
- [x] Explain motivation or link existing issue(s)
- [x] Test changes and document test plan
- [x] Update documentation as needed
- [x] Update [changelog](../CHANGELOG.md) as needed
dsmello pushed a commit that referenced this pull request Dec 28, 2023
## Motivation
Reverts part of #5339

## Changes
`PutUvarint` from standard library and `github.com/multiformats/go-varint` do not behave exactly the same. With Go 1.20 to the stdlib implementation was fixed to detect short reads, but in contrast to `github.com/multiformats/go-varint` it will still not return an error when decoding non-minimal encodings of integers.

## Test Plan
n/a

## TODO
<!-- This section should be removed when all items are complete -->
- [x] Explain motivation or link existing issue(s)
- [x] Test changes and document test plan
- [x] Update documentation as needed
- [x] Update [changelog](../CHANGELOG.md) as needed
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.

2 participants