diff options
| author | William M. Brack <wbrack@src.gnome.org> | 2003-07-29 04:28:04 +0000 |
|---|---|---|
| committer | William M. Brack <wbrack@src.gnome.org> | 2003-07-29 04:28:04 +0000 |
| commit | 4a557d97bfff5497500a6e707f7892cc4c092153 (patch) | |
| tree | 8c202f653cc9e5ca2090a5da761745ba16c55117 /HTMLparser.c | |
| parent | 9deb242b558cbcff45165866e0634a1962404885 (diff) | |
| download | android_external_libxml2-4a557d97bfff5497500a6e707f7892cc4c092153.tar.gz android_external_libxml2-4a557d97bfff5497500a6e707f7892cc4c092153.tar.bz2 android_external_libxml2-4a557d97bfff5497500a6e707f7892cc4c092153.zip | |
fixed problem with comments reported by Nick Kew added routines
* HTMLparser.c: fixed problem with comments reported by Nick Kew
* encoding.c: added routines xmlUTF8Size and xmlUTF8Charcmp for
some future cleanup of UTF8 handling
Diffstat (limited to 'HTMLparser.c')
| -rw-r--r-- | HTMLparser.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/HTMLparser.c b/HTMLparser.c index e7dcb344..2ee458c6 100644 --- a/HTMLparser.c +++ b/HTMLparser.c @@ -4358,10 +4358,11 @@ htmlParseLookupSequence(htmlParserCtxtPtr ctxt, xmlChar first, (buf[base + 2] == '-') && (buf[base + 3] == '-')) { incomment = 1; } - /* do not increment base, some people use <!--> */ + /* do not increment past <!, some people use <!--> */ + base += 2; } if (incomment) { - if (base + 3 < len) + if (base + 3 > len) return(-1); if ((buf[base] == '-') && (buf[base + 1] == '-') && (buf[base + 2] == '>')) { |
