libfontenc: Changes to 'master'
Alan Coopersmith
alanc at kemper.freedesktop.org
Mon Mar 4 08:49:08 PST 2013
src/encparse.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 624508365ec3279bc74ce523d024533e062629e1
Author: Nickolai Zeldovich <nickolai at csail.mit.edu>
Date: Sun Mar 3 23:57:34 2013 -0500
libfontenc: setCode(): fix realloc invocation
This patch fixes two bugs in the realloc invocation in setCode(), which
most likely cause memory corruption when realloc is triggered:
1. Pass *enc to realloc (which is the dynamically-allocated buffer),
instead of enc (which stores a pointer to the dynamically-allocated
buffer).
2. Allocate enough memory for (*encsize) shorts, instead of (*encsize)
bytes; see the call to malloc just above the realloc call.
Signed-off-by: Nickolai Zeldovich <nickolai at csail.mit.edu>
Reviewed-by: Aaron Plattner <aplattner at nvidia.com>
Reviewed-by: Alan Coopersmith <alan.coopersmith at oracle.com>
Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
More information about the xorg-commit
mailing list