[XML-SIG] Bug in sgmlop?

Fredrik Lundh Fredrik Lundh" <effbot@telia.com
Sun, 28 May 2000 16:08:30 +0200


Walter D=F6rwald <walter@bnbt.de> wrote:
> I'm having a little problem with sgmlop from
> the 0.5.4 release. sgmlop seems to drop the
> last character in the string passed to parse:

I've verified this in the 1990620 release.  here's a tentative
patch:

--- sgmlop.c.old Sun Jun 20 13:43:17 1999
+++ sgmlop.c Sun May 28 16:02:55 2000
@@ -1080,8 +1080,10 @@
         } else {
=20
             /* raw data */
-            if (++p >=3D end)
+            if (++p >=3D end) {
+                q =3D p;
                 goto eol;
+            }
             continue;
=20
         }

</F>