Mercurial > dropbear
annotate fuzzers_test.sh @ 1851:7f549ee3df48
Use HOME before /etc/passwd to find id_dropbear (#137)
Currently dbclient uses the value of HOME by default when looking for
~/.ssh/known_hosts, falling back to /etc/passwd if HOME is not set (so
that people can work around broken values in /etc/passwd).
However, when locating the default authentication key (defaults to
~/.ssh/id_dropbear), paths not starting with / are always prefixed with
the value from /etc/passwd.
Make the behaviour consistent by adjusting expand_homedir_path to use
the value of HOME, falling back to /etc/passwd if HOME is not set.
author | Matt Robinson <git@nerdoftheherd.com> |
---|---|
date | Tue, 19 Oct 2021 06:02:47 +0100 |
parents | fd00aeff38fd |
children |
rev | line source |
---|---|
1566 | 1 #!/bin/sh |
2 | |
3 # runs fuzz corpus with standalone fuzzers | |
4 | |
5 result=0 | |
6 | |
1737
8b27de2c92ee
Change secure.ucc.asn.au/hg to hg.ucc.asn.au
Matt Johnston <matt@ucc.asn.au>
parents:
1655
diff
changeset
|
7 test -d fuzzcorpus && hg --repository fuzzcorpus/ pull || hg clone https://hg.ucc.asn.au/dropbear-fuzzcorpus fuzzcorpus || exit 1 |
1566 | 8 for f in `make list-fuzz-targets`; do |
1808
42daf3044618
fuzz: split long argument list with xargs
Matt Johnston <matt@ucc.asn.au>
parents:
1737
diff
changeset
|
9 # use xargs to split the too-long argument list |
1809
fd00aeff38fd
fuzz: add -q quiet argument for standalone fuzzers.
Matt Johnston <matt@ucc.asn.au>
parents:
1808
diff
changeset
|
10 # -q quiet because travis has a logfile limit |
fd00aeff38fd
fuzz: add -q quiet argument for standalone fuzzers.
Matt Johnston <matt@ucc.asn.au>
parents:
1808
diff
changeset
|
11 echo fuzzcorpus/$f/* | xargs -n 1000 ./$f -q || result=1 |
1566 | 12 done |
13 | |
14 exit $result |