2
0
mirror of git://github.com/lxc/lxc synced 2025-09-05 03:29:33 +00:00

fuzz: create tmpfiles in /tmp

It's mostly a cosmetic change that should prevent the fuzzer
from cluttering the "$OUT" directory (which OSS-Fuzz uses to
build docker images):

```
Step #44: Already have image: gcr.io/oss-fuzz/lxc
Step #44:   adding: fuzz-lxc-config-read (deflated 67%)
Step #44:   adding: fuzz-lxc-config-read-WBWKxN (deflated 32%)
Step #44:   adding: fuzz-lxc-config-read_seed_corpus.zip (stored 0%)
Step #44:   adding: honggfuzz (deflated 66%)
Step #44:   adding: llvm-symbolizer (deflated 65%)
```

Signed-off-by: Evgeny Vereshchagin <evvers@ya.ru>
This commit is contained in:
Evgeny Vereshchagin
2021-03-26 05:03:06 +00:00
parent 647d0e011a
commit f329f022a9

View File

@@ -10,7 +10,7 @@
int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
int fd = -1;
char tmpf[] = "fuzz-lxc-config-read-XXXXXX";
char tmpf[] = "/tmp/fuzz-lxc-config-read-XXXXXX";
struct lxc_conf *conf = NULL;
fd = lxc_make_tmpfile(tmpf, false);