bugGNU nano - Bugs: bug #28309, Assertion failure in...

 
 

bug #28309: Assertion failure in is_file_writable() function

Submitted by:  Zoltan Kovacs <giszo>
Submitted on:  Wed Dec 16 14:51:34 2009  
 
Severity: 3 - NormalStatus: Fixed
Assigned to: Chris Allegretta <astyanax>Open/Closed: Closed

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

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

 

Sun Dec 20 05:58:00 2009, comment #1:

Hello Zoltan,

Sorry about that, I removed the check for f in svn revision 4468, and it will be in nano 2.2.2. Please let me know if this does not completely fix the issue.

Chris Allegretta <astyanax>
Project AdministratorIn charge of this item.
Wed Dec 16 14:51:34 2009, original submission:

In files.c (nano 2.2.1) the is_file_writable() function has the following assertion: 'assert(filename != NULL && f != NULL);'.

This checks if f is not NULL, but the function doesn't initialize variable 'f' before first using it in the assertion. This will result in an assert failure in random cases.

Zoltan Kovacs <giszo>

 

(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 (Updated the item)
  • -unavailable- added by astyanax (Posted a comment)
  • -unavailable- added by giszo (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 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat Feb 22 19:57:28 2014bensStatusReady For Test=>Fixed
      Open/ClosedOpen=>Closed
    Sun Dec 20 05:58:00 2009astyanaxAssigned toNone=>astyanax
      StatusNone=>Ready For Test

    Back to the top


    Powered by Savane 3.1-cleanup