[PATCH:libX11 08/12] Avoid memory leak/corruption if realloc fails in imLcPrs.c:parseline()

Alan Coopersmith alan.coopersmith at oracle.com
Sun Aug 11 20:22:23 PDT 2013


On 08/11/13 08:10 PM, Alan Coopersmith wrote:
> In patch 6, since it's a static variable it's easier to track down and
> see the callers currently don't check for error, but it looks like they
> won't actually dereference the pointer unless the count is greater than
> zero, so I'll rework that one now.

Actually, I take it back - since this list has pointers to all the opened
input objects, it doesn't look like it's feasible to tear it down without
a lot more understanding of the i18n module code than I have, so I'm going
to leave it in place, and non-corrupted for now, even if it doesn't have
all the entries it should have added in this call.

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


More information about the xorg-devel mailing list