Displaying 2 results from an estimated 2 matches for "reset_address_cache".
2018 Feb 21
1
tinc 1.1: freeaddrinfo(NULL) crash on windows
Unfortunately, my fix exposed a problem in reset_address_cache()
could call free_known_addresses() on a struct addrinfo * that was
returned by getaddrinfo(). This results in heap corruption on
Windows (and a crash).
It seems safest to just make a copy of the addresses returned by
getaddrinfo() so it can always use free_known_addresses() instead
of trying to...
2018 Feb 16
2
tinc 1.1: freeaddrinfo(NULL) crash on windows
On Mon, 22 Jan 2018 18:08:22 +0100, Guus Sliepen wrote:
> Thanks for reporting this bug! Indeed, that code is wrong. It should
> free cache->ai instead of cache->aip. Even if it didn't crash on Linux,
> it was a memory leak. A fix is now in the git repository.
The fix leads to a use after free bug which is visible on macOS.
It doesn't seem to be much of a problem on most