From a08a23885d1c80b19680b907357aaf6a0faf6d62 Mon Sep 17 00:00:00 2001 From: Linnnus Date: Fri, 11 Apr 2025 23:27:48 +0000 Subject: fix(core): Tokenizer doesn't assume input is NUL-terminated --- src/core/tokenizer.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/core/tokenizer.h') diff --git a/src/core/tokenizer.h b/src/core/tokenizer.h index 6105c3e..1c435a9 100644 --- a/src/core/tokenizer.h +++ b/src/core/tokenizer.h @@ -72,6 +72,8 @@ typedef struct { typedef struct { const char *const filename; + const char *const source; + const size_t source_length; const char *start; unsigned start_line; -- cgit v1.2.3