pgsql: Make pg_regexec() robust against out-of-range search_start.

2021-09-11 Thread Tom Lane
Make pg_regexec() robust against out-of-range search_start. If search_start is greater than the length of the string, we should just return REG_NOMATCH immediately. (Note that the equality case should *not* be rejected, since the pattern might be able to match zero characters.) This guards vario

pgsql: Make pg_regexec() robust against out-of-range search_start.

2021-09-11 Thread Tom Lane
Make pg_regexec() robust against out-of-range search_start. If search_start is greater than the length of the string, we should just return REG_NOMATCH immediately. (Note that the equality case should *not* be rejected, since the pattern might be able to match zero characters.) This guards vario

pgsql: Make pg_regexec() robust against out-of-range search_start.

2021-09-11 Thread Tom Lane
Make pg_regexec() robust against out-of-range search_start. If search_start is greater than the length of the string, we should just return REG_NOMATCH immediately. (Note that the equality case should *not* be rejected, since the pattern might be able to match zero characters.) This guards vario

pgsql: Make pg_regexec() robust against out-of-range search_start.

2021-09-11 Thread Tom Lane
Make pg_regexec() robust against out-of-range search_start. If search_start is greater than the length of the string, we should just return REG_NOMATCH immediately. (Note that the equality case should *not* be rejected, since the pattern might be able to match zero characters.) This guards vario

pgsql: Make pg_regexec() robust against out-of-range search_start.

2021-09-11 Thread Tom Lane
Make pg_regexec() robust against out-of-range search_start. If search_start is greater than the length of the string, we should just return REG_NOMATCH immediately. (Note that the equality case should *not* be rejected, since the pattern might be able to match zero characters.) This guards vario

pgsql: Make pg_regexec() robust against out-of-range search_start.

2021-09-11 Thread Tom Lane
Make pg_regexec() robust against out-of-range search_start. If search_start is greater than the length of the string, we should just return REG_NOMATCH immediately. (Note that the equality case should *not* be rejected, since the pattern might be able to match zero characters.) This guards vario

pgsql: Make pg_regexec() robust against out-of-range search_start.

2021-09-11 Thread Tom Lane
Make pg_regexec() robust against out-of-range search_start. If search_start is greater than the length of the string, we should just return REG_NOMATCH immediately. (Note that the equality case should *not* be rejected, since the pattern might be able to match zero characters.) This guards vario