You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficserver.apache.org by "Leif Hedstrom (JIRA)" <ji...@apache.org> on 2014/09/14 15:32:34 UTC
[jira] [Updated] (TS-3076) Coverity warning and build error on
RHEL6
[ https://issues.apache.org/jira/browse/TS-3076?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Leif Hedstrom updated TS-3076:
------------------------------
Fix Version/s: 5.2.0
> Coverity warning and build error on RHEL6
> -----------------------------------------
>
> Key: TS-3076
> URL: https://issues.apache.org/jira/browse/TS-3076
> Project: Traffic Server
> Issue Type: Bug
> Components: Build
> Reporter: Leif Hedstrom
> Fix For: 5.2.0
>
>
> With the strtok_r change, we fail on RHEL6, and Coverity gives the same error as well:
> {code}
> *** CID 1238635: Uninitialized pointer read (UNINIT)
> /example/protocol/TxnSM.c: 951 in parse_request()
> 945 }
> 946
> 947 /* Parse the server_name and file name from the request. */
> 948 int
> 949 parse_request(char *request, char *server_name, char *file_name)
> 950 {
> CID 1238635: Uninitialized pointer read (UNINIT)
> Declaring variable "saveptr" without initializer.
> 951 char *saveptr, *temp = strtok_r(request, " ", &saveptr);
> 952 if (temp != NULL)
> 953 TSstrlcpy(server_name, temp, MAX_SERVER_NAME_LENGTH + 1);
> 954 else
> 955 return 0;
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)