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

 
 

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

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

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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

Fixed in git, 2faad12.

Benno Schulenberg <bens>
Project AdministratorIn charge of this item.
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>
Project AdministratorIn charge of this item.

 

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

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by bens (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 20 Jun 2016 09:38:45 AM UTCbensOpen/ClosedOpen=>Closed
    Sat 23 Apr 2016 07:03:35 PM UTCbensStatusNone=>Fixed
      Assigned toNone=>bens

    Back to the top


    Powered by Savane 3.1-cleanup1