return ParseFailed when too many bytes are specified for the field
All checks were successful
Generic zig build / build (push) Successful in 25s

This commit is contained in:
Emil Lerch 2026-09-01 09:31:45 -07:00
parent 06ca27b3cf
commit eaaeb12f67
Signed by: lobo
GPG key ID: A7B62D657EF764F8

View file

@ -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) {