[fuzzer] Fix hb-set-fuzzer minor overflow issue
Size shouldn't be smaller than the struct not its pointer size. Fixes https://crbug.com/oss-fuzz/20655
This commit is contained in:
parent
7b42403c1c
commit
97229244eb
|
@ -0,0 +1 @@
|
|||
|
|
@ -33,7 +33,7 @@ static hb_set_t* create_set (const uint32_t* value_array, int count)
|
|||
|
||||
extern "C" int LLVMFuzzerTestOneInput (const uint8_t *data, size_t size)
|
||||
{
|
||||
if (size < sizeof(instructions_t*))
|
||||
if (size < sizeof (instructions_t))
|
||||
return 0;
|
||||
|
||||
const instructions_t* instructions = reinterpret_cast<const instructions_t*> (data);
|
||||
|
|
Loading…
Reference in New Issue