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

   Fixes four Coverity Scan reports in traffic_cache_tool and traffic_logcat, 
plus a divide by zero found while checking them.
   
   - traffic_cache_tool: the stripe count read from a span header is now 
bounded by what traffic_server can write for a span that size, and a short read 
of the header is reported as an error.
   - traffic_cache_tool `scan` and `dir_probe`: a document whose stored lengths 
do not fit in the bytes read is skipped and reported.
   - traffic_cache_tool: `--aos 0` divided by zero, and so did a large `--aos` 
or a small stripe, through a zero segment count. `--aos` must now be positive, 
and a stripe always gets at least one directory bucket.
   - traffic_logcat: without `-w`, the output file is now created with `O_EXCL` 
instead of being checked with `access()` and then opened, so the check and the 
create happen in one step. `-w` still truncates.
   
   Tests: Catch2 tests for the document length check and the stripe layout, and 
Uranium tests for `--aos 0` and for logcat output that already exists, is a 
dangling symbolic link, or is overwritten with `-w`.
   


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