From 59dbb990bc6ce839588c54211c3935ad65d103dc Mon Sep 17 00:00:00 2001 From: marbar3778 Date: Wed, 27 Sep 2023 13:46:18 +0200 Subject: [PATCH] audit for dbadapter --- store/dbadapter/store.go | 1 + 1 file changed, 1 insertion(+) diff --git a/store/dbadapter/store.go b/store/dbadapter/store.go index 175f6ad18f96..013e26df2030 100644 --- a/store/dbadapter/store.go +++ b/store/dbadapter/store.go @@ -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) }