summaryrefslogtreecommitdiffstats
path: root/courgette/encoded_program_fuzz_unittest.cc
diff options
context:
space:
mode:
Diffstat (limited to 'courgette/encoded_program_fuzz_unittest.cc')
-rw-r--r--courgette/encoded_program_fuzz_unittest.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/courgette/encoded_program_fuzz_unittest.cc b/courgette/encoded_program_fuzz_unittest.cc
index fbf8df7..9801fc8 100644
--- a/courgette/encoded_program_fuzz_unittest.cc
+++ b/courgette/encoded_program_fuzz_unittest.cc
@@ -36,7 +36,7 @@ void DecodeFuzzTest::FuzzExe(const char* file_name) const {
std::string file1 = FileContents(file_name);
const void* original_buffer = file1.c_str();
- size_t original_length = file1.size();
+ size_t original_length = file1.length();
courgette::AssemblyProgram* program = NULL;
const courgette::Status parse_status =
@@ -199,6 +199,7 @@ bool DecodeFuzzTest::TryAssemble(const std::string& buffer,
TEST_F(DecodeFuzzTest, All) {
FuzzExe("setup1.exe");
+ FuzzExe("elf-32-1.exe");
}
int main(int argc, char** argv) {