Commit 10108a04 authored by Anand K. Mistry's avatar Anand K. Mistry Committed by Commit Bot

Add a seed corpus for the compact_enc_det fuzzer.

Also resolve a couple of post-submit comments from adding the fuzzer.

BUG=None

Change-Id: I3327e4282903907bd6b1cc8df133fe076398ee59
Reviewed-on: https://chromium-review.googlesource.com/c/1345372
Commit-Queue: Anand Mistry <amistry@chromium.org>
Reviewed-by: default avatarMax Moroz <mmoroz@chromium.org>
Reviewed-by: default avatarJungshik Shin <jshin@chromium.org>
Cr-Commit-Position: refs/heads/master@{#610524}
parent 9de4dc8e
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
# Use of this source code is governed by a BSD-style license that can be # Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file. # found in the LICENSE file.
import("//testing/test.gni")
import("//testing/libfuzzer/fuzzer_test.gni") import("//testing/libfuzzer/fuzzer_test.gni")
import("//testing/test.gni")
config("ced_config") { config("ced_config") {
include_dirs = [ "src" ] include_dirs = [ "src" ]
...@@ -106,4 +106,5 @@ fuzzer_test("compact_enc_det_fuzzer") { ...@@ -106,4 +106,5 @@ fuzzer_test("compact_enc_det_fuzzer") {
":ced", ":ced",
"//base/test:test_support", "//base/test:test_support",
] ]
seed_corpus = "compact_enc_det_corpus"
} }
The quick brown fox jumps over the lazy dog.
.
The quick brown fox jumps over the lazy dog.
.
The quick brown fox jumps over the lazy dog.
.
The quick brown fox jumps over the lazy dog.
.
The quick brown fox jumps over the lazy dog.
.
The quick brown fox jumps over the lazy dog.
The quick brown fox jumps over the lazy dog.
The quick brown fox jumps over the lazy dog.
The quick brown fox jumps over the lazy dog.
The quick brown fox jumps over the lazy dog.
The quick brown fox jumps over the lazy dog.
The quick brown fox jumps over the lazy dog.
The quick brown fox jumps over the lazy dog.
The quick brown fox jumps over the lazy dog.
The quick brown fox jumps over the lazy dog.
Le renard brun rapide saute par-dessus le chien paresseux.
Le renard brun rapide saute par-dessus le chien paresseux.
Le renard brun rapide saute par-dessus le chien paresseux.
Le renard brun rapide saute par-dessus le chien paresseux.
Le renard brun rapide saute par-dessus le chien paresseux.
Le renard brun rapide saute par-dessus le chien paresseux.
Le renard brun rapide saute par-dessus le chien paresseux.
Le renard brun rapide saute par-dessus le chien paresseux.
Le renard brun rapide saute par-dessus le chien paresseux.
Le renard brun rapide saute par-dessus le chien paresseux.
Η γρήγορη καφέ αλεπού πηδάει πάνω από το τεμπέλικο σκυλί.
Η γρήγορη καφέ αλεπού πηδάει πάνω από το τεμπέλικο σκυλί.
Η γρήγορη καφέ αλεπού πηδάει πάνω από το τεμπέλικο σκυλί.
Η γρήγορη καφέ αλεπού πηδάει πάνω από το τεμπέλικο σκυλί.
Η γρήγορη καφέ αλεπού πηδάει πάνω από το τεμπέλικο σκυλί.
Η γρήγορη καφέ αλεπού πηδάει πάνω από το τεμπέλικο σκυλί.
Η γρήγορη καφέ αλεπού πηδάει πάνω από το τεμπέλικο σκυλί.
Η γρήγορη καφέ αλεπού πηδάει πάνω από το τεμπέλικο σκυλί.
Η γρήγορη καφέ αλεπού πηδάει πάνω από το τεμπέλικο σκυλί.
Η γρήγορη καφέ αλεπού πηδάει πάνω από το τεμπέλικο σκυλί.
The quick brown fox jumps over the lazy dog.
.
The quick brown fox jumps over the lazy dog.
.
The quick brown fox jumps over the lazy dog.
.
The quick brown fox jumps over the lazy dog.
.
The quick brown fox jumps over the lazy dog.
.
クイックブラウンキツネは怠惰な犬の上を飛びます。
クイックブラウンキツネは怠惰な犬の上を飛びます。
クイックブラウンキツネは怠惰な犬の上を飛びます。
クイックブラウンキツネは怠惰な犬の上を飛びます。
クイックブラウンキツネは怠惰な犬の上を飛びます。
クイックブラウンキツネは怠惰な犬の上を飛びます。
クイックブラウンキツネは怠惰な犬の上を飛びます。
クイックブラウンキツネは怠惰な犬の上を飛びます。
クイックブラウンキツネは怠惰な犬の上を飛びます。
クイックブラウンキツネは怠惰な犬の上を飛びます。
Bクイックブラウンキツネは怠惰な犬の上を飛びます。 Bクイックブラウンキツネは怠惰な犬の上を飛びます。
The quick brown fox jumps over the lazy dog.
$B%/%$%C%/%V%i%&%s%-%D%M$OBUBF$J8$$N>e$rHt$S$^$9!#(B
The quick brown fox jumps over the lazy dog.
$B%/%$%C%/%V%i%&%s%-%D%M$OBUBF$J8$$N>e$rHt$S$^$9!#(B
The quick brown fox jumps over the lazy dog.
$B%/%$%C%/%V%i%&%s%-%D%M$OBUBF$J8$$N>e$rHt$S$^$9!#(B
The quick brown fox jumps over the lazy dog.
$B%/%$%C%/%V%i%&%s%-%D%M$OBUBF$J8$$N>e$rHt$S$^$9!#(B
The quick brown fox jumps over the lazy dog.
$B%/%$%C%/%V%i%&%s%-%D%M$OBUBF$J8$$N>e$rHt$S$^$9!#(B
The quick brown fox jumps over the lazy dog.
빠른 갈색 여우는 게으른 개를 뛰어 넘습니다.
The quick brown fox jumps over the lazy dog.
빠른 갈색 여우는 게으른 개를 뛰어 넘습니다.
The quick brown fox jumps over the lazy dog.
빠른 갈색 여우는 게으른 개를 뛰어 넘습니다.
The quick brown fox jumps over the lazy dog.
빠른 갈색 여우는 게으른 개를 뛰어 넘습니다.
The quick brown fox jumps over the lazy dog.
빠른 갈색 여우는 게으른 개를 뛰어 넘습니다.
The quick brown fox jumps over the lazy dog.
.
The quick brown fox jumps over the lazy dog.
.
The quick brown fox jumps over the lazy dog.
.
The quick brown fox jumps over the lazy dog.
.
The quick brown fox jumps over the lazy dog.
.
El zorro marrón rápido salta sobre el perro perezoso.
El zorro marrón rápido salta sobre el perro perezoso.
El zorro marrón rápido salta sobre el perro perezoso.
El zorro marrón rápido salta sobre el perro perezoso.
El zorro marrón rápido salta sobre el perro perezoso.
El zorro marrón rápido salta sobre el perro perezoso.
El zorro marrón rápido salta sobre el perro perezoso.
El zorro marrón rápido salta sobre el perro perezoso.
El zorro marrón rápido salta sobre el perro perezoso.
El zorro marrón rápido salta sobre el perro perezoso.
The quick brown fox jumps over the lazy dog.
Ҩ駨͡չӵšⴴҢ¨
The quick brown fox jumps over the lazy dog.
Ҩ駨͡չӵšⴴҢ¨
The quick brown fox jumps over the lazy dog.
Ҩ駨͡չӵšⴴҢ¨
The quick brown fox jumps over the lazy dog.
Ҩ駨͡չӵšⴴҢ¨
The quick brown fox jumps over the lazy dog.
Ҩ駨͡չӵšⴴҢ¨
The very quick brown fox jumps over the lazy dog.
Con co mu nu rt nhanh chng nhay qua con ch li.
The very quick brown fox jumps over the lazy dog.
Con co mu nu rt nhanh chng nhay qua con ch li.
The very quick brown fox jumps over the lazy dog.
Con co mu nu rt nhanh chng nhay qua con ch li.
The very quick brown fox jumps over the lazy dog.
Con co mu nu rt nhanh chng nhay qua con ch li.
The very quick brown fox jumps over the lazy dog.
Con co mu nu rt nhanh chng nhay qua con ch li.
The quick brown fox jumps over the lazy dog.
敏捷的棕色狐狸跳過了懶狗。
The quick brown fox jumps over the lazy dog.
敏捷的棕色狐狸跳過了懶狗。
The quick brown fox jumps over the lazy dog.
敏捷的棕色狐狸跳過了懶狗。
The quick brown fox jumps over the lazy dog.
敏捷的棕色狐狸跳過了懶狗。
The quick brown fox jumps over the lazy dog.
敏捷的棕色狐狸跳過了懶狗。
The quick brown fox jumps over the lazy dog.
敏捷的棕色狐狸跳过了懒狗。
The quick brown fox jumps over the lazy dog.
敏捷的棕色狐狸跳过了懒狗。
The quick brown fox jumps over the lazy dog.
敏捷的棕色狐狸跳过了懒狗。
The quick brown fox jumps over the lazy dog.
敏捷的棕色狐狸跳过了懒狗。
The quick brown fox jumps over the lazy dog.
敏捷的棕色狐狸跳过了懒狗。
...@@ -12,6 +12,11 @@ ...@@ -12,6 +12,11 @@
extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) { extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
// Early out if there isn't enough data to extract options and pass data to
// the library.
if (size < 3 * sizeof(int32_t) + 1)
return 0;
base::FuzzedDataProvider data_provider(data, size); base::FuzzedDataProvider data_provider(data, size);
CompactEncDet::TextCorpusType corpus = CompactEncDet::TextCorpusType corpus =
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment