diff options
author | Niclas Rosenvik <nros@netbsd.org> | 2022-07-14 18:35:01 +0200 |
---|---|---|
committer | Thiago Macieira <thiago.macieira@intel.com> | 2022-08-31 19:55:00 +0000 |
commit | 6d930533037f27b906bbd02b0764041d931efb5d (patch) | |
tree | 4f8927666075089767b40bfbfd7781601cf6f529 /tests/auto/network | |
parent | 619cb795b28192b8bc8551ddc0a784db43e918f1 (diff) |
Fix possible undefined behavior in clear_thread_data
Fix possible undefined behavior in clear_thread_data.
The key used in pthread_setspecific must be obtained
from pthread_key_create or undefined behavior occurs.
Use set_thread_data to clear it since it ensures that
the key has been obtained using pthread_key_create
by calling pthread_once using
create_current_thread_data_key.
Fixes crash when closing threaded qt apps on NetBSD.
Pick-to: 5.15 6.2 6.3 6.4
Change-Id: I1c7d2628f4248e00a12724a952568f7d92011986
Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'tests/auto/network')
0 files changed, 0 insertions, 0 deletions