Skip to content

Commit

Permalink
Merge PR cosmos#3745: Return on zero-length byte array input
Browse files Browse the repository at this point in the history
  • Loading branch information
cwgoes authored Feb 26, 2019
1 parent 6ace1fa commit b86afd8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions PENDING.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ CLI flag.

### SDK

* \#3727 Return on zero-length (including []byte{}) PrefixEndBytes() calls
* \#3559 fix occasional failing due to non-determinism in lcd test TestBonding
where validator is unexpectedly slashed throwing off test calculations
* [\#3411] Include the `RequestInitChain.Time` in the block header init during
Expand Down
2 changes: 1 addition & 1 deletion store/types/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ func DiffKVStores(a KVStore, b KVStore, prefixesToSkip [][]byte) (kvA cmn.KVPair
// range query for all []byte with a certain prefix
// Deals with last byte of prefix being FF without overflowing
func PrefixEndBytes(prefix []byte) []byte {
if prefix == nil {
if len(prefix) == 0 {
return nil
}

Expand Down

0 comments on commit b86afd8

Please sign in to comment.