]> git.ipfire.org Git - thirdparty/curl.git/commit
quiche: fix segfault and other things
authorStefan Eissing <stefan@eissing.org>
Wed, 19 Jul 2023 08:42:07 +0000 (10:42 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 19 Jul 2023 14:38:05 +0000 (16:38 +0200)
commitf6c8a0e50d4868051afdfe4528d4f2980097d648
tree543d55ca7c63a528c393912896431248c8749bfe
parentac67d721790e76815dee7f13db4511b33fd0aa6e
quiche: fix segfault and other things

- refs #11449 where a segfault is reported when IP Eyeballing did
  not immediately connect but made several attempts
- The transfer initiating the eyeballing was initialized  too early,
  leadding to references to the filter instance that was then
  replaced in the subsequent eyeball attempts. That led to a use
  after free in the buffer handling for the transfer
- transfers are initiated now more lazy (like in the ngtcp2 filter),
  when the stream is actually opened
- suppress reporting on quiche event errors for "other" transfers
  than the current one to not fail a transfer due to faults in
  another one.
- revert recent return value handling for quiche_h3_recv_body()
  to not indicate an error but an EAGAIN situation. We wish quiche
  would document what functions return.

Fixes #11449
Closes #11469
Reported-by: ウさん
lib/vquic/curl_quiche.c