core/state, ethdb, trie: test intermediate secure key leak, fix memdb bug

This commit is contained in:
Péter Szilágyi
2016-01-20 16:06:28 +02:00
parent 886478b18b
commit f3d4ce0d16
3 changed files with 73 additions and 3 deletions

View File

@ -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
}