Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(193)

Side by Side Diff: testing/libfuzzer/fuzzers/icu_uregex_open_fuzzer.cc

Issue 1636823002: [libfuzzer] fuzzer for uregex_open from third_party/icu implemented (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « testing/libfuzzer/fuzzers/BUILD.gn ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include <stdint.h>
6
7 #include "third_party/icu/source/i18n/unicode/regex.h"
8
9 // Entry point for LibFuzzer.
10 extern "C" int LLVMFuzzerTestOneInput(const unsigned char* data, size_t size) {
11 UParseError pe = { 0 };
12 UErrorCode status = U_ZERO_ERROR;
13 URegularExpression* re = uregex_open(reinterpret_cast<const UChar*>(data),
14 size / sizeof(UChar),
15 0, &pe, &status);
16 if (re)
17 uregex_close(re);
18
19 return 0;
20 }
OLDNEW
« no previous file with comments | « testing/libfuzzer/fuzzers/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698