diff --git a/src/bdf/bdflib.c b/src/bdf/bdflib.c index d145080c1..00de85473 100644 --- a/src/bdf/bdflib.c +++ b/src/bdf/bdflib.c @@ -1636,6 +1636,10 @@ goto Exit; } + /* Do not leak the bitmap or reset its size */ + if ( p->flags & BDF_BITMAP_ ) + goto Exit; + /* Expect the BBX field next. */ if ( _bdf_strncmp( line, "BBX", 3 ) == 0 ) {