Commit Graph

4 Commits

Author SHA1 Message Date
Victor Costan 6af0e55ecd
leveldb: Fuzzer improvements. (#4837)
* Stop when opening a database fails. This will avoid null pointer
  dereferences.

* Use C++11 smart pointers for leveldb::DB and leveldb::Iterator. This
  makes it easier to ensure the fuzzer doesn't leak memory. No leak was
  detected while applying this fix.

* Use the FuzzedDataProvider API exclusively for consuming data. This
  makes it easier to ensure maximum fuzzer coverage.

* Avoid building unnecessary code (tests, benchmarks). This slightly
  reduces oss-fuzz resource usage.

* Use an enum class and FuzzedDataProvider::ConsumeEnum() instead of
  reimplementing it. This makes it easier to extend the fuzzer with new
  operations in the future.

* Use meaningful names (key, value, name) instead of tmp* for local
  variables storing leveldb API inputs.
2020-12-14 14:46:37 +11:00
Abhishek Arya 1d5a2cd84e
Fill in main_repo for several projects. (#4816)
* Fill in main_repo for several projects.

* Add some go repos.
2020-12-09 21:52:40 -08:00
DavidKorczynski efd77dbe90
leveldb: fix memory leak in fuzzer. (#4712)
* leveldb: fix memory leak in fuzzer.

* leveldb: remove old code.
2020-11-25 07:41:34 -08:00
DavidKorczynski 07454dc5d9
[leveldb] initial integration (#4636)
* initial integration of leveldb

* leveldb: fix build.

* leveldb: Added a remaining on API call.

* leveldb: update project to fit review.
2020-11-18 15:21:23 -08:00