rocksdb/table
Kosie van der Merwe 4e9d9d989f Fixed wrong assumption in Table::Open()
Summary:
`Table::Open()` assumes that `size` correctly describes the size of `file`, added a check that the footer is actually the right size and for good measure added assertions to `Footer::DecodeFrom()`.

This was discovered by running `valgrind ./db_test` and seeing that `Footer::DecodeFrom()` was accessing uninitialized memory.

Test Plan:
make clean check

ran `valgrind ./db_test` and saw DBTest.NoSpace no longer complains about a conditional jump being dependent on uninitialized memory.

Reviewers: dhruba, vamsi, emayanke, sheki

Reviewed By: dhruba

CC: leveldb

Differential Revision: https://reviews.facebook.net/D7815
2013-01-09 10:44:30 -08:00
..
block_builder.cc A number of fixes: 2011-10-31 17:22:06 +00:00
block_builder.h A number of fixes: 2011-10-31 17:22:06 +00:00
block_test.cc Unit test to test block format. 2012-12-20 14:55:07 -08:00
block.cc Added bloom filter support. 2012-04-17 08:36:46 -07:00
block.h Added bloom filter support. 2012-04-17 08:36:46 -07:00
filter_block_test.cc Fix all warnings generated by -Wall option to the compiler. 2012-11-06 14:07:31 -08:00
filter_block.cc Added bloom filter support. 2012-04-17 08:36:46 -07:00
filter_block.h Added bloom filter support. 2012-04-17 08:36:46 -07:00
format.cc Fixed wrong assumption in Table::Open() 2013-01-09 10:44:30 -08:00
format.h Added bloom filter support. 2012-04-17 08:36:46 -07:00
iter_heap.h Use a priority queue to merge files. 2013-01-02 13:52:25 -08:00
iterator_wrapper.h sync with upstream @21627589 2011-06-02 00:00:37 +00:00
iterator.cc A number of fixes: 2011-10-31 17:22:06 +00:00
merger.cc Remove unnecessary asserts in table/merger.cc 2013-01-09 09:52:45 -08:00
merger.h A number of fixes: 2011-10-31 17:22:06 +00:00
table_builder.cc Make compression options configurable. These include window-bits, level and strategy for ZlibCompression 2012-11-02 11:26:39 -07:00
table_test.cc Fix all warnings generated by -Wall option to the compiler. 2012-11-06 14:07:31 -08:00
table.cc Fixed wrong assumption in Table::Open() 2013-01-09 10:44:30 -08:00
two_level_iterator.cc A number of fixes: 2011-10-31 17:22:06 +00:00
two_level_iterator.h A number of fixes: 2011-10-31 17:22:06 +00:00