GNU nano - Bugs: bug #48125, the representation of invalid...
You are not allowed to post comments on this tracker with your current authentication level.
bug #48125: the representation of invalid multibyte sequences depends on uninitialized data
Submitter: | Benno Schulenberg <bens> | ||
Submitted: | Sat 04 Jun 2016 12:19:26 PM UTC | ||
Severity: | 3 - Normal | Status: | Fixed |
Assigned to: | bens | Open/Closed: | Closed |
Wed 29 Jun 2016 07:00:41 PM UTC, comment #4: |
Benno Schulenberg <bens> |
Sun 05 Jun 2016 07:59:56 AM UTC, comment #3: The command should of course have been:
|
Benno Schulenberg <bens> |
Sat 04 Jun 2016 08:00:21 PM UTC, comment #2: When 'buf_mb_len = parse_mbchar(buf + start_index, buf_mb, NULL)' tries to parse an invalid multibyte sequence, it does not return the Replacement Character but the /unterminated/ first byte. The three other bytes in the allocated buffer will contain random data. If the first byte together with the random second byte happens to form a valid control sequence, nano will mistakenly classify it as a control and show it as such.
|
Benno Schulenberg <bens> |
Sat 04 Jun 2016 12:34:58 PM UTC, comment #1: To reproduce, run:
|
Benno Schulenberg <bens> |
Sat 04 Jun 2016 12:19:26 PM UTC, original submission:
The representation of one and the same file can differ when run in different terminals (which here will randomly have different values of MALLOC_PERTURB_). It seems to happen only for invalid multibyte sequences.
|
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 |
---|---|---|---|---|---|
2016-07-30 | bens | Open/Closed | Open | Closed | |
2016-06-29 | bens | Status | In Progress | Fixed | |
2016-06-04 | bens | Status | None | In Progress | |
Summary | something in the representation of multibyte characters depends on unitialized data | the representation of invalid multibyte sequences depends on uninitialized data |
Powered by Savane 3.13-3230.
Corresponding source code
Fixed in git, feacacc.