mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-05-31 16:24:48 +02:00
Changing &vec[0] to vec.data(), what 9804 missed
This commit is contained in:
@@ -67,7 +67,7 @@ int do_fuzz()
|
||||
if (buffer.size() < sizeof(uint32_t)) return 0;
|
||||
|
||||
uint32_t test_id = 0xffffffff;
|
||||
memcpy(&test_id, &buffer[0], sizeof(uint32_t));
|
||||
memcpy(&test_id, buffer.data(), sizeof(uint32_t));
|
||||
buffer.erase(buffer.begin(), buffer.begin() + sizeof(uint32_t));
|
||||
|
||||
if (test_id >= TEST_ID_END) return 0;
|
||||
|
||||
Reference in New Issue
Block a user