Don't fail sanitize on NULL data
This commit is contained in:
parent
d2c2ca8faf
commit
48146e5612
|
@ -290,6 +290,11 @@ struct Sanitizer
|
||||||
|
|
||||||
context->init (blob);
|
context->init (blob);
|
||||||
|
|
||||||
|
if (unlikely (!context->start)) {
|
||||||
|
context->finish ();
|
||||||
|
return blob;
|
||||||
|
}
|
||||||
|
|
||||||
Type *t = CastP<Type> (const_cast<char *> (context->start));
|
Type *t = CastP<Type> (const_cast<char *> (context->start));
|
||||||
|
|
||||||
sane = t->sanitize (context);
|
sane = t->sanitize (context);
|
||||||
|
|
Loading…
Reference in New Issue