]> git.ipfire.org Git - thirdparty/curl.git/commit
http2: fix crash in handling stream weights 11384/head
authorStefan Eissing <stefan@eissing.org>
Mon, 26 Jun 2023 07:03:47 +0000 (09:03 +0200)
committerJay Satiro <raysatiro@yahoo.com>
Wed, 28 Jun 2023 20:32:16 +0000 (16:32 -0400)
commit29f33b3400431e23afc85d6ec23427864104d730
treefcf1f099a89aa26edf4caaa5077a06a01f85ab9f
parentcae12480fc7bef73b612f45b09faf62c780d8975
http2: fix crash in handling stream weights

- Delay the priority handling until the stream has been opened.

- Add test2404 to reproduce and verify.

Weights may change "on the run", which is why there are checks in
general egress handling. These must not trigger when the stream has not
been opened yet.

Reported-by: jbgoog@users.noreply.github.com
Fixes https://github.com/curl/curl/issues/11379
Closes https://github.com/curl/curl/pull/11384
lib/http2.c
tests/data/Makefile.inc
tests/data/test2404 [new file with mode: 0644]
tests/libtest/Makefile.inc
tests/libtest/lib2404.c [new file with mode: 0644]