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

Context get op never crashes #423

Merged
merged 2 commits into from
Feb 6, 2018
Merged

Conversation

ebuchman
Copy link
Member

@ebuchman ebuchman commented Feb 6, 2018

No description provided.

odeke-em and others added 2 commits February 6, 2018 14:48
Ensure that requesting version <= 0 doesn't
cause a runtime out of bounds dereference,
with a simple validation and accompanying tests
to ensure we never regress.

Since GetOp allows int64, it is fair game
that it should except out of range inputs,
plus this is an SDK so is bound to be abused
both unintentionally and intentionally.

Fixes #400
@codecov
Copy link

codecov bot commented Feb 6, 2018

Codecov Report

Merging #423 into develop will increase coverage by 3.48%.
The diff coverage is 100%.

@@             Coverage Diff             @@
##           develop     #423      +/-   ##
===========================================
+ Coverage    47.93%   51.42%   +3.48%     
===========================================
  Files           34       34              
  Lines         1548     1548              
===========================================
+ Hits           742      796      +54     
+ Misses         756      702      -54     
  Partials        50       50

@ebuchman ebuchman merged commit ed592cd into develop Feb 6, 2018
@ebuchman ebuchman deleted the context-GetOp-never-crashes branch February 6, 2018 19:51
@odeke-em
Copy link
Collaborator

odeke-em commented Feb 6, 2018

@ebuchman thank you for taking over and for the merge!

ParthDesai pushed a commit to ChorusOne/cosmos-sdk that referenced this pull request Apr 19, 2021
nextSequenceAck belongs to a source-side end of a channel.
NoahSaso pushed a commit to NoahSaso/cosmos-sdk that referenced this pull request Jun 15, 2023
(cherry picked from commit 02e3a0e)

Co-authored-by: Nguyen Thanh Nhan <thanhnhan98qh@gmail.com>
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