Fixed bounds check
authorRobert Pengelly <robertapengelly@hotmail.com>
Mon, 1 Jun 2026 07:55:26 +0000 (08:55 +0100)
committerRobert Pengelly <robertapengelly@hotmail.com>
Mon, 1 Jun 2026 07:55:26 +0000 (08:55 +0100)
parse.c

diff --git a/parse.c b/parse.c
index cac31277cdce059b22dd775ed10370122a9fc768..e445aee7d10f7d12075de68b7bd2fcab07b77f84 100644 (file)
--- a/parse.c
+++ b/parse.c
@@ -25960,7 +25960,7 @@ static int source_lhs_has_char_pointer_cast_before_now (const char *p) {
     
     q = p;
     
-    while (limit-- > 0 && q > tok.start - 4096) {
+    while (limit-- > 0 && q > tok.start) {
     
         q--;