From ee8be047563c19883d9a9ee142673c97278f5b76 Mon Sep 17 00:00:00 2001 From: Hugh Wang Date: Sun, 29 Dec 2019 08:53:31 +0000 Subject: [PATCH] Fixed unreachable option in re2. --- re2-2014-12-09/target.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/re2-2014-12-09/target.cc b/re2-2014-12-09/target.cc index 20b82dcf..838182c1 100644 --- a/re2-2014-12-09/target.cc +++ b/re2-2014-12-09/target.cc @@ -5,7 +5,7 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) { if (size < 3 || size > 64) return 0; - uint16_t f = (data[0] << 16) + data[1]; + uint16_t f = (data[0] << 8) + data[1]; RE2::Options opt; opt.set_log_errors(false); if (f & 1) opt.set_encoding(RE2::Options::EncodingLatin1);