GNU nano - Bugs: bug #61064, when prepending, nano would crash...
You are not allowed to post comments on this tracker with your current authentication level.
bug #61064: when prepending, nano would crash if fdopen() were to fail
Submitter: | Benno Schulenberg <bens> | ||
Submitted: | Fri 20 Aug 2021 07:45:14 AM UTC | ||
Severity: | 2 - Minor | Status: | Fixed |
Assigned to: | bens | Open/Closed: | Closed |
Fri 20 Aug 2021 08:38:21 AM UTC, comment #1: |
Benno Schulenberg <bens> |
Fri 20 Aug 2021 07:45:14 AM UTC, original submission:
To reproduce, replace the line '*stream = fdopen(fd, "r+b");' in src/files.c with '*stream = NULL;' -- to simulate a failure of fdopen(). Compile and then run 'src/nano README'.
|
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 |
---|---|---|---|---|---|
2021-10-07 | bens | Open/Closed | Open | Closed | |
2021-08-23 | bens | Summary | when prepending, nano would crash if fdopen() would fail | when prepending, nano would crash if fdopen() were to fail | |
2021-08-20 | bens | Status | In Progress | Fixed | |
Summary | when the user prepends, nano would crash if fdopen() would fail | when prepending, nano would crash if fdopen() would fail |
Powered by Savane 3.13-02a9.
Corresponding source code
Fixed in git, commit eaff5ec9, by checking that 'stream' is not NULL in safe_tempfile().