From 330fbaa3573728c046a7cbd3f2487d583e2ecd53 Mon Sep 17 00:00:00 2001 From: helly Date: Mon, 24 Mar 2008 20:42:09 +0000 Subject: [PATCH] - Fix token length check --- re2c/code.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/re2c/code.cc b/re2c/code.cc index 33d8a7ad..8c09decd 100644 --- a/re2c/code.cc +++ b/re2c/code.cc @@ -2444,7 +2444,7 @@ Scanner::~Scanner() void Scanner::check_token_length(char *pos, uint len) const { - if (pos < bot || pos + len >= top) + if (pos < bot || pos + len > top) { fatal("Token exceeds limit"); } -- 2.40.0