return ParseFailed when too many bytes are specified for the field
All checks were successful
Generic zig build / build (push) Successful in 25s
All checks were successful
Generic zig build / build (push) Successful in 25s
This commit is contained in:
parent
06ca27b3cf
commit
eaaeb12f67
1 changed files with 1 additions and 0 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue