]> git.ipfire.org Git - thirdparty/curl.git/commit
Curl_addr2string: take an addrlen argument too
authorDaniel Stenberg <daniel@haxx.se>
Fri, 30 Aug 2019 09:29:55 +0000 (11:29 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Sat, 31 Aug 2019 09:41:56 +0000 (11:41 +0200)
commit84ced9389e1a7f576812e0675b37056331c4dbcd
tree1a7b73484497f19b163c3fdba266ff7ab12193cc
parentcd68dfe8311c42f088ef082bfd90aeae65b9f589
Curl_addr2string: take an addrlen argument too

This allows the function to figure out if a unix domain socket has a
file name or not associated with it! When a socket is created with
socketpair(), as done in the fuzzer testing, the path struct member is
uninitialized and must not be accessed.

Bug: https://crbug.com/oss-fuzz/16699

Closes #4283
lib/connect.c
lib/connect.h
lib/vquic/ngtcp2.c
tests/unit/unit1607.c
tests/unit/unit1609.c