[
https://issues.apache.org/jira/browse/TS-4272?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15260879#comment-15260879
]
ASF subversion and git services commented on TS-4272:
-----------------------------------------------------
Commit 81b0d74d70866bf1a82b5cf60cb70f7da6c91d65 in trafficserver's branch
refs/heads/6.1.x from [~jacksontj]
[ https://git-wip-us.apache.org/repos/asf?p=trafficserver.git;h=81b0d74 ]
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
(cherry picked from commit edf9ff13db4e63ee9b5003b603439bf2aa6ff19b)
> HostDB not clearing 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
> Fix For: 6.1.2, 6.2.0
>
>
> 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.
> Found during investigation of TS-4207
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)