aboutsummaryrefslogtreecommitdiff
path: root/src/backend/regex/regexec.c
diff options
context:
space:
mode:
authorKevin Grittner <kgrittn@postgresql.org>2013-12-27 15:41:46 -0600
committerKevin Grittner <kgrittn@postgresql.org>2013-12-27 15:41:46 -0600
commitb2d80147d5a3d0a5815c5b8e63a6fd9cef17f4a7 (patch)
tree732420b8a7a9be5feb852e3c7683cc156aa64971 /src/backend/regex/regexec.c
parent69f77d75658821ddd6ecf102a7ab4b27eb316d80 (diff)
downloadpostgresql-b2d80147d5a3d0a5815c5b8e63a6fd9cef17f4a7.tar.gz
postgresql-b2d80147d5a3d0a5815c5b8e63a6fd9cef17f4a7.zip
Fix misplaced right paren bugs in pgstatfuncs.c.
The bug would only show up if the C sockaddr structure contained zero in the first byte for a valid address; otherwise it would fail to fail, which is probably why it went unnoticed for so long. Patch submitted by Joel Jacobson after seeing an article by Andrey Karpov in which he reports finding this through static code analysis using PVS-Studio. While I was at it I moved a definition of a local variable referenced in the buggy code to a more local context. Backpatch to all supported branches.
Diffstat (limited to 'src/backend/regex/regexec.c')
0 files changed, 0 insertions, 0 deletions