[PATCH] xkb: fix invalid memory writes in _XkbCopyGeom.
alan.coopersmith at oracle.com
Fri Jun 4 00:15:20 PDT 2010
Peter Hutterer wrote:
> Classic strlen/strcpy mistake of
> foo = malloc(strlen(bar));
> strcpy(foo, bar);
That's what strdup is for, but I guess that doesn't help in the
realloc case, unless you just make that be free + strdup.
-Alan Coopersmith- alan.coopersmith at oracle.com
Oracle Solaris Platform Engineering: X Window System
More information about the xorg-devel