| From: | Andres Freund <andres(at)anarazel(dot)de> |
|---|---|
| To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
| Cc: | pgsql-hackers(at)lists(dot)postgresql(dot)org |
| Subject: | Re: Some regular-expression performance hacking |
| Date: | 2021-02-23 17:34:37 |
| Message-ID: | 20210223173437.b3ywijygsy6q42gq@alap3.anarazel.de |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
Hi,
One of the recent commits have introduce a new warning with gcc 10, when
building with optimizations:
In file included from /home/andres/src/postgresql/src/backend/regex/regcomp.c:2304:
/home/andres/src/postgresql/src/backend/regex/regc_nfa.c: In function ‘checkmatchall’:
/home/andres/src/postgresql/src/backend/regex/regc_nfa.c:3087:20: warning: array subscript -1 is outside array bounds of ‘_Bool[257]’ [-Warray-bounds]
3087 | hasmatch[depth] = true;
| ^
/home/andres/src/postgresql/src/backend/regex/regc_nfa.c:2920:8: note: while referencing ‘hasmatch’
2920 | bool hasmatch[DUPINF + 1];
| ^~~~~~~~
Greetings,
Andres Freund
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Mark Dilger | 2021-02-23 17:38:29 | Re: new heapcheck contrib module |
| Previous Message | Tom Lane | 2021-02-23 17:15:29 | Re: Bizarre behavior of \w in a regular expression bracket construct |