summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichael Paquier2025-12-10 04:56:33 +0000
committerMichael Paquier2025-12-10 04:56:33 +0000
commit8268e66ac64cb846517580e0808f971343391fdf (patch)
treebd3c346e34b10bb9ba44d2e496cc747523968ddc /src
parent1d7b00dc14b8efd22f6e971756c2d9c052863234 (diff)
libpq: Authorize pthread_exit() in libpq_check
pthread_exit() is added to the list of symbols allowed when building libpq. This has been reported as possible when libpq is statically linked to libcrypto, where pthread_exit() could be called. Reported-by: Torsten Rupp <torsten.rupp@gmx.net> Author: Nazir Bilal Yavuz <byavuz81@gmail.com> Reviewed-by: Daniel Gustafsson <daniel@yesql.se> Reviewed-by: Michael Paquier <michael@paquier.xyz> Discussion: https://postgr.es/m/19095-6d8256d0c37d4be2@postgresql.org
Diffstat (limited to 'src')
-rwxr-xr-xsrc/interfaces/libpq/libpq_check.pl4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/interfaces/libpq/libpq_check.pl b/src/interfaces/libpq/libpq_check.pl
index 835638cc5a2..dd03e6864fd 100755
--- a/src/interfaces/libpq/libpq_check.pl
+++ b/src/interfaces/libpq/libpq_check.pl
@@ -63,6 +63,10 @@ while (<$fh>)
# exit.
next if /__tsan_func_exit/;
+ # Excluding pthread_exit allows legitimate thread terminations in some
+ # builds.
+ next if /pthread_exit/;
+
# Anything containing "exit" is suspicious.
# (Ideally we should reject abort() too, but there are various scenarios
# where build toolchains insert abort() calls, e.g. to implement