From eaaeb12f67bde0ebec2629d63e9abddc4232f686 Mon Sep 17 00:00:00 2001 From: Emil Lerch Date: Tue, 1 Sep 2026 09:31:45 -0700 Subject: [PATCH] return ParseFailed when too many bytes are specified for the field --- src/srf.zig | 1 + 1 file changed, 1 insertion(+) diff --git a/src/srf.zig b/src/srf.zig index 25a6ecc..f2faf48 100644 --- a/src/srf.zig +++ b/src/srf.zig @@ -847,6 +847,7 @@ pub const RecordIterator = struct { } } else { // We should be on a delimiter, otherwise, we should be at the end + if (state.current_line == null) return error.ParseFailed; state.current_line = state.current_line.?[state.partial_line_column..]; // can't use l here because line may have been reassigned state.partial_line_column = 0; if (state.current_line.?.len == 0) {