Skip to content

Commit

Permalink
chore(store): check value (backport #17900) (#17907)
Browse files Browse the repository at this point in the history
Co-authored-by: Marko <[email protected]>
  • Loading branch information
mergify[bot] and tac0turtle authored Sep 27, 2023
1 parent f4796c9 commit 13bd226
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions store/dbadapter/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ func (dsa Store) Has(key []byte) bool {
// Set wraps the underlying DB's Set method panicing on error.
func (dsa Store) Set(key, value []byte) {
types.AssertValidKey(key)
types.AssertValidValue(value)
if err := dsa.DB.Set(key, value); err != nil {
panic(err)
}
Expand Down

0 comments on commit 13bd226

Please sign in to comment.