summaryrefslogtreecommitdiffstats
path: root/fuzz/fuzz_target_fdp.cc
diff options
context:
space:
mode:
Diffstat (limited to 'fuzz/fuzz_target_fdp.cc')
-rw-r--r--fuzz/fuzz_target_fdp.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/fuzz/fuzz_target_fdp.cc b/fuzz/fuzz_target_fdp.cc
index f94b964..668c83f 100644
--- a/fuzz/fuzz_target_fdp.cc
+++ b/fuzz/fuzz_target_fdp.cc
@@ -44,7 +44,7 @@ namespace {
void send_pending(nghttp2_session *session) {
for (;;) {
const uint8_t *data;
- auto n = nghttp2_session_mem_send(session, &data);
+ auto n = nghttp2_session_mem_send2(session, &data);
if (n == 0) {
return;
}
@@ -87,7 +87,7 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
send_pending(session);
std::vector<uint8_t> d = data_provider.ConsumeRemainingBytes<uint8_t>();
- nghttp2_session_mem_recv(session, d.data(), d.size());
+ nghttp2_session_mem_recv2(session, d.data(), d.size());
send_pending(session);