nano-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Auto-indent and undo causes crashes


From: Benno Schulenberg
Subject: Re: Auto-indent and undo causes crashes
Date: Fri, 3 Apr 2020 11:30:25 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1

Hello Liu,

Op 02-04-2020 om 19:04 schreef Liu Hao:
> It looks like 1961c052c85394d1dfb5d2d98d31f154757c8d08 introduced a bug
> that causes nano to crash, as follows:
> 
> 0) Run `nano -Ii`.
> 1) Type `      a`. Leading spaces are intentional.
> 2) Press <Left>. This places the cursor just preceding `a`.
> 3) Press <Enter>. This inserts a blank line before it.
> 4) Press M-U. This is expected to undo the insertion, but please
>    note that leading spaces are gone now.
> 5) Press M-U once more. This causes nano to crash. Error messages
>    vary from SIGSEGV, SIGBUS to 'Nano is out of memory!'.

Thanks for reporting!

Indeed, that commit was a mistake.  :/

I've re-reported the bug as https://savannah.gnu.org/bugs/?58108.

And it is fixed in git:

  https://git.savannah.gnu.org/cgit/nano.git/commit/?id=9a67d795


Out of curiosity, did you run into this while using nano?  Or did
you find it by looking at the code or commits?

Benno

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]