[PATCH] XListFontsWithInfo: avoid accessing realloc'ed memory

Alan Coopersmith alan.coopersmith at oracle.com
Fri Feb 15 22:37:50 PST 2013


On 01/22/13 07:03 AM, Nickolai Zeldovich wrote:
> 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 at csail.mit.edu>

Looks good to me.

Reviewed-by: Alan Coopersmith <alan.coopersmith at oracle.com>

and pushed to git master since no one else objected in the past few weeks:

To ssh://git.freedesktop.org/git/xorg/lib/libX11
   f57fd76..deedead  master -> master

Thanks!

-- 
	-Alan Coopersmith-              alan.coopersmith at oracle.com
	 Oracle Solaris Engineering - http://blogs.oracle.com/alanc


More information about the xorg-devel mailing list