[asterisk-dev] [Code Review] Fix NULL pointer segfault in ast_sockaddr_parse()
elguero
reviewboard at asterisk.org
Thu Jun 14 20:35:18 CDT 2012
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviewboard.asterisk.org/r/1990/
-----------------------------------------------------------
Review request for Asterisk Developers.
Summary
-------
While working with ast_parse_arg() in order to perform a validity check, there was a segfault.
The segfault occurs due to passing a NULL pointer to ast_sockaddr_parse() and then that function tries to set the address.
According to config.h, "result pointer to the result. NULL is valid here, and can be used to perform only the validity checks."
This needs to go in to the code base before committing the manager ipv6 code.
This addresses bug ASTERISK-20006.
https://issues.asterisk.org/jira/browse/ASTERISK-20006
Diffs
-----
/branches/1.8/main/netsock2.c 368091
Diff: https://reviewboard.asterisk.org/r/1990/diff
Testing
-------
Local dev machines
Thanks,
elguero
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20120615/b437ab18/attachment.htm>
More information about the asterisk-dev
mailing list