Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

Re: nvi core dumps on SCREENWIDTH - 9 length input.

From: Daniel Hartmeier <daniel(at)benzedrine.cx>
Date: Tue Jul 08 2003 - 06:00:26 EDT

On Tue, Jul 08, 2003 at 05:10:10AM -0400, Ray wrote:

> In both cases, it core dumped when I attempted to enter a 1.

It's a similar problem as

  http://groups.google.com/groups?th=e81c8b99f095957f

which is also reproducable with our vi.

vi/vs_refresh.c vs_paint() is calling itself recursively until it runs out of stack and segfaults. In your case, it's "set number", which causes the screen columns to get lowered by 8 characters, but not in a consistent way, so vs_paint() loops endlessly.

It's kind of a non-trivial function, though. "If you change this code, you'd better know what you're doing. It's subtle and quick to anger.", found in a comment there, seems appropriate :)

Do you need help?X

Daniel Received on Tue Jul 8 06:19:39 2003

This archive was generated by hypermail 2.1.8 : Wed Aug 23 2006 - 13:48:42 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library