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

 
 

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

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

Submitter:  Benno Schulenberg <bens>
Submitted:  Thu 26 Nov 2015 10:20:38 AM UTC
   
 
Severity:  3 - Normal Status:  Fixed
Assigned to:  bens Open/Closed:  Closed

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>
Group administrator
Thu 26 Nov 2015 10:20:38 AM UTC, original submission:  

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

/* One two
three four. */


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

    Date Changed by Updated Field Previous Value => Replaced by
    2015-12-07 bens Open/ClosedOpen Closed
    2015-11-29 bens StatusNone Fixed

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code