diff options
| author | Giuseppe D'Angelo <giuseppe.dangelo@kdab.com> | 2024-08-06 19:07:42 +0200 |
|---|---|---|
| committer | Giuseppe D'Angelo <giuseppe.dangelo@kdab.com> | 2024-08-07 22:20:42 +0200 |
| commit | a041cd35214e57a189aaa1f1f77199ff42303f83 (patch) | |
| tree | 2aa830ec1c56f674028ad1fdacfd4c1b4638fa63 /src/plugins/platforms/android/qandroidplatformopenglwindow.cpp | |
| parent | d17d260948e16549d82f1fdd4dec98d246b0622e (diff) | |
QRegularExpression: coalesce consecutive * tokens in wildcards
When converting a wildcard into a regexp, convert a series of
consecutive '*' tokens in just one '.*' (instead of a series of '.*').
The pattern matched is the same, but we reduce the effects of a
possible catastrophic backtracking. I'm not actually sure whether
PCRE optimizes this case out of its own or it doesn't; Perl appears
not to.
Change-Id: Ia83336391593d56cf6d8332c96649a034a83a15b
Pick-to: 6.8
Fixes: QTBUG-127672
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/plugins/platforms/android/qandroidplatformopenglwindow.cpp')
0 files changed, 0 insertions, 0 deletions
