GNU nano - Bugs: bug #58959, with --disable-utf8, nano crashes...
You are not allowed to post comments on this tracker with your current authentication level.
bug #58959: with --disable-utf8, nano crashes upon "M-V M-Ins"
Submitter: | Benno Schulenberg <bens> | ||
Submitted: | Sat 15 Aug 2020 08:56:47 AM UTC | ||
Severity: | 4 - Important | Status: | Fixed |
Assigned to: | bens | Open/Closed: | Closed |
Sat 15 Aug 2020 10:45:19 AM UTC, comment #4: |
Benno Schulenberg <bens> |
Sat 15 Aug 2020 09:49:27 AM UTC, comment #3: Bug exists since version 4.8. The offending commit is 03d296eb: "allocate sufficient bytes for entering a Unicode codepoint". |
Benno Schulenberg <bens> |
Sat 15 Aug 2020 09:15:20 AM UTC, comment #2: The problem is that get_verbatim_kbinput() reserves MAXCHARLEN + 1 bytes for the result, and for non-UTF-8 locales MAXCHARLEN can be 1, whereas count (the number of codes that come out of parse_verbatim_kbinput()) can be 2. Oops. |
Benno Schulenberg <bens> |
Sat 15 Aug 2020 09:09:01 AM UTC, comment #1: Valgrind reports this:
|
Benno Schulenberg <bens> |
Sat 15 Aug 2020 08:56:47 AM UTC, original submission:
To reproduce, configure nano with --disable-utf8, compile, and then run 'src/nano --ignore', and type: M-V M-Ins
|
Benno Schulenberg <bens> |
No files currently attached
Depends on the following items: None found
Items that depend on this one: None found
There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.
Follow 4 latest changes.
Date | Changed by | Updated Field | Previous Value | => | Replaced by |
---|---|---|---|---|---|
2020-08-25 | bens | Open/Closed | Open | Closed | |
2020-08-15 | bens | Summary | with --disable-utf8, nano crashes upon for "M-V M-Ins" | with --disable-utf8, nano crashes upon "M-V M-Ins" | |
2020-08-15 | bens | Status | In Progress | Fixed | |
2020-08-15 | bens | Status | None | In Progress |
Powered by Savane 3.13-758e.
Corresponding source code
Fixed in git, commit 3cb55c8b.
(Bug existed since version 4.9.)