Author: spouliot
Date: 2006-09-28 08:27:17 -0400 (Thu, 28 Sep 2006)
New Revision: 66019
Modified:
trunk/libgdiplus/src/ChangeLog
Log:
2006-09-28 Sebastien Pouliot <sebastien (AT) ximian (DOT) com>
* graphics.c: Re-fix the wrapping case (r58401) if bug #77699 (causing
an endless loop in DrawString) to avoid memory corruption.
Modified: trunk/libgdiplus/src/ChangeLog
trunk/libgdiplus/src/ChangeLog2006-09-28 09:24:39 UTC (rev 66018)
trunk/libgdiplus/src/ChangeLog2006-09-28 12:27:17 UTC (rev 66019)
@@ -1,3 +1,8 @@
+2006-09-28 Sebastien Pouliot <sebastien (AT) ximian (DOT) com>
+
+* graphics.c: Re-fix the wrapping case (r58401) if bug #77699 (causing
+an endless loop in DrawString) to avoid memory corruption.
+
2006-09-22 Sebastien Pouliot <sebastien (AT) ximian (DOT) com>
* graphics.c: (GdipMeasureCharacterRanges) Ensure we're always freeing
Modified:
2006-09-28 09:24:39 UTC (rev 66018)
2006-09-28 12:27:17 UTC (rev 66019)
@@ -2607,9 +2607,9 @@
break;
}
+/* avoid endless loop when wrapping is allowed */
if (CurrentLineStart->LineLen == 0) {
-CurrentLineStart->LineLen;
-ELine++;
+CurrentLineStart->LineLen = 1;
}
/* New line */
Mono-patches maillist - Mono-patches (AT) lists (DOT) ximian.com