[fuzzing] Add TODO item

This commit is contained in:
Behdad Esfahbod 2016-02-19 15:12:16 +07:00
parent b87e36f6f1
commit 2735555c6b
1 changed files with 1 additions and 0 deletions

View File

@ -45,6 +45,7 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
#include <assert.h>
std::string FileToString(const std::string &Path) {
/* TODO This silently passes if file does not exist. Fix it! */
std::ifstream T(Path.c_str());
return std::string((std::istreambuf_iterator<char>(T)),
std::istreambuf_iterator<char>());