GNU nano - Bugs: bug #50289, slight mistreatment of...
You are not allowed to post comments on this tracker with your current authentication level.
bug #50289: slight mistreatment of <ctype.h> functions
Submitter: | None | ||
Submitted: | Sun 12 Feb 2017 06:11:27 PM UTC | ||
Severity: | 2 - Minor | Status: | Fixed |
Assigned to: | bens | Open/Closed: | Closed |
Sun 02 Apr 2017 09:48:22 AM UTC, comment #5: |
Benno Schulenberg <bens> |
Mon 06 Mar 2017 08:18:48 PM UTC, comment #4: Applied to git, 636b7348. Thanks. |
Benno Schulenberg <bens> |
Fri 24 Feb 2017 07:08:35 PM UTC, comment #3: The change itself is mainly an issue of formal correctness, but it can indeed hurt in actual usage, with locales/charsets that utilize the upper 128 values of an 8-bit characters (e.g. ISO-Latin-15).
|
Anonymous |
Fri 24 Feb 2017 02:32:47 PM UTC, comment #2: Ping? Hans? |
Benno Schulenberg <bens> |
Mon 13 Feb 2017 11:09:02 AM UTC, comment #1: Hello Hans,
|
Benno Schulenberg <bens> |
Sun 12 Feb 2017 06:11:27 PM UTC, original submission:
In several places, the nano source calls functions/macros from <ctype.h> with arguments of type plain (char). That is at least formally incorrect because the argument is supposed to be an (int) from the value range of (unsigned char) --- the only negative argument allowed is <stdio.h>'s EOF. Plain (char), OTOH, may be negative, and if it is, that causes undefined behaviour.
|
Anonymous |
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 7 latest changes.
Date | Changed by | Updated Field | Previous Value | => | Replaced by |
---|---|---|---|---|---|
2017-04-02 | bens | Open/Closed | Open | Closed | |
2017-03-06 | bens | Severity | 3 - Normal | 2 - Minor | |
Status | None | Fixed | |||
Summary | Slight mistreatment of <ctype.h> functions | slight mistreatment of <ctype.h> functions | |||
2017-02-24 | bens | Carbon-Copy | - | Added -email is unavailable- | |
2017-02-13 | bens | Assigned to | None | bens | |
2017-02-12 | None | Attached File | - | Added 0001-Make-sure-calls-to-ctype.h-functions-macros-work-eve.patch, #39740 |
Powered by Savane 3.13-758e.
Corresponding source code
The changes were released in 2.8.0.