Sahir Hoda updated PROTON-712:
    Attachment: getprotobyname-err-check.patch

> Seg fault due to missing NULL return value check of getprotobyname
> ------------------------------------------------------------------
>                 Key: PROTON-712
>                 URL: https://issues.apache.org/jira/browse/PROTON-712
>             Project: Qpid Proton
>          Issue Type: Bug
>          Components: proton-c
>    Affects Versions: 0.7
>            Reporter: Sahir Hoda
>              Labels: easyfix, patch
>         Attachments: getprotobyname-err-check.patch
> There are several places proton-c makes calls to getprotobyname and 
> dereferences the return value without checking for NULL first. Documentation 
> for getprotobyname indicates it can return NULL if there was an error. We 
> have seen seg faults in testing where getprotobyname returned NULL.
> Attached is a patch that adds some simple error checking to the 
> getprotobyname call.

This message was sent by Atlassian JIRA

Reply via email to