If pcfReadTOC() or pcfGetProperties() fail in the beginning of execution of pcfReadFont(), function tries to free an uninitialized pointer (isStringProp) when bailing out.
The pointer gets now initialized correctly. Signed-off-by: Olli Vertanen <[email protected]> --- src/bitmap/pcfread.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/src/bitmap/pcfread.c b/src/bitmap/pcfread.c index 182144a..de4e93d 100644 --- a/src/bitmap/pcfread.c +++ b/src/bitmap/pcfread.c @@ -408,6 +408,8 @@ pcfReadFont(FontPtr pFont, FontFilePtr file, pFont->info.nprops = 0; pFont->info.props = 0; + pFont->info.isStringProp=0; + if (!(tables = pcfReadTOC(file, &ntables))) goto Bail; -- 1.7.1 _______________________________________________ [email protected]: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: http://lists.x.org/mailman/listinfo/xorg-devel
