Files
ResInsight/ApplicationLibCode/Application/Tools
Magne Sjaastad a1c4b06237 #14150 Fix crash in replaceTemplateTextWithValues with data-derived values
The template name resolution built a regular expression per key and used
QString::replace(QRegularExpression, value) to insert the value. When a value
inserted by one key contained an invalid UTF-16 sequence (e.g. a lone
surrogate from a data-derived case or well name), a subsequent key's global
match ran the regex engine over the malformed subject, causing an
out-of-bounds read and a segmentation fault inside PCRE2.

Replace the regex based substitution with a literal indexOf/replace loop that
preserves the existing word-boundary behavior, so values are never fed through
the regex engine. Empty keys are skipped.
2026-06-08 16:02:02 +02:00
..
2024-11-04 09:54:23 +01:00
2023-09-04 10:08:30 +02:00
2023-10-03 09:04:08 +02:00
2022-11-25 08:59:10 +01:00
2024-11-04 09:54:23 +01:00
2025-09-12 05:45:56 +02:00