bugGNU nano - Bugs: bug #43877, buffer overrun

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #43877: buffer overrun

Submitter:  Joshua Rogers <megamansec3>
Submitted:  Wed 24 Dec 2014 12:42:35 AM UTC
   
 
Severity:  3 - Normal Status:  Fixed
Assigned to:  bens Open/Closed:  Closed

Sun 15 Feb 2015 04:43:35 PM UTC, comment #1: 

This was sufficiently addressed by a patch by Kamil Dudka, applied in revision 5109, right?

Benno Schulenberg <bens>
Group administrator
Wed 24 Dec 2014 12:42:35 AM UTC, original submission:  

Hi,

In files.c, a buffer overrun may occur during the lockfile phase:

char lockprog[12], lockuser[16];
[...]
strncpy(lockuser, &lockbuf[28], 16);

", 16" does not allow for a NUL byte.

It is then printed multiple times afterwards, allowing for the leak.



Thanks,

Joshua Rogers <megamansec3>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by bens (Posted a comment)
  • -email is unavailable- added by megamansec3 (Submitted the item)
  •  

    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
    2015-03-20 bens StatusNeed Info Fixed
        Open/ClosedOpen Closed
    2015-02-15 bens StatusNone Need Info
        Assigned toNone bens

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code