@miconda commented on this pull request.


> @@ -783,9 +783,9 @@ int replace(regmatch_t *pmatch, char *string, char 
> *replacement, str *result)
                        if(i < len - 1) {
                                if(isdigit((unsigned char)replacement[i + 1])) {
                                        digit = replacement[i + 1] - '0';
-                                       if(pmatch[digit].rm_so != -1) {
+                                       if(digit < 6 && pmatch[digit].rm_so != 
-1) {

Shouldn't the condition be `digit < SR_RE_MAX_MATCH`?

-- 
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/4796#pullrequestreview-4578249809
You are receiving this because you are subscribed to this thread.

Message ID: <kamailio/kamailio/pull/4796/review/[email protected]>
_______________________________________________
Kamailio - Development Mailing List -- [email protected]
To unsubscribe send an email to [email protected]
Important: keep the mailing list in the recipients, do not reply only to the 
sender!

Reply via email to