aboutsummaryrefslogtreecommitdiff
path: root/node.go
diff options
context:
space:
mode:
authorBen Johnson <benbjohnson@yahoo.com>2014-04-29 06:54:01 -0600
committerBen Johnson <benbjohnson@yahoo.com>2014-04-29 06:54:01 -0600
commite3ed19364616379fdf60432a025b0914cd193a73 (patch)
tree308b9c2628968b67c81711c85e9aa7a11c82e6eb /node.go
parentMerge pull request #142 from extemporalgenome/Printf-byteslice (diff)
downloaddedo-e3ed19364616379fdf60432a025b0914cd193a73.tar.gz
dedo-e3ed19364616379fdf60432a025b0914cd193a73.tar.xz
Copy key on Put() and CreateBucket().
This commit makes a copy of the key byte slice before inserting into the database. This fixes the issue where users may reuse byte buffers which can corrupt the database. Fixes #143.
Diffstat (limited to 'node.go')
0 files changed, 0 insertions, 0 deletions