Navigation Menu

Skip to content
This repository has been archived by the owner on May 4, 2018. It is now read-only.
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: joyent/libuv
base: 12bad62addef
Choose a base ref
...
head repository: joyent/libuv
compare: 602b1c69e162
Choose a head ref
  • 2 commits
  • 2 files changed
  • 1 contributor

Commits on Aug 19, 2013

  1. test: simplify test-ip6-addr.c

    Drop the callback-driven approach in favor of a simple loop. Reduces
    the line count and makes the flow of execution a little easier to
    follow.
    bnoordhuis committed Aug 19, 2013
    Copy the full SHA
    dfce87c View commit details
    Browse the repository at this point in the history
  2. unix, windows: fix ipv6 link-local address parsing

    uv_ip6_addr() copies the address part to a temporary buffer when it
    contains a link-local suffix ('<address>%<interface>'). Before this
    commit, it didn't zero-terminate the address properly: it put the nul
    byte at the end of the temporary buffer rather than at the end of the
    address string, meaning the buffer looked like this:
    
        <address> <garbage> '\0'
    
    Fixes the following valgrind warning:
    
        ==16170== Conditional jump or move depends on uninitialised value(s)
        ==16170==    at 0x43602C: inet_pton6 (inet.c:228)
        ==16170==    by 0x435CE1: uv_inet_pton (inet.c:163)
        ==16170==    by 0x436FD0: uv_ip6_addr (uv-common.c:175)
        ==16170==    by 0x434717: test_ip6_addr_scope (test-ip6-addr.c:89)
        ==16170==    by 0x43455B: call_iface_info_cb (test-ip6-addr.c:45)
        ==16170==    by 0x43462B: foreach_ip6_interface (test-ip6-addr.c:59)
        ==16170==    by 0x434791: run_test_ip6_addr_link_local (test-ip6-add
        ==16170==    by 0x4061E8: run_test_part (runner.c:396)
        ==16170==    by 0x404F4B: main (run-tests.c:58)
        ==16170==
        ==16170== Conditional jump or move depends on uninitialised value(s)
        ==16170==    at 0x4C2AD8A: __GI_strchr (mc_replace_strmem.c:224)
        ==16170==    by 0x435ECB: inet_pton6 (inet.c:231)
        ==16170==    by 0x435CE1: uv_inet_pton (inet.c:163)
        ==16170==    by 0x436FD0: uv_ip6_addr (uv-common.c:175)
        ==16170==    by 0x434717: test_ip6_addr_scope (test-ip6-addr.c:89)
        ==16170==    by 0x43455B: call_iface_info_cb (test-ip6-addr.c:45)
        ==16170==    by 0x43462B: foreach_ip6_interface (test-ip6-addr.c:59)
        ==16170==    by 0x434791: run_test_ip6_addr_link_local (test-ip6-add
        ==16170==    by 0x4061E8: run_test_part (runner.c:396)
        ==16170==    by 0x404F4B: main (run-tests.c:58)
    
    Fixes #890.
    bnoordhuis committed Aug 19, 2013
    Copy the full SHA
    602b1c6 View commit details
    Browse the repository at this point in the history