Don't fail sanitize on NULL data

This commit is contained in:
Behdad Esfahbod 2010-05-10 20:07:56 -04:00
parent d2c2ca8faf
commit 48146e5612
1 changed files with 5 additions and 0 deletions

View File

@ -290,6 +290,11 @@ struct Sanitizer
context->init (blob);
if (unlikely (!context->start)) {
context->finish ();
return blob;
}
Type *t = CastP<Type> (const_cast<char *> (context->start));
sane = t->sanitize (context);