New issue
Advanced search Search tips
Starred by 2 users

Issue metadata

Status: Fixed
Closed: Aug 17
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 3
Type: Bug

issue 648042
issue 853195

Sign in to add a comment

Issue 853017: Add support for libprotobuf-mutator to Chrome OS

Reported by, Jun 14 2018 Project Member

Issue description

There is demand for tooling to write fuzzers that can produce data in a particular format, rather than the byte array produced by libFuzzer.

libprotobuf-mutator is a good tool for this.

It is used in Chromium for this purpose, but is not yet supported in Chromium OS.

Comment 1 by, Jun 14 2018

Blocking: 648042

Comment 2 by, Jun 14 2018

Components: Tools>ChromeOS-Toolchain
Labels: OS-Chrome

Comment 3 by, Jun 15 2018

Blocking: 853195

Comment 4 by, Jun 21 2018


Comment 5 by, Aug 2

Status: Assigned (was: Available)

Comment 6 by, Aug 16


Comment 7 by, Aug 16


Comment 8 by, Aug 16

Here is an initial ebuild:

Unfortunately a cmake bug in FindThreads related to cross compiling breaks it.

Comment 9 by, Aug 16

What error do you see?

I was able to build it for amd64-generic (compile only) but had to comment out all code trying to build tests.
src_install functions also need to be written to install the built libraries and header.
4.2 KB Download

Comment 10 by, Aug 16

I was able to work around the problem by setting:
I have uploaded a new patchset that works. I am still testing for arm though.

Comment 11 by, Aug 17

Project Member
The following revision refers to this bug:

commit 6a1593df5d2b6f967bfbc3b48da5c97158a62476
Author: Allen Webb <>
Date: Fri Aug 17 09:13:49 2018

libprotobuf-mutator: Add new ebuild.

libprotobuf-mutator implements custom mutators for protocol buffers
to enable fuzzing libraries to obtain higher coverage faster.

BUG= chromium:853017 
TEST=emerge-{BOARD} libprotobuf-mutator

Change-Id: I1521324ac263ffc19d375c4d65a567c75e16d283
Signed-off-by: Allen Webb <>
Reviewed-by: Manoj Gupta <>
Reviewed-by: Mike Frysinger <>


Comment 12 by, Aug 17

Status: Fixed (was: Assigned)

Comment 13 by, Aug 17

Thanks Allen!
I'll add something to the Chrome OS docs about this.

Sign in to add a comment