[
https://issues.apache.org/jira/browse/TS-5018?focusedWorklogId=31278&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-31278
]
ASF GitHub Bot logged work on TS-5018:
--------------------------------------
Author: ASF GitHub Bot
Created on: 27/Oct/16 23:43
Start Date: 27/Oct/16 23:43
Worklog Time Spent: 10m
Work Description: Github user atsci commented on the issue:
https://github.com/apache/trafficserver/pull/1161
FreeBSD build *successful*! See
https://ci.trafficserver.apache.org/job/Github-FreeBSD/1118/ for details.
Issue Time Tracking
-------------------
Worklog Id: (was: 31278)
Time Spent: 20m (was: 10m)
> CID 1365301: Control flow issues (DEADCODE)
> ---------------------------------------------
>
> Key: TS-5018
> URL: https://issues.apache.org/jira/browse/TS-5018
> Project: Traffic Server
> Issue Type: Bug
> Components: Plugins
> Reporter: Masaori Koshiba
> Assignee: Masaori Koshiba
> Fix For: 7.1.0
>
> Time Spent: 20m
> Remaining Estimate: 0h
>
> {noformat}
> ** CID 1365301: Control flow issues (DEADCODE)
> /plugins/header_rewrite/parser.cc: 67 in Parser::Parser(const
> std::basic_string<char, std::char_traits<char>, std::allocator<char>>&)()
> ________________________________________________________________________________________________________
> *** CID 1365301: Control flow issues (DEADCODE)
> /plugins/header_rewrite/parser.cc: 67 in Parser::Parser(const
> std::basic_string<char, std::char_traits<char>, std::allocator<char>>&)()
> 61 cur_token_length = i - cur_token_start + 1;
> 62 _tokens.push_back(line.substr(cur_token_start,
> cur_token_length));
> 63 state = PARSER_DEFAULT;
> 64 extracting_token = false;
> 65 } else if (!extracting_token) {
> 66 // /'s elsewhere are just consumed, but we should not end up
> here if we're not extracting a token
> >>> CID 1365301: Control flow issues (DEADCODE)
> >>> Execution cannot reach this statement: "TSError("[%s] malformed
> >>> reg...".
> 67 TSError("[%s] malformed regex \"%s\" ignoring...",
> PLUGIN_NAME, line.c_str());
> 68 }
> 69 } else if ((state != PARSER_IN_REGEX) && (line[i] == '\\')) {
> 70 // Escaping
> 71 if (!extracting_token) {
> 72 extracting_token = true;
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)