diff options
author | Péter Szilágyi <peterke@gmail.com> | 2016-01-20 22:06:28 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2016-01-20 22:06:28 +0800 |
commit | f3d4ce0d164f7b17a143304e2b94421573d596a4 (patch) | |
tree | 9c4dab5e403b3c71cc1a95c59b23cf8bba1bc0ba /ethdb | |
parent | 886478b18b73bbe8421531f1a71664a2bc0f5eeb (diff) | |
download | dexon-f3d4ce0d164f7b17a143304e2b94421573d596a4.tar.gz dexon-f3d4ce0d164f7b17a143304e2b94421573d596a4.tar.zst dexon-f3d4ce0d164f7b17a143304e2b94421573d596a4.zip |
core/state, ethdb, trie: test intermediate secure key leak, fix memdb bug
Diffstat (limited to 'ethdb')
-rw-r--r-- | ethdb/memory_database.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ethdb/memory_database.go b/ethdb/memory_database.go index 45423ed73..a729f5233 100644 --- a/ethdb/memory_database.go +++ b/ethdb/memory_database.go @@ -107,7 +107,7 @@ func (b *memBatch) Put(key, value []byte) error { b.lock.Lock() defer b.lock.Unlock() - b.writes = append(b.writes, kv{key, common.CopyBytes(value)}) + b.writes = append(b.writes, kv{common.CopyBytes(key), common.CopyBytes(value)}) return nil } |