bryancall opened a new pull request, #14084: URL: https://github.com/apache/trafficserver/pull/14084
Fixes nine Coverity Scan reports (the log thread change clears two). - `ink_file_fd_writestring()` returned 0 for a complete write because a misplaced parenthesis stored the comparison instead of the byte count. Its in-tree caller only checks for -1, so nothing visible changed. Adds unit tests; the byte-count case fails without the fix. - Log preproc and flush threads now break out of their loops at shutdown so the unlock after each loop runs. On eventfd/epoll builds that unlock is a no-op; on condition-variable builds (macOS, FreeBSD) the thread exited holding the mutex. No visible effect either way. - header_rewrite: drop a hook-name check that cannot match, since `TS_REMAP_PSEUDO_HOOK` is defined as `TS_HTTP_LAST_HOOK`. - lua: drop an empty-body branch the client path cannot reach. - `NetAccept::acceptFastEvent`: drop a store to `vc` nothing reads. - `HttpTransact`: drop the `ERROR_POSSIBLE_ABORT` result nothing produces. The two `possible_aborts` stats stay registered and read 0, as they always have. - `init_socks`: drop an `else` that assigned the static `socks_conf_stuff` to itself. - `TxnAuxDataMgr::init`: do the work first, then assert on the result, so the asserts have no side effects. Tested with ASAN in the fedora:45 CI image: all 1403 unit tests and the full Uranium suite pass, except test_stop_listening_sigterm_exits, which fails the same way on master under ASAN (a leak report at exit makes the exit status 1). -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
