Exploit databaseDownload repository ZIP
GH-ea78ef844e59328b2374b142b7bb01dd
0xh3y3/cve-2026-42533
Sources for CVE-2026-42533
5 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files68
0xh3y3/cve-2026-42533Revision 37f1ceee0769
- ↑..Parent directory
- ngx_alloc.c
- ngx_alloc.h
- ngx_atomic.h
- ngx_channel.c
- ngx_channel.h
- ngx_daemon.c
- ngx_darwin.h
- ngx_darwin_config.h
- ngx_darwin_init.c
- ngx_darwin_sendfile_chain.c
- ngx_dlopen.c
- ngx_dlopen.h
- ngx_errno.c
- ngx_errno.h
- ngx_file_aio_read.c
- ngx_files.c
- ngx_files.h
- ngx_freebsd.h
- ngx_freebsd_config.h
- ngx_freebsd_init.c
- ngx_freebsd_sendfile_chain.c
- ngx_gcc_atomic_amd64.h
- ngx_gcc_atomic_ppc.h
- ngx_gcc_atomic_sparc64.h
- ngx_gcc_atomic_x86.h
- ngx_linux.h
- ngx_linux_aio_read.c
- ngx_linux_config.h
- ngx_linux_init.c
- ngx_linux_sendfile_chain.c
- ngx_os.h
- ngx_posix_config.h
- ngx_posix_init.c
- ngx_process.c
- ngx_process.h
- ngx_process_cycle.c
- ngx_process_cycle.h
- ngx_readv_chain.c
- ngx_recv.c
- ngx_send.c
- ngx_setaffinity.c
- ngx_setaffinity.h
- ngx_setproctitle.c
- ngx_setproctitle.h
- ngx_shmem.c
- ngx_shmem.h
- ngx_socket.c
- ngx_socket.h
- ngx_solaris.h
- ngx_solaris_config.h
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
http-rift/src-stream/src/os/unix/ngx_thread_id.c
C · 1,143 bytes
/*
* Copyright (C) Igor Sysoev
* Copyright (C) Nginx, Inc.
*/
#include <ngx_config.h>
#include <ngx_core.h>
#include <ngx_thread_pool.h>
#if (NGX_LINUX)
/*
* Linux thread id is a pid of thread created by clone(2),
* glibc does not provide a wrapper for gettid().
*/
ngx_tid_t
ngx_thread_tid(void)
{
return syscall(SYS_gettid);
}
#elif (NGX_FREEBSD) && (__FreeBSD_version >= 900031)
#include <pthread_np.h>
ngx_tid_t
ngx_thread_tid(void)
{
return pthread_getthreadid_np();
}
#elif (NGX_DARWIN)
/*
* MacOSX thread has two thread ids:
*
* 1) MacOSX 10.6 (Snow Leoprad) has pthread_threadid_np() returning
* an uint64_t value, which is obtained using the __thread_selfid()
* syscall. It is a number above 300,000.
*/
ngx_tid_t
ngx_thread_tid(void)
{
uint64_t tid;
(void) pthread_threadid_np(NULL, &tid);
return tid;
}
/*
* 2) Kernel thread mach_port_t returned by pthread_mach_thread_np().
* It is a number in range 100-100,000.
*
* return pthread_mach_thread_np(pthread_self());
*/
#else
ngx_tid_t
ngx_thread_tid(void)
{
return (uint64_t) (uintptr_t) pthread_self();
}
#endif