[lxc-devel] [lxc/lxc] dec648: oss-fuzz: make it possible to build the fuzzer wit...

Christian Brauner noreply at github.com
Fri Mar 26 14:35:56 UTC 2021


  Branch: refs/heads/master
  Home:   https://github.com/lxc/lxc
  Commit: dec64820a3859b1943c521682aacc2f77751b39d
      https://github.com/lxc/lxc/commit/dec64820a3859b1943c521682aacc2f77751b39d
  Author: Evgeny Vereshchagin <evvers at ya.ru>
  Date:   2021-03-26 (Fri, 26 Mar 2021)

  Changed paths:
    A src/tests/fuzz-lxc-config-read.c
    A src/tests/oss-fuzz.sh

  Log Message:
  -----------
  oss-fuzz: make it possible to build the fuzzer without docker

With this patch applied the fuzz target can be built (with ASan)
and run with
```
./src/tests/oss-fuzz.sh
./out/fuzz-lxc-config-read doc/examples/
```

https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=32475 can be
reproduced by running
```
$ echo "lxc.console.buffer.size=d" >oss-fuzz-32475
$ ./out/fuzz-lxc-config-read ./oss-fuzz-32475
INFO: Seed: 1044753468
INFO: Loaded 1 modules   (18770 inline 8-bit counters): 18770 [0x883cc0, 0x888612),
INFO: Loaded 1 PC tables (18770 PCs): 18770 [0x888618,0x8d1b38),
./out/fuzz-lxc-config-read: Running 1 inputs 1 time(s) each.
Running: oss-fuzz-32475
=================================================================
==2052097==ERROR: AddressSanitizer: stack-buffer-overflow on address 0x7ffcca063e7f at pc 0x000000659e0d bp 0x7ffcca063e30 sp 0x7ffcca063e28
READ of size 1 at 0x7ffcca063e7f thread T0
...
```

I'll point OSS-Fuzz to the build script once this patch is merged.

Signed-off-by: Evgeny Vereshchagin <evvers at ya.ru>


  Commit: e50319aaaf6df3c349a90893a2682d14f35cf6cf
      https://github.com/lxc/lxc/commit/e50319aaaf6df3c349a90893a2682d14f35cf6cf
  Author: Christian Brauner <christian.brauner at ubuntu.com>
  Date:   2021-03-26 (Fri, 26 Mar 2021)

  Changed paths:
    A src/tests/fuzz-lxc-config-read.c
    A src/tests/oss-fuzz.sh

  Log Message:
  -----------
  Merge pull request #3733 from evverx/move-from-oss-fuzz

oss-fuzz: make it possible to build the fuzzer without docker


Compare: https://github.com/lxc/lxc/compare/6a3b579505dc...e50319aaaf6d


More information about the lxc-devel mailing list