On Tue, Nov 15, 2011 at 11:09:08PM +0000, Nicholas Marriott wrote:
> Hi
> 
> libedit miscalculates the amount of space needed for constructing it's
> wchar_t version of argv, causing it to overrun the buffer.
> 
> I don't see how the output of mbstowcs can be longer than
> (sum(strlen(argv)) * sizeof (wchar_t)) so this fix should work:
> 
> ok?

This seems to fix an intermittent problem I have been having with
libedit crashing during various initialisation dances.

I approve.
-- 
The wages of sin are high but you get your money's worth.

Reply via email to