Skip to content

Commit 00136aa

Browse files
committed
Fix segfault in Copy After
1 parent 3a7d40e commit 00136aa

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/GrammarApplicator_runRules.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2192,7 +2192,9 @@ uint32_t GrammarApplicator::runRulesOnSingleWindow(SingleWindow& current, const
21922192
}
21932193
}
21942194
if (rule->flags & RF_AFTER) {
2195-
std::advance(it, spot_tags->size());
2195+
for (size_t i = 0; it != cReading->tags_list.end() && i != spot_tags->size(); ++i) {
2196+
++it;
2197+
}
21962198
}
21972199
if (it != cReading->tags_list.end()) {
21982200
insert_taglist_to_reading(it, *theTags, *cReading, mappings);

src/version.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ constexpr auto CG3_COPYRIGHT_STRING = "Copyright (C) 2007-2025 GrammarSoft ApS.
2727

2828
constexpr uint32_t CG3_VERSION_MAJOR = 1;
2929
constexpr uint32_t CG3_VERSION_MINOR = 6;
30-
constexpr uint32_t CG3_VERSION_PATCH = 3;
30+
constexpr uint32_t CG3_VERSION_PATCH = 4;
3131
constexpr uint32_t CG3_REVISION = 13898;
3232
constexpr uint32_t CG3_FEATURE_REV = 13898;
3333
constexpr uint32_t CG3_TOO_OLD = 10373;

0 commit comments

Comments
 (0)