XListFontsWithInfo: avoid accessing realloc'ed memory
If exactly one of the two reallocs in XListFontsWithInfo() fails, the
subsequent code accesses memory freed by the other realloc.
Signed-off-by:
Nickolai Zeldovich <nickolai@csail.mit.edu>
Reviewed-by:
Alan Coopersmith <alan.coopersmith@oracle.com>
Signed-off-by:
Alan Coopersmith <alan.coopersmith@oracle.com>
(cherry picked from commit deedeada53676ee529d700bf96fde0b29a3a1def)
Signed-off-by:
Julien Cristau <jcristau@debian.org>
Backported-to-NX-by:
Ulrich Sibiller <uli42@gmx.de>
Showing
Please
register
or
sign in
to comment