Re: info crashes if .infokey contains the "invalid" action

2016-03-04 Thread Ken Brown
On 3/4/2016 2:39 PM, Gavin Smith wrote: I think I've fixed it now. (SVN revision 7040). Confirmed. Thanks for the quick fix. Ken

Re: info crashes if .infokey contains the "invalid" action

2016-03-04 Thread Gavin Smith
On 4 March 2016 at 17:08, Ken Brown wrote: > This isn't the right fix. It prevents the crash, but it doesn't correctly > process the "invalid" line in .infokey. I tested with the following > .infokey: > > $ cat .infokey > #info > ^a invalid > > After startup, ^a still moved

Re: info crashes if .infokey contains the "invalid" action

2016-03-04 Thread Ken Brown
On 3/3/2016 7:21 PM, Ken Brown wrote: A Cygwin user reported a crash as in the subject. I traced it to line 468 of info/infokey.c, in which there is a reference to function_doc_array[a] with a == A_INVALID: ke.value.function = _doc_array[a]; As a result, ke.value.function contains garbage.

info crashes if .infokey contains the "invalid" action

2016-03-03 Thread Ken Brown
A Cygwin user reported a crash as in the subject. I traced it to line 468 of info/infokey.c, in which there is a reference to function_doc_array[a] with a == A_INVALID: ke.value.function = _doc_array[a]; As a result, ke.value.function contains garbage. The following patch appears to fix