You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@trafficserver.apache.org by "zwoop (via GitHub)" <gi...@apache.org> on 2023/09/17 21:02:24 UTC
[GitHub] [trafficserver] zwoop commented on a diff in pull request #10442: Fix Coverity issue in inliner plugin.
zwoop commented on code in PR #10442:
URL: https://github.com/apache/trafficserver/pull/10442#discussion_r1328144254
##########
plugins/experimental/inliner/cache-handler.h:
##########
@@ -326,11 +326,12 @@ namespace inliner
request += std::string(b1, i);
request += "\r\n\r\n";
- ats::io::IO *const io = new io::IO();
+ std::unique_ptr<ats::io::IO> io{new io::IO()};
TSDebug(PLUGIN_TAG, "request:\n%s", request.c_str());
Review Comment:
No unfortunately we don’t have enough karma to run PRs against coverity. So it’ll have to land on master for the next schedule run, rinse repeats…
##########
plugins/experimental/inliner/cache-handler.h:
##########
@@ -326,11 +326,12 @@ namespace inliner
request += std::string(b1, i);
request += "\r\n\r\n";
- ats::io::IO *const io = new io::IO();
+ std::unique_ptr<ats::io::IO> io{new io::IO()};
TSDebug(PLUGIN_TAG, "request:\n%s", request.c_str());
Review Comment:
No unfortunately we don’t have enough karma to run PRs against coverity. So it’ll have to land on master for the next schedule run, rinse repeats…
--
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: github-unsubscribe@trafficserver.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org