mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
Merge pull request #13681 from AdamKorcz/fuzz5
server/storage/mvcc: fix oss-fuzz issue 44449
This commit is contained in:
commit
bdb13e2e12
@ -257,8 +257,14 @@ func (ti *treeIndex) Equal(bi index) bool {
|
||||
equal := true
|
||||
|
||||
ti.tree.Ascend(func(item btree.Item) bool {
|
||||
aki := item.(*keyIndex)
|
||||
bki := b.tree.Get(item).(*keyIndex)
|
||||
var aki, bki *keyIndex
|
||||
var ok bool
|
||||
if aki, ok = item.(*keyIndex); !ok {
|
||||
return false
|
||||
}
|
||||
if bki, ok = b.tree.Get(item).(*keyIndex); !ok {
|
||||
return false
|
||||
}
|
||||
if !aki.equal(bki) {
|
||||
equal = false
|
||||
return false
|
||||
|
Loading…
x
Reference in New Issue
Block a user