You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2018/03/01 05:42:56 UTC

[Bug 62145] New: Fix crashes when apr_sockaddr_info_get fails

https://bz.apache.org/bugzilla/show_bug.cgi?id=62145

            Bug ID: 62145
           Summary: Fix crashes when apr_sockaddr_info_get fails
           Product: Apache httpd-2
           Version: 2.5-HEAD
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: All
          Assignee: bugs@httpd.apache.org
          Reporter: jiazhouyang09@gmail.com
  Target Milestone: ---

Created attachment 35747
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=35747&action=edit
add error handling code for apr_sockaddr_info_get

Hi,

I'm a PhD student. I analyzed the httpd source code and found
apr_sockaddr_info_get missing error handling in several places, which may cause
bad results like crash.

Attached please find the patch against master branch. Hopefully, it can solve
these potential bugs.

Best,
Zhouyang

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 62145] Fix crashes when apr_sockaddr_info_get fails

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=62145

Rainer Jung <ra...@kippdata.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|APIBug                      |
                URL|zhouyang                    |

--- Comment #2 from Rainer Jung <ra...@kippdata.de> ---
Undo changes done by spammer.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 62145] Fix crashes when apr_sockaddr_info_get fails

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=62145

moh.riza <mo...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|PortBack                    |APIBug

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 62145] Fix crashes when apr_sockaddr_info_get fails

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=62145

--- Comment #1 from Christophe JAILLET <ch...@wanadoo.fr> ---
Hi,

First, thanks a lot for the report.


However, I think that the patch is at least incomplete.
In most cases, you only add some log information, which is useful by itself.
It is likely that a more complete error handling should be performed.

I will try to have a look at it in the coming days, but feel free to double
check your proposal and provide a v2 if needed.


Anyway, thanks for your interest in the project proposal to improve it.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Re: [Bug 62145] Fix crashes when apr_sockaddr_info_get fails

Posted by Rainer Jung <ra...@kippdata.de>.
Am 07.09.2018 um 15:48 schrieb bugzilla@apache.org:
> https://bz.apache.org/bugzilla/show_bug.cgi?id=62145
> 
> moh.riza <mo...@gmail.com> changed:
> 
>             What    |Removed                     |Added
> ----------------------------------------------------------------------------
>                  URL|                            |zhouyang
>             Keywords|                            |PortBack
> 

Can we ban this idot <mo...@gmail.com> from bugzilla? Can we do it 
ourselves, or do we need to mail infra?

Regards,

Rainer

Re: [Bug 62145] Fix crashes when apr_sockaddr_info_get fails

Posted by Rainer Jung <ra...@kippdata.de>.
Am 07.09.2018 um 15:48 schrieb bugzilla@apache.org:
> https://bz.apache.org/bugzilla/show_bug.cgi?id=62145
> 
> moh.riza <mo...@gmail.com> changed:
> 
>             What    |Removed                     |Added
> ----------------------------------------------------------------------------
>                  URL|                            |zhouyang
>             Keywords|                            |PortBack
> 

Can we ban this idot <mo...@gmail.com> from bugzilla? Can we do it 
ourselves, or do we need to mail infra?

Regards,

Rainer

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 62145] Fix crashes when apr_sockaddr_info_get fails

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=62145

moh.riza <mo...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                URL|                            |zhouyang
           Keywords|                            |PortBack

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org