mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-04-18 08:30:37 +02:00
64. Patch RenderAddGlyphs to handle multiple glyphs and avoid memory error.
Bugzilla #349. (Stephen McCamant, applied by Keith Packard)
This commit is contained in:
parent
19dccd6930
commit
64f5c2feae
1 changed files with 4 additions and 2 deletions
|
|
@ -1,4 +1,4 @@
|
|||
/* $XdotOrg: xc/programs/Xserver/render/render.c,v 1.1.4.3 2004/02/25 21:47:08 kaleb Exp $ */
|
||||
/* $XdotOrg: xc/programs/Xserver/render/render.c,v 1.1.4.3.2.2 2004/03/04 17:48:45 eich Exp $ */
|
||||
/*
|
||||
* $XFree86: xc/programs/Xserver/render/render.c,v 1.27tsi Exp $
|
||||
*
|
||||
|
|
@ -1123,8 +1123,10 @@ ProcRenderAddGlyphs (ClientPtr client)
|
|||
goto bail;
|
||||
}
|
||||
glyphs = glyphsBase;
|
||||
while (nglyphs--)
|
||||
while (nglyphs--) {
|
||||
AddGlyph (glyphSet, glyphs->glyph, glyphs->id);
|
||||
glyphs++;
|
||||
}
|
||||
|
||||
if (glyphsBase != glyphsLocal)
|
||||
DEALLOCATE_LOCAL (glyphsBase);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue