mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 14:07:46 +00:00
Meta: Correct misuse of ByteBuffer::resize() as grow() in FuzziliJS
This commit is contained in:
parent
97e97bccab
commit
d20fc922c5
1 changed files with 1 additions and 2 deletions
|
@ -206,8 +206,7 @@ int main(int, char**)
|
||||||
VERIFY(read(REPRL_CRFD, &script_size, 8) == 8);
|
VERIFY(read(REPRL_CRFD, &script_size, 8) == 8);
|
||||||
VERIFY(script_size < REPRL_MAX_DATA_SIZE);
|
VERIFY(script_size < REPRL_MAX_DATA_SIZE);
|
||||||
ByteBuffer data_buffer;
|
ByteBuffer data_buffer;
|
||||||
if (data_buffer.size() < script_size)
|
data_buffer.resize(script_size);
|
||||||
data_buffer.resize(script_size - data_buffer.size());
|
|
||||||
VERIFY(data_buffer.size() >= script_size);
|
VERIFY(data_buffer.size() >= script_size);
|
||||||
memcpy(data_buffer.data(), reprl_input, script_size);
|
memcpy(data_buffer.data(), reprl_input, script_size);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue