How to make a libFuzzer fuzzer in V8

47 views
Skip to first unread message

u areu

unread,
Oct 25, 2023, 10:41:47 AM10/25/23
to v8-dev
Hi, I'm following https://source.chromium.org/chromium/chromium/src/+/main:v8/test/fuzzer/
try to build wasm_code fuzzer. 
I can run 
`
ninja -C out/fuzz wasm_code_fuzzer
`
but only generated wasm-code.o, no executable binary. 
Is there any missing? Even I add `use_libfuzzer=true` to args.gn.


Matthias Liedtke

unread,
Oct 25, 2023, 10:58:44 AM10/25/23
to v8-...@googlegroups.com
Hi,

Assuming that you use the v8 repository (not chromium, targets might be slightly different there):
You should be able to build it with autoninja -C out/fuzz v8_simple_wasm_code_fuzzer

Best regards,
Matthias

--
--
v8-dev mailing list
v8-...@googlegroups.com
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to v8-dev+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/v8-dev/f2b832e4-cc9e-414b-a815-8263d7a31ec6n%40googlegroups.com.


--

Matthias Liedtke

Software Engineer

mlie...@google.com


Google Germany GmbH

Erika-Mann-Straße 33

80636 München


Geschäftsführer: Paul Manicle, Liana Sebastian

Registergericht und -nummer: Hamburg, HRB 86891

Sitz der Gesellschaft: Hamburg


Diese E-Mail ist vertraulich. Falls Sie diese fälschlicherweise erhalten haben sollten, leiten Sie diese bitte nicht an jemand anderes weiter, löschen Sie alle Kopien und Anhänge davon und lassen Sie mich bitte wissen, dass die E-Mail an die falsche Person gesendet wurde. 

     

This e-mail is confidential. If you received this communication by mistake, please don't forward it to anyone else, please erase all copies and attachments, and please let me know that it has gone to the wrong person.


Clemens Backes

unread,
Oct 25, 2023, 11:07:59 AM10/25/23
to v8-...@googlegroups.com
Note though that the "simple" fuzzers you can compile in V8 do not have libfuzzer support. They can only run already-generated inputs.

Libfuzzer is only supported in a chromium checkout. You can build the v8 fuzzers like "v8_wasm_code_fuzzer" or "v8_wasm_compile_fuzzer" there.



--

Clemens Backes

Software Engineer

clem...@google.com

Google Germany GmbH

Erika-Mann-Straße 33

80636 München


Geschäftsführer: Paul Manicle, Liana Sebastian   

Registergericht und -nummer: Hamburg, HRB 86891

Sitz der Gesellschaft: Hamburg


Diese E-Mail ist vertraulich. Falls sie diese fälschlicherweise erhalten haben sollten, leiten Sie diese bitte nicht an jemand anderes weiter, löschen Sie alle Kopien und Anhänge davon und lassen Sie mich bitte wissen, dass die E-Mail an die falsche Person gesendet wurde.

u areu

unread,
Oct 25, 2023, 7:10:32 PM10/25/23
to v8-dev
thanks

u areu

unread,
Oct 25, 2023, 7:14:03 PM10/25/23
to v8-dev
I can build v8_simple_wasm_code_fuzzer , but it seems v8_simple_wasm_code_fuzzer can't work like libfuzzer. Ok, libfuzzer no supported in v8 repo. 
I will build v8 fuzzer in chromium. 

Thanks.

Reply all
Reply to author
Forward
0 new messages