]> granicus.if.org Git - curl/commit
http2: handle on_begin_headers() called more than once
authorDaniel Stenberg <daniel@haxx.se>
Wed, 18 Apr 2018 21:51:01 +0000 (23:51 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 19 Apr 2018 06:06:40 +0000 (08:06 +0200)
commit6d3c9c8ab4754ea21622d65f11df403bbaf46e2d
treea829581bb51c47779183e565a6dc03295114c718
parent899630021153b2a26a43008cccc6620b6c3f9bbf
http2: handle on_begin_headers() called more than once

This triggered an assert if called more than once in debug mode (and a
memory leak if not debug build). With the right sequence of HTTP/2
headers incoming it can happen.

Detected by OSS-Fuzz

Closes #2507
Bug: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=7764
lib/http2.c