summaryrefslogtreecommitdiff
path: root/xft.pc.in
diff options
context:
space:
mode:
authorAdam Sampson <ats@offog.org>2022-09-07 00:31:10 +0100
committerAdam Sampson <ats@offog.org>2022-09-07 00:41:06 +0100
commit95284856783b824a714b7506762f4adce3bb17ce (patch)
tree68b79bc20dcc1613a98eb3700244df39190a5dcd /xft.pc.in
parentc6309d4c8fcb5f4879cc25cf81b649f5eb665413 (diff)
downloadxorg-lib-libXft-95284856783b824a714b7506762f4adce3bb17ce.tar.gz
Fix length check in XftTextExtents*.
Commit 06a3c0ab6520e368ac936cb1ef172f19957db0fa added length checks of the form "if (len <= 0) return;" to various Xft functions. However, while rendering an empty string is equivalent to doing nothing, asking for the extents of an empty string isn't -- it still needs to fill in the extents structure. This broke text rendering in some applications (e.g. xpdf's Motif GUI). Check for len < 0 in XftTextExtents* instead.
Diffstat (limited to 'xft.pc.in')
0 files changed, 0 insertions, 0 deletions