diff options
-rw-r--r-- | Meta/Lagom/Fuzzers/FuzzilliJs.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Meta/Lagom/Fuzzers/FuzzilliJs.cpp b/Meta/Lagom/Fuzzers/FuzzilliJs.cpp index ea8824d6dc..74754fb5c3 100644 --- a/Meta/Lagom/Fuzzers/FuzzilliJs.cpp +++ b/Meta/Lagom/Fuzzers/FuzzilliJs.cpp @@ -206,8 +206,7 @@ int main(int, char**) VERIFY(read(REPRL_CRFD, &script_size, 8) == 8); VERIFY(script_size < REPRL_MAX_DATA_SIZE); ByteBuffer data_buffer; - if (data_buffer.size() < script_size) - data_buffer.resize(script_size - data_buffer.size()); + data_buffer.resize(script_size); VERIFY(data_buffer.size() >= script_size); memcpy(data_buffer.data(), reprl_input, script_size); |