summaryrefslogtreecommitdiff
path: root/dev-libs/oniguruma/files/oniguruma-combination-explosion-check.patch
blob: cfc758d2a083cd52badfd1fd49ef76a6951323ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
--- a/src/regcomp.c
+++ b/src/regcomp.c
@@ -3619,8 +3619,8 @@
       switch (en->type) {
       case ENCLOSURE_MEMORY:
         {
-          if (env->curr_max_regnum < en->regnum)
-            env->curr_max_regnum = en->regnum;
+          if (env->curr_max_regnum < en->m.regnum)
+            env->curr_max_regnum = en->m.regnum;
 
           r = setup_comb_exp_check(NODE_ENCLOSURE_BODY(en), state, env);
         }