[
https://issues.apache.org/jira/browse/TS-5018?focusedWorklogId=34066&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-34066
]
ASF GitHub Bot logged work on TS-5018:
--------------------------------------
Author: ASF GitHub Bot
Created on: 22/Dec/16 17:20
Start Date: 22/Dec/16 17:20
Worklog Time Spent: 10m
Work Description: Github user SolidWallOfCode closed the pull request at:
https://github.com/apache/trafficserver/pull/1161
Issue Time Tracking
-------------------
Worklog Id: (was: 34066)
Time Spent: 40m (was: 0.5h)
> 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: 40m
> 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)