* src/bdf/bdflib.c (bdf_parse_glyphs_): Avoid possible leak.

This commit is contained in:
Alexei Podtelezhnikov 2025-01-12 00:24:42 -05:00
parent bbc445e165
commit aab40d5cc4
1 changed files with 4 additions and 0 deletions

View File

@ -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 )
{