You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficserver.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2016/03/14 17:20:33 UTC

[jira] [Commented] (TS-4272) HostDB not clearning HostDBInfos for hosts file entries

    [ https://issues.apache.org/jira/browse/TS-4272?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15193551#comment-15193551 ] 

ASF subversion and git services commented on TS-4272:
-----------------------------------------------------

Commit edf9ff13db4e63ee9b5003b603439bf2aa6ff19b in trafficserver's branch refs/heads/master from [~jacksontj]
[ https://git-wip-us.apache.org/repos/asf?p=trafficserver.git;h=edf9ff1 ]

TS-4272: Clear memory for new HostDBInfo items

std::map is creating an entry, and we are setting a subset of values. Since we were not clearing the memory that we got, we end up with some non-initialized structure fields-- meaning the HostDBInfo object we return is corrupt.

Fixes #523


> HostDB not clearning HostDBInfos for hosts file entries
> -------------------------------------------------------
>
>                 Key: TS-4272
>                 URL: https://issues.apache.org/jira/browse/TS-4272
>             Project: Traffic Server
>          Issue Type: Bug
>            Reporter: Thomas Jackson
>            Assignee: Thomas Jackson
>
> std::map is creating an entry, and we are setting a subset of values. Since we were not clearing the memory that we got, we end up with some non-initialized structure fields-- meaning the HostDBInfo object we return is corrupt.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)