From 95275ff16e617476851dea3d55863c7c33e13764 Mon Sep 17 00:00:00 2001 From: Chris Wolfe Date: Wed, 25 Apr 2018 07:49:07 -0500 Subject: [PATCH] Fix the fuzzer by setting limits for depth and ext. This is a short lived bug in the fuzzer implementation in which the limits were not set correctly. Credit to OSS-Fuzz --- fuzz/unpack_pack_fuzzer.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fuzz/unpack_pack_fuzzer.cpp b/fuzz/unpack_pack_fuzzer.cpp index 7f967331..70220ffd 100644 --- a/fuzz/unpack_pack_fuzzer.cpp +++ b/fuzz/unpack_pack_fuzzer.cpp @@ -10,6 +10,8 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) { nullptr, nullptr, msgpack::unpack_limit(test_limit, + test_limit, + test_limit, test_limit, test_limit, test_limit));