SF.net SVN: geany: [381] trunk

eht16 at users.sourceforge.net eht16 at xxxxx
Tue May 30 20:50:56 UTC 2006


Revision: 381
Author:   eht16
Date:     2006-05-30 13:50:50 -0700 (Tue, 30 May 2006)
ViewCVS:  http://svn.sourceforge.net/geany/?rev=381&view=rev

Log Message:
-----------
Fixed a crash when opening malformed CSS files.

Modified Paths:
--------------
    trunk/ChangeLog
    trunk/tagmanager/css.c
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog	2006-05-30 19:19:05 UTC (rev 380)
+++ trunk/ChangeLog	2006-05-30 20:50:50 UTC (rev 381)
@@ -15,6 +15,7 @@
  * src/keybindings.c: Added shortcut for Replace Tabs by Space,
                       extend usage of GEANY_ADD_ACCEL macro.
  * src/prefs.c: Detect duplicate shortcuts and prevent saving them.
+ * tagmanager/css.c: Fixed a crash when opening malformed CSS files.
 
 
 2006-05-29  Enrico Troeger  <enrico.troeger at uvena.de>

Modified: trunk/tagmanager/css.c
===================================================================
--- trunk/tagmanager/css.c	2006-05-30 19:19:05 UTC (rev 380)
+++ trunk/tagmanager/css.c	2006-05-30 20:50:50 UTC (rev 381)
@@ -195,6 +195,7 @@
 				return state;
 			break;
 		}
+		if (line == NULL) return P_STATE_AT_END;
 		line++;
 	}
 	return state;


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Commits mailing list