byzhang / leveldb

Automatically exported from code.google.com/p/leveldb
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

"leveldbutil dump" on manifest produces truncated output if keys contain NUL #156

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a database with keys that contain embedded NUL bytes
2. Run "leveldbutil dump" on its manifest

What is the expected output? What do you see instead?

If one of the largest or smallest keys for an sstable contains an embedded NUL 
byte, the output for that VersionEdit will be truncated at that point.  NULs 
(and other special characters) should be escaped.  

What version of the product are you using? On what operating system?

LevelDB 1.9 on OS X 10.8.

Please provide any additional information below.

leveldbutil also needs to be added to .gitignore, and perhaps to the "make all" 
target.

Original issue reported on code.google.com by ben.darn...@gmail.com on 29 Mar 2013 at 5:48

GoogleCodeExporter commented 9 years ago

Original comment by dgrogan@chromium.org on 15 May 2013 at 12:11