Commit 186d4204 authored by Tim Rühsen's avatar Tim Rühsen 🛠

Improve fuzzing

parent a12e5f76
......@@ -23,7 +23,7 @@ make clean
make -j$(nproc)
cd fuzz
# build and run libpsl_fuzzer
# build and run fuzzer
./run-clang.sh libidn2_to_ascii_8z_fuzzer
```
......
......@@ -19,11 +19,11 @@
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
* DEALINGS IN THE SOFTWARE.
*
* This file is part of libpsl.
* This file is part of libidn2.
*/
#include <stddef.h> // size_t
#include <stdint.h> // uint8_t
#include <stddef.h> /* size_t */
#include <stdint.h> /* uint8_t */
#ifdef __cplusplus
extern "C"
......
#!/bin/sh -eu
if $(grep -q '^#define WITH_LIBIDN2 1' ../config.h); then RUNTIME="_idn2";
elif $(grep -q '^#define WITH_LIBIDN 1' ../config.h); then RUNTIME="_idn";
elif $(grep -q '^#define WITH_LIBICU 1' ../config.h); then RUNTIME="_icu";
else RUNTIME=""; fi
for fuzzer in libpsl${RUNTIME}*_fuzzer; do
./get_ossfuzz_corpora $fuzzer
for fuzzer in *_fuzzer.c; do
echo ./get_ossfuzz_corpora $(basename $fuzzer .c)
done
......@@ -16,7 +16,7 @@
if test -z "$1"; then
echo "Usage: $0 <fuzzer target>"
echo "Example: $0 libpsl_fuzzer"
echo "Example: $0 libidn2_to_ascii_8z_fuzzer"
exit 1
fi
......
H鴔qqqqq行行行行行行行行行行行行行行行行行行*行行行行行行行行行K
\ No newline at end of file
.Х.3.َ.Х.3.ََ)َََ)َ)Х.3.ََ)َ).3.َ.Х.3.ََ)َ)Х.3.ََ)َ)ََ.َ)ََ.)Х.3.ََ)َ).3.َ.Х.3.ََ)َ)Х.3.ََ)َ)ََ.3.َ.Х.3.ََ)َ)Х.3.ََ)َ)ََ.َ)ََ.)Х.3.ََ)َ).َ)ََ.
\ No newline at end of file
.3ََ)َ)َ3ََ)َ)َََ)َ)َ3')َ3ََ)َ)َََ)َ)َ3ََ)َ)َََ)َ))َ3ََ)َ)َََ)َ)َ3')َ3ََ)َ)َََ)َ)َ3ََ)َ)َََ)َ)َ**
\ No newline at end of file
a͏͏͏٧͏͏͏a͏͏͏٧͏͏͏͏͏͏͏͏͏͏͏͏͏x͏͏͏͏͏͏͏͏͏͏
\ No newline at end of file
.َ)ِ)ِ)Ǟ.;ََ)ِ,.;ََ)ِ)ǎ)ǎ,
\ No newline at end of file
xn:--XNx-0ß).n:`ё-n:nn
\ No newline at end of file
!̀̀̀̀̀̀̀!ŀ̀̀̀=
ŀ̀̀̀-
ŀ̀̀̀?
=
!ŀ=
!ŀ̀ŀ?
=
!ŀ=
̀̀=
ŀ̀̀̀=
ŀ̀րς?
=ŀ̀̀̀=
ŀ̀̀̀?
=
!ŀ==
̀=
=
ŀ̀̀̀̀̀
!ŀ̀ŀ?
=
!ŀ=
!̀̀?
=
!ŀ=
!ŀ̀ŀ?
=
!ŀ=
̀̀=
ŀ̀̀̀=
ŀ̀րς?
=ŀ̀̀̀=
ŀ̀̀̀?
=̀=
!ŀ=
!ŀ̀ŀ?
=
!ŀ=
!ŀŀ̀̀ŀ̀րς?
=ŀ̀̀̀=
ŀ̀̀̀?
=
!ŀ=
!ŀ̀ŀ?
=
!ŀ=
!ŀ
̀ŀ̀̀=
̀=
̀̀̀?
=
!ŀŀ̀̀ŀ
\ No newline at end of file
・・・・・・・・
\ No newline at end of file
.3ََ)َ3ََ)َ).;َٞ)َِ*).;َٞ)َِ*)ǎ,
\ No newline at end of file
.ٮ2nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnmmmmmmmmmm.ٮ.)ٮ.XXXXXXXXXXXXXXXXXXXXXXnnnXXXXXXXXXXXXXXnnXXXXXXmmmmmm.ٮ.)ٮ.XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXnnnnnnnnnnnnnXXXmmmmmmm'ٮ.XXXnnX.XnXXXXXٮ.)nnXݮ.
\ No newline at end of file
ٮ.ݮ.ٮ.ٮ.ٮ.ݮ.ٮ.ٮ.ٮ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*.ǎِ)ǎ,ǎ,
\ No newline at end of file
!ŀ̀̀̀=
ŀ̀̀̀-
ŀ=
̀̀=
ŀ̀̀̀=
ŀ̀րς?
=ŀ̀̀̀=
ŀ̀̀̀?
=
!ŀ=
!ŀ̀ŀ?
=
!ŀ=
!̀̀?
=
!ŀ=
!ŀ̀ŀ?
=
!ŀ=
̀̀=
ŀ̀̀̀=
ŀ̀րς?
=ŀ̀̀̀=
ŀ̀̀̀?
=
!ŀ=
!ŀ̀ŀ?
=
!ŀ=
!ŀŀ̀̀ŀ̀րς?
=ŀ̀̀̀=
ŀ̀̀̀?
=
!ŀ=
!ŀ̀ŀ?
=
!ŀ=
!ŀŀ̀̀̀=
̀̀̀?
=
!ŀŀ̀̀ŀ̀րς?
=ŀ̀̀̀?
=
!ŀ=
!ŀ̀ŀ?
=
!ŀ=
̀̀=
ŀ̀̀̀=
ŀ̀րς?
=ŀ̀̀̀=
ŀ̀̀̀?
=
!ŀ=
!ŀ̀ŀ?
=
!ŀ=
!̀̀?
=
!ŀ=
!ŀ̀ŀ?
=
!ŀ=
̀̀=
ŀ̀̀̀=
ŀ̀րς?
=ŀ̀̀̀=
ŀ̀̀̀?
=
!ŀ=
!ŀ̀ŀ?
=
!ŀ=
!ŀŀ̀̀ŀ̀րς?
=ŀ̀̀̀=
ŀ̀̀̀?