bugGNU nano - Bugs: bug #46543, hitting Enter in a multiline C...

 
 

bug #46543: hitting Enter in a multiline C comment sometimes leaves the left line uncoloured

Submitted by:  Benno Schulenberg <bens>
Submitted on:  Thu 26 Nov 2015 10:20:38 AM 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.

 

Sun 29 Nov 2015 10:17:40 AM UTC, comment #1:

Fixed in SVN, r5448.

(After r5447, this bug became very visible.)

Benno Schulenberg <bens>
Project AdministratorIn charge of this item.
Thu 26 Nov 2015 10:20:38 AM UTC, original submission:

First create a file, comment.c, with the following content:

Then run 'MALLOC_PERTURB_=242 src/nano comment.c', put the cursor on the "f" of "four" and hit Enter. The word "three" is now uncoloured.

Bug has been present since at least nano-2.2.4, but does not manifest itself here in 2.2.5, 2.3.2, and 2.3.4. Possibly another perturb value is needed there? Or the layout of the variables just happens to prevent the error?

Because of the perturb, it must be an uninitialized variable somewhere...

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 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 07 Dec 2015 03:19:23 PM UTCbensOpen/ClosedOpen=>Closed
    Sun 29 Nov 2015 10:17:40 AM UTCbensStatusNone=>Fixed

    Back to the top


    Powered by Savane 3.1-cleanup1