You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nifi.apache.org by "Aldrin Piri (JIRA)" <ji...@apache.org> on 2017/02/12 20:52:41 UTC

[jira] [Updated] (MINIFI-201) gethostbyname_r return should be checked

     [ https://issues.apache.org/jira/browse/MINIFI-201?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Aldrin Piri updated MINIFI-201:
-------------------------------
    Affects Version/s:     (was: 0.1.0)
                       cpp-0.1.0

> gethostbyname_r return should be checked
> ----------------------------------------
>
>                 Key: MINIFI-201
>                 URL: https://issues.apache.org/jira/browse/MINIFI-201
>             Project: Apache NiFi MiNiFi
>          Issue Type: Improvement
>          Components: C++
>    Affects Versions: cpp-0.1.0
>         Environment: MacOSX, Linux
>            Reporter: marco polo
>            Priority: Blocker
>             Fix For: cpp-0.2.0
>
>
> In every case where gethostbyname_r is used ( S2S, real time data collector ) I've been able to cause a segfault by simply specifying a hostname that isn't resolvable ( through DNS or /etc/hosts ). We should check the return and handle this gracefully. 



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)