Re: Segfault in save_bash_input. Array index is out of a range.

2015-07-23 Thread Chet Ramey
On 7/22/15 5:00 PM, Alexey Makhalov wrote: > I have met situation when nfd(returned by fcntl) is 217, but nbuffers is > only 25 > > if (buffers[nfd]) > { > /* What's this? A stray buffer without an associated open file > descriptor? Free up the buffer and report the error. *

Segfault in save_bash_input. Array index is out of a range.

2015-07-22 Thread Alexey Makhalov
I have met situation when nfd(returned by fcntl) is 217, but nbuffers is only 25 if (buffers[nfd]) { /* What's this? A stray buffer without an associated open file descriptor? Free up the buffer and report the error. */ internal_error (_("save_bash_input: buffer alread