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

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #28309: Assertion failure in is_file_writable() function

Submitter:  Zoltan Kovacs <giszo>
Submitted:  Wed 16 Dec 2009 02:51:34 PM UTC
   
 
Severity:  3 - Normal Status:  Fixed
Assigned to:  astyanax Open/Closed:  Closed

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>
Group administrator
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.)

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)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    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.13-f8d8.
    Corresponding source code