Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix crash in GetInterfaceAddresses #4272

Closed
wants to merge 1 commit into from
Closed

Fix crash in GetInterfaceAddresses #4272

wants to merge 1 commit into from

Commits on Dec 14, 2015

  1. os: fix crash in GetInterfaceAddresses

    If uv_interface_addresses() returns UV_ENOSYS then interfaces and count
    are uninitialised. This can cause a segmentation fault inside
    GetInterfaceAddresses when it tries to use the invalid interfaces[].
    Fix the issue by returning from GetInterfaceAddresses on the UV_ENOSYS
    error.
    
    This issue was observed when using uCLibc-ng version 1.0.9 because
    uv_interface_addresses() in deps/uv/src/unix/linux-core.c incorrectly
    undefines HAVE_IFADDRS_H.
    
    Signed-off-by: Martin Bark <martin@barkynet.com>
    martinbark committed Dec 14, 2015
    Configuration menu
    Copy the full SHA
    98e8f50 View commit details
    Browse the repository at this point in the history