bugGNU Screen - Bugs: bug #25718, ':layout number' crashes screen...

 
 

bug #25718: ':layout number' crashes screen when not on a layout

Submitted by:  Soliton <soliton>
Submitted on:  Fri 27 Feb 2009 02:45:31 AM UTC  
 
Category: Crash/Freeze/InfloopSeverity: 3 - Normal
Priority: 9 - ImmediateStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: ClosedRelease: Cur Dev Sources
Fixed Release: NonePlanned Release: None
Work Required: None

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Fri 27 Feb 2009 05:35:55 AM UTC, comment #1:

Fixed in 01f23034c7abad0e5f3c5cf6dfe51893dc5826e4

Micah Cowan <micahcowan>
Fri 27 Feb 2009 02:45:31 AM UTC, original submission:

Screen crashes when issuing '^A :layout number' on a screen without a layout.

When looking at process.c around line 4161 it's also easy to see why since there is no check for D_layout like in the surrounding cases and thus 'Msg(0, "current layout is %d (%s)", D_layout->lay_number, D_layout->lay_title);' segfaults.

I can attach a patch if it helps.

Soliton <soliton>

 

(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 micahcowan (Updated the item)
  • -unavailable- added by soliton (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
    Fri 27 Feb 2009 05:35:55 AM UTCmicahcowanStatusNone=>Fixed
      Open/ClosedOpen=>Closed
    Fri 27 Feb 2009 03:05:30 AM UTCmicahcowanPriority5 - Normal=>9 - Immediate

    Back to the top


    Powered by Savane 3.1-cleanup1