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

Issue 2812503002: Initialize ICU before fuzzing the template URL parser. (Closed)

Created:
3 years, 8 months ago by dominicc (has gone to gerrit)
Modified:
3 years, 8 months ago
CC:
chromium-reviews, fuzzing_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Initialize ICU before fuzzing the template URL parser. BUG=709449 Review-Url: https://codereview.chromium.org/2812503002 Cr-Commit-Position: refs/heads/master@{#463243} Committed: https://chromium.googlesource.com/chromium/src/+/4feb2b85c555d8279df7477b7f418aa0a1556790

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -0 lines) Patch
M testing/libfuzzer/fuzzers/BUILD.gn View 1 chunk +2 lines, -0 lines 0 comments Download
M testing/libfuzzer/fuzzers/template_url_parser_fuzzer.cc View 2 chunks +4 lines, -0 lines 1 comment Download

Messages

Total messages: 16 (10 generated)
dominicc (has gone to gerrit)
PTAL
3 years, 8 months ago (2017-04-10 05:38:50 UTC) #4
inferno
lgtm
3 years, 8 months ago (2017-04-10 13:30:49 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2812503002/1
3 years, 8 months ago (2017-04-10 13:31:05 UTC) #10
commit-bot: I haz the power
Committed patchset #1 (id:1) as https://chromium.googlesource.com/chromium/src/+/4feb2b85c555d8279df7477b7f418aa0a1556790
3 years, 8 months ago (2017-04-10 13:35:38 UTC) #13
jochen (gone - plz use gerrit)
https://codereview.chromium.org/2812503002/diff/1/testing/libfuzzer/fuzzers/template_url_parser_fuzzer.cc File testing/libfuzzer/fuzzers/template_url_parser_fuzzer.cc (right): https://codereview.chromium.org/2812503002/diff/1/testing/libfuzzer/fuzzers/template_url_parser_fuzzer.cc#newcode40 testing/libfuzzer/fuzzers/template_url_parser_fuzzer.cc:40: base::i18n::InitializeICU(); for posterity, we can't initialize ICU once per ...
3 years, 8 months ago (2017-04-18 07:08:57 UTC) #15
kcc2
3 years, 8 months ago (2017-04-18 16:07:51 UTC) #16
Message was sent while issue was closed.
On 2017/04/18 07:08:57, jochen wrote:
>
https://codereview.chromium.org/2812503002/diff/1/testing/libfuzzer/fuzzers/t...
> File testing/libfuzzer/fuzzers/template_url_parser_fuzzer.cc (right):
> 
>
https://codereview.chromium.org/2812503002/diff/1/testing/libfuzzer/fuzzers/t...
> testing/libfuzzer/fuzzers/template_url_parser_fuzzer.cc:40:
> base::i18n::InitializeICU();
> for posterity, we can't initialize ICU once per fuzzer run, instead, we should
> add a function extern "C" int LLVMFuzzerInitialize(int* argc, char*** argv)
that
> initializes ICU

you may also use 
static int Initialized = InitializeMe() inside the fuzz target
(LLVMFuzzerTestOneInput).
In fact, I typically recommend this way over LLVMFuzzerInitialize
(use LLVMFuzzerInitialize only when you need to capture argv)

Powered by Google App Engine
This is Rietveld 408576698