libXfont: Changes to 'master'
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Thu Mar 25 19:55:58 UTC 2021
src/fc/fserve.c | 40 +++++++++++++++++++---------------------
1 file changed, 19 insertions(+), 21 deletions(-)
New commits:
commit 9529d2351fe52ffaaf9342343865073d5c5b6802
Author: Peter Harris <pharris at opentext.com>
Date: Tue Mar 2 14:39:45 2021 -0500
Fix use after free when font server connection lost
If there are multiple blocks waiting for the same font, only one of them
will have ->freeFont set. The rest will be in a state of FS_DEPENDING.
If the font server dies before the font finishes opening, the block with
->freeFont set will call ->unload_font, invalidating the pfont pointers
in the remaining FS_DEPENDING blocks.
Avoid a use after free (and potential crash) by passing conn to
fs_cleanup_font instead of dereferencing pfont to find the conn.
Signed-off-by: Peter Harris <pharris at opentext.com>
More information about the xorg-commit
mailing list