ModSecurity is an open source, cross platform web application firewall (WAF) engine for Apache, IIS and Nginx. It has a robust event-based programming language which provides protection from a range of attacks against web applications and allows for HTTP traffic monitoring, logging and real-time analysis.
There are three occurrences of this issue. I deleted pthread_exit(NULL) calls, because these execution points are not in
pthread execution scope. In process_request() I kept pthread_exit(NULL) and deleted return(NULL), because here we are
in pthread execution context.
(FYI: 11.5 Thread Termination in Advanced Programming in the UNIX® Environment, Third Edition)
Issue reference: https://sonarcloud.io/project/issues?open=AY1CfKFNrsSpWCKX0w9c&id=owasp-modsecurity_ModSecurity
There are three occurrences of this issue. I deleted pthread_exit(NULL) calls, because these execution points are not in pthread execution scope. In process_request() I kept pthread_exit(NULL) and deleted return(NULL), because here we are in pthread execution context. (FYI: 11.5 Thread Termination in Advanced Programming in the UNIX® Environment, Third Edition)