Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: PATCH: fix line-length calculation in zle_refresh.c:singlerefresh()



On Mon, 02 Aug 2010 12:49:01 +0900
Daiki Ueno <ueno@xxxxxxxxxxxx> wrote:
> If multibyte support is enabled and TERM is dumb, typing double-width
> characters causes segmentation fault:
> 
> ueno@localhost % LANG=en_US.utf8 TERM=dumb zsh -f
> localhost% <-- type ã with some input method
> *** glibc detected *** zsh: free(): invalid next size (fast):
> 0x00000000018dd500 *** zsh: abort (core dumped)  LANG=en_US.utf8
> TERM=dumb zsh -f
> 
> This is because zle_refresh.c:singlerefresh() does not calculate the
> size of new line buffer correctly.  Here is a patch for this.

Thanks, I've applied this.

-- 
Peter Stephenson <pws@xxxxxxx>            Software Engineer
Tel: +44 (0)1223 692070                   Cambridge Silicon Radio Limited
Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, UK


Member of the CSR plc group of companies. CSR plc registered in England and Wales, registered number 4187346, registered office Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, United Kingdom



Messages sorted by: Reverse Date, Date, Thread, Author