Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f0b8122a authored by Michael Ensing's avatar Michael Ensing
Browse files

Add fuzzers for 10 libosi components



Added fuzzers, most of which may be run either on host or on device.
Note that coverage will differ based on arch. Additionally, alarm
will not successfully run on host due to the reliance on hooking
system functions, and compat may not be useful on-device, as libosi's
compat.h function definitions, and therefore the fuzzer calls, are
wrapped in an '#if __GLIBC__'.

Test: Tested on a Pixel 3a with no starting corpus and a short run,
      resulting in the following statistics:
          - alarm                   15% cov     ~280  exec/s
          - allocation_tracker:     61% cov     ~2.5k exec/s
          - allocator:              34% cov     ~24k  exec/s
          - array:                  22% cov     ~16k  exec/s
          - buffer:                 22% cov     ~26k  exec/s
          - compat:                 N/A         N/A
          - fixed_queue:            45% cov     ~8k   exec/s
          - future                  22% cov     ~83k  exec/s
          - list                    46% cov     ~21k  exec/s
          - ringbuffer              38% cov     ~20k  exec/s

Signed-off-by: default avatarMichael Ensing <michael.ensing@leviathansecurity.com>
Change-Id: I9203c804941beaa470940452f39bf352d725eb02
parent c5ca7d3a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment