Skip to content
Permalink
Browse files

Fix another memory access issue discovered by libFuzzer

  • Loading branch information...
behdad committed Oct 13, 2015
1 parent c1a5dc4 commit f96664974774bfeb237a7274f512f64aaafb201e
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/hb-ot-layout-gpos-table.hh
@@ -704,6 +704,8 @@ struct PairPosFormat1
{
TRACE_SANITIZE (this);

if (!c->check_struct (this)) return_trace (false);

unsigned int len1 = valueFormat1.get_len ();
unsigned int len2 = valueFormat2.get_len ();
PairSet::sanitize_closure_t closure = {
@@ -713,7 +715,7 @@ struct PairPosFormat1
1 + len1 + len2
};

return_trace (c->check_struct (this) && coverage.sanitize (c, this) && pairSet.sanitize (c, this, &closure));
return_trace (coverage.sanitize (c, this) && pairSet.sanitize (c, this, &closure));
}

protected:

0 comments on commit f966649

Please sign in to comment.
You can’t perform that action at this time.