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 16 Dec 2009 02:51:34 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: Chris Allegretta <astyanax>
Open/Closed: ClosedRelease: None

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

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

 

Sun 20 Dec 2009 05:58:00 AM UTC, 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 16 Dec 2009 02:51:34 PM UTC, 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 22 Feb 2014 07:57:28 PM UTCbensStatusReady For Test=>Fixed
      Open/ClosedOpen=>Closed
    Sun 20 Dec 2009 05:58:00 AM UTCastyanaxAssigned toNone=>astyanax
      StatusNone=>Ready For Test

    Back to the top


    Powered by Savane 3.1-cleanup