bugGNU Screen - Bugs: bug #43866, double file-close / use-after-free

 
 

bug #43866: double file-close / use-after-free

Submitted by:  Joshua Rogers <megamansec3>
Submitted on:  Sun 21 Dec 2014 11:24:01 PM UTC  
 
Category: Program LogicSeverity: 3 - Normal
Priority: 5 - NormalStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: ClosedRelease: 4.2.1
Fixed Release: 4.3.0Planned 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.

 

Mon 08 Jun 2015 09:52:17 PM UTC, comment #1:

Yes, one of them is unnecessary
http://git.savannah.gnu.org/cgit/screen.git/commit/?h=screen-v4&id=5ac6a9498ce80003718fdb3e17a079eea82e9a65
thanks.

Amadeusz Sławiński <amade>
Project Administrator
Sun 21 Dec 2014 11:24:01 PM UTC, original submission:

Hi,

In fileio.c on line 630, 'i' is closed correctly:
630 close(i);

but then on line 640, it is cloed again.
640 close(i);

Thanks

Joshua Rogers <megamansec3>

 

(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 amade (Posted a comment)
  • -unavailable- added by megamansec3 (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 08 Jun 2015 09:52:17 PM UTCamadeStatusNone=>Fixed
      Open/ClosedOpen=>Closed
      Fixed ReleaseNone=>4.3.0

    Back to the top


    Powered by Savane 3.1-cleanup1