[subset] fix for fuzzer testcase: https://oss-fuzz.com/testcase-detail/5858518134554624
This commit is contained in:
parent
430a67ceab
commit
9dc9f0385d
|
@ -492,9 +492,13 @@ struct Anchor
|
||||||
{
|
{
|
||||||
TRACE_SUBSET (this);
|
TRACE_SUBSET (this);
|
||||||
if (c->plan->drop_hints)
|
if (c->plan->drop_hints)
|
||||||
|
{
|
||||||
// AnchorFormat 2 and 3 just containing extra hinting information, so
|
// AnchorFormat 2 and 3 just containing extra hinting information, so
|
||||||
// if hints are being dropped convert to format 1.
|
// if hints are being dropped convert to format 1.
|
||||||
|
if (u.format != 1 && u.format != 2 && u.format != 3)
|
||||||
|
return_trace (false);
|
||||||
return_trace (bool (reinterpret_cast<Anchor *> (u.format1.copy (c->serializer))));
|
return_trace (bool (reinterpret_cast<Anchor *> (u.format1.copy (c->serializer))));
|
||||||
|
}
|
||||||
|
|
||||||
switch (u.format) {
|
switch (u.format) {
|
||||||
case 1: return_trace (bool (reinterpret_cast<Anchor *> (u.format1.copy (c->serializer))));
|
case 1: return_trace (bool (reinterpret_cast<Anchor *> (u.format1.copy (c->serializer))));
|
||||||
|
|
Binary file not shown.
Loading…
Reference in New Issue