git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: d9d0762) | patch
Suppress compiler warning in new regex match-all detection code.
2021年2月23日 18:55:11 +0000 (13:55 -0500)
2021年2月23日 18:55:34 +0000 (13:55 -0500)
commit 3db05e76f92846d4b54d7de251b0875cf1e23aa4
Suppress compiler warning in new regex match-all detection code.

gcc 10 is smart enough to notice that control could reach this
"hasmatch[depth]" assignment with depth < 0, but not smart enough
to know that that would require a badly broken NFA graph. Change
the assert() to a plain runtime test to shut it up.

Per report from Andres Freund.

Discussion: https://postgr.es/m/20210223173437.b3ywijygsy6q42gq@alap3.anarazel.de
src/backend/regex/regc_nfa.c diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /