bryancall opened a new pull request, #14120:
URL: https://github.com/apache/trafficserver/pull/14120

   Fixes nine Coverity Scan reports of a null check that comes after a 
dereference.
   
   - Eight checks can never fire, so they go: `LogObject::compute_signature()`, 
cache_promote `stats_add()` (chance and LRU), certifier `prepend()`, `SSLUtils` 
`_store_ssl_ctx()`, uri_signing `TSRemapDoRemap()`, lua 
`ts_lua_client_request_get_header_block()` and `CacheHostRecord::Init()`. Each 
commit says why the pointer cannot be null there: its only caller checks it 
first, or it comes from an allocator that never returns null.
   - traffic_cache_tool: an alternate whose stored request URL is null crashed 
the scan. `check_url()` now rejects a null URL, and checks the URL lies inside 
the document before reading it. Adds a unit test that crashes without the fix, 
and one that a URL inside the document is still accepted.
   
   Tested with ASAN in the fedora:45 CI image: all 1419 unit tests, and 302 
Uranium tests for the touched areas (294 passed, 8 skipped).
   


-- 
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]

Reply via email to