bugGNU nano - Bugs: bug #47156, when nano finds a lock file, it...

 
 

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

bug #47156: when nano finds a lock file, it does something fishy

Submitter:  Benno Schulenberg <bens>
Submitted:  Mon 15 Feb 2016 04:39:08 PM UTC
   
 
Severity:  3 - Normal Status:  Fixed
Assigned to:  bens Open/Closed:  Closed

Sat 23 Apr 2016 07:03:35 PM UTC, comment #1: 

Fixed in git, 2faad12.

Benno Schulenberg <bens>
Group administrator
Mon 15 Feb 2016 04:39:08 PM UTC, original submission:  

To reproduce, run 'src/nano README', copy (in another terminal) the .README.swp file to RMS, close nano, copy the RMS file back to .README.swp, start 'src/nano README' again, using valgrind, and see the below.

==5355== Syscall param read(buf) points to unaddressable byte(s)
==5355==    at 0x414D8B3: __read_nocancel (syscall-template.S:82)
==5355==    by 0x80515A7: open_buffer (files.c:453)
==5355==    by 0x805863B: main (nano.c:2629)
==5355==  Address 0x47f7708 is 0 bytes after a block of size 8,192 alloc'd
==5355==    at 0x4024F20: malloc (vg_replace_malloc.c:236)
==5355==    by 0x806110A: nmalloc (utils.c:388)
==5355==    by 0x8051388: do_lockfile (files.c:342)
==5355==    by 0x80515A7: open_buffer (files.c:453)
==5355==    by 0x805863B: main (nano.c:2629)

Benno Schulenberg <bens>
Group administrator

 

(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 (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 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-06-20 bens Open/ClosedOpen Closed
    2016-04-23 bens StatusNone Fixed
        Assigned toNone bens

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code