Fix buffer overflow on multiline restricted with unterminated quote and multiple empty lines (#41)

This commit is contained in:
red0124
2024-03-01 15:46:34 +01:00
committed by GitHub
parent 27bd60b5ce
commit df2beab6c3
4 changed files with 44 additions and 31 deletions

View File

@@ -269,6 +269,7 @@ private:
void handle_error_multiline_limit_reached() {
constexpr static auto error_msg = "multiline limit reached";
splitter_.unterminated_quote_ = false;
if constexpr (string_error) {
error_.clear();