Re: [PATCH] libfontenc: setCode(): fix realloc invocation

2013-03-04 Thread Aaron Plattner
On 03/03/2013 08:57 PM, Nickolai Zeldovich wrote: 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

Re: [PATCH] libfontenc: setCode(): fix realloc invocation

2013-03-04 Thread Nickolai Zeldovich
On Mon, Mar 4, 2013 at 11:28 AM, Aaron Plattner aplatt...@nvidia.com wrote: Yikes, that's pretty bad! Reviewed-by: Aaron Plattner aplatt...@nvidia.com Do you need someone to apply this for you? That'd be great -- I have no way to apply/commit patches. Thanks, NIckolai.

Re: [PATCH] libfontenc: setCode(): fix realloc invocation

2013-03-04 Thread Alan Coopersmith
On 03/ 4/13 08:39 AM, Nickolai Zeldovich wrote: On Mon, Mar 4, 2013 at 11:28 AM, Aaron Plattner aplatt...@nvidia.com wrote: Yikes, that's pretty bad! Reviewed-by: Aaron Plattner aplatt...@nvidia.com Do you need someone to apply this for you? That'd be great -- I have no way to

[PATCH] libfontenc: setCode(): fix realloc invocation

2013-03-03 Thread Nickolai Zeldovich
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.