exa: don't call composite routines with no buffer.
We can get a case with gnome-terminal + links, where we get two arrays of glyphs all with 0 width and 0 heights in them. If this happens we manage to get to this case without any buffer setup and segfault.
This commit is contained in:
parent
aacac3edac
commit
717c7492a0
|
@ -871,11 +871,13 @@ exaGlyphs (CARD8 op,
|
||||||
list++;
|
list++;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (maskFormat)
|
if (buffer.count) {
|
||||||
exaGlyphsToMask(pMask, &buffer);
|
if (maskFormat)
|
||||||
else
|
exaGlyphsToMask(pMask, &buffer);
|
||||||
exaGlyphsToDst(op, pSrc, pDst, &buffer,
|
else
|
||||||
xSrc, ySrc, xDst, yDst);
|
exaGlyphsToDst(op, pSrc, pDst, &buffer,
|
||||||
|
xSrc, ySrc, xDst, yDst);
|
||||||
|
}
|
||||||
|
|
||||||
if (maskFormat)
|
if (maskFormat)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue