From: helly Date: Fri, 7 Mar 2008 22:09:20 +0000 (+0000) Subject: - Patch to fix limit of scanner buffer, by Jan-Henrik Haukeland (hauk a tildeslash... X-Git-Tag: 0.13.6~74 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c5d3cd72170a2ffd9068e34b3b26805c4c9bd542;p=re2c - Patch to fix limit of scanner buffer, by Jan-Henrik Haukeland (hauk a tildeslash d com) --- diff --git a/re2c/bootstrap/scanner.cc b/re2c/bootstrap/scanner.cc index b9a18c55..bf7278c5 100644 --- a/re2c/bootstrap/scanner.cc +++ b/re2c/bootstrap/scanner.cc @@ -1,4 +1,4 @@ -/* Generated by re2c 0.13.3.dev on Fri Mar 7 22:41:37 2008 */ +/* Generated by re2c 0.13.3.dev on Fri Mar 7 23:02:37 2008 */ /* $Id$ */ #include #include @@ -67,7 +67,7 @@ char *Scanner::fill(char *cursor, uint need) cursor = &buf[cursor - bot]; pos = &buf[pos - bot]; lim = &buf[lim - bot]; - top = &lim[BSIZE]; + top = &lim[need]; delete [] bot; bot = buf; } diff --git a/re2c/scanner.re b/re2c/scanner.re index 41a0f1e8..24ae1a73 100644 --- a/re2c/scanner.re +++ b/re2c/scanner.re @@ -66,7 +66,7 @@ char *Scanner::fill(char *cursor, uint need) cursor = &buf[cursor - bot]; pos = &buf[pos - bot]; lim = &buf[lim - bot]; - top = &lim[BSIZE]; + top = &lim[need]; delete [] bot; bot = buf; }