summaryrefslogtreecommitdiffstats
path: root/fuzz
diff options
context:
space:
mode:
Diffstat (limited to 'fuzz')
-rw-r--r--fuzz/fuzz_target.cc4
-rw-r--r--fuzz/fuzz_target_fdp.cc4
2 files changed, 4 insertions, 4 deletions
diff --git a/fuzz/fuzz_target.cc b/fuzz/fuzz_target.cc
index 4adc5ed..1932802 100644
--- a/fuzz/fuzz_target.cc
+++ b/fuzz/fuzz_target.cc
@@ -40,7 +40,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;
}
@@ -70,7 +70,7 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
nghttp2_settings_entry iv{NGHTTP2_SETTINGS_MAX_CONCURRENT_STREAMS, 100};
nghttp2_submit_settings(session, NGHTTP2_FLAG_NONE, &iv, 1);
send_pending(session);
- nghttp2_session_mem_recv(session, data, size);
+ nghttp2_session_mem_recv2(session, data, size);
send_pending(session);
nghttp2_session_del(session);
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);