[subset] fix for fuzzer testcase: https://oss-fuzz.com/testcase-detail/6382598554255360
avoid writing to null pointer
This commit is contained in:
parent
4af5dacedc
commit
553ffaf682
|
@ -347,6 +347,7 @@ struct AnchorFormat1
|
||||||
{
|
{
|
||||||
TRACE_SERIALIZE (this);
|
TRACE_SERIALIZE (this);
|
||||||
AnchorFormat1* out = c->embed<AnchorFormat1> (this);
|
AnchorFormat1* out = c->embed<AnchorFormat1> (this);
|
||||||
|
if (!out) return_trace (out);
|
||||||
out->format = 1;
|
out->format = 1;
|
||||||
return_trace (out);
|
return_trace (out);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue