mirror of
https://github.com/postgres/postgres.git
synced 2025-12-10 14:22:35 +03:00
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
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user