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  
 
Severity:  3 - Normal Status:  Fixed
Assigned to:  Chris Allegretta <astyanax> Open/Closed:  Closed

Add a New Comment(Rich 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 Files:
   
   
Comment:
   

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 (Updated the item)
  • -email is unavailable- added by astyanax (Posted a comment)
  • -email is unavailable- added by giszo (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

     

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2014-02-22 bens StatusReady For Test => Fixed
        Open/ClosedOpen => Closed
    2009-12-20 astyanax Assigned toNone => astyanax
        StatusNone => Ready For Test

    Back to the top


    Powered by Savane 3.3