Author: fejj
Date: 2007-07-05 12:02:04 -0400 (Thu, 05 Jul 2007)
New Revision: 81407
Modified:
trunk/monodevelop/Extras/CSharpBinding/ChangeLog
trunk/monodevelop/Extras/CSharpBinding/Parser/CodeGenerator.cs
Log:
2007-07-05 Jeffrey Stedfast <[EMAIL PROTECTED]>
* Parser/CodeGenerator.cs: Sanity check that bot begin and end are
!= -1 to prevent a crash.
Modified: trunk/monodevelop/Extras/CSharpBinding/ChangeLog
===================================================================
--- trunk/monodevelop/Extras/CSharpBinding/ChangeLog 2007-07-05 15:44:01 UTC
(rev 81406)
+++ trunk/monodevelop/Extras/CSharpBinding/ChangeLog 2007-07-05 16:02:04 UTC
(rev 81407)
@@ -1,3 +1,8 @@
+2007-07-05 Jeffrey Stedfast <[EMAIL PROTECTED]>
+
+ * Parser/CodeGenerator.cs: Sanity check that bot begin and end are
+ != -1 to prevent a crash.
+
2007-07-03 Mike Krüger <[EMAIL PROTECTED]>
* CSharpBindingCompilerManager.cs: added signing support.
Modified: trunk/monodevelop/Extras/CSharpBinding/Parser/CodeGenerator.cs
===================================================================
--- trunk/monodevelop/Extras/CSharpBinding/Parser/CodeGenerator.cs
2007-07-05 15:44:01 UTC (rev 81406)
+++ trunk/monodevelop/Extras/CSharpBinding/Parser/CodeGenerator.cs
2007-07-05 16:02:04 UTC (rev 81407)
@@ -81,6 +81,9 @@
begin = file.GetPositionFromLineColumn
(cls.Region.BeginLine, cls.Region.BeginColumn);
end = file.GetPositionFromLineColumn
(cls.Region.EndLine, cls.Region.EndColumn);
+ if (begin == -1 || end == -1)
+ continue;
+
txt = file.GetText (begin, end);
switch (cls.ClassType) {
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches