pidgin/pidgin

Add fuzzing support for some libpurple features
release-2.x.y
2021-06-24, Jordy Zomer <>
97c51d97d375
Add fuzzing support for some libpurple features

Testing Done:
Hi!

I built and tested all of these fuzzers for libpurple.

You can build them by first building pidgin/libpurple with `--enable-fuzzing` then going into `libpurple/tests` and run `make check`. After that you can run these fuzzers. With a dictionary if you want :)

for example:
```bash
$ ./fuzz_markup_strip_html -dict=dictionaries/html.dict
Dictionary: 465 entries
INFO: Seed: 2274862685
INFO: Loaded 1 modules (3 inline 8-bit counters): 3 [0x5a4ec0, 0x5a4ec3),
INFO: Loaded 1 PC tables (3 PCs): 3 [0x568ee8,0x568f18),
INFO: -max_len is not provided; libFuzzer will not generate inputs larger than 4096 bytes
INFO: A corpus is not provided, starting from an empty corpus
#2 INITED cov: 2 ft: 2 corp: 1/1b exec/s: 0 rss: 30Mb
#1048576 pulse cov: 2 ft: 2 corp: 1/1b lim: 4096 exec/s: 524288 rss: 789Mb
#2097152 pulse cov: 2 ft: 2 corp: 1/1b lim: 4096 exec/s: 524288 rss: 792Mb
```

Best Regards,

Jordy Zomer

Reviewed at https://reviews.imfreedom.org/r/760/
a3d157700972b48cf0a23b300261a5ab0c6e165b v2.10.5
4992bd90d8ad78ebdd324dd90d3e9d443f7dd002 v2.10.6
ad7e7fb98db3bbd7bf9ab49072fd34cd4fa25dd9 v2.10.7
5010e6877abce3bfc2a4912e6b38fed7d6d3df19 v2.10.8
9438f4b2904d9574b9e6ffba463d354b3661139f v2.10.9
b7fedd2a570b760f252cf8a65a584137ab0af2cb v2.10.10
e38a9aa5b1f8d25c58a0a7da05b386f265cba6e3 v2.10.11
2ac1dcb9eb2ef9907ae0894ffad0c0e1b2e10f7d v2.10.12
0b7591cc7360e3fc0f6ff44df7840a286ddcba74 v2.11.0
20d36ae525beecdde6440b15133bf606b951c019 v2.12.0
20d36ae525beecdde6440b15133bf606b951c019 v2.12.0
fdf2bf2cd647460a804eabe3394b5bdbfcc68425 v2.12.0
fdf2bf2cd647460a804eabe3394b5bdbfcc68425 v2.12.0
0241f07ed2bade22499c841b36fa5e7c6a35a358 v2.12.0
0462a04774f89525cf65fd260e7f34520bc886d1 v2.13.0
26920ccc9bd7c5a0fdb6a1b942bc463a88faf9cd v2.14.0
f902de8a1b5eac32c33c63c95b40693ba5c4aed8 v2.14.1
2eb25613d05484109b7bf904ea4eaf6c5b47ae87 v2.14.2
723c284ecfa1c1b4c738b280ac08c3cddfa75dcd v2.14.3
288a5b3e994fa2ef4236f33f0bfeb063c381a9ec v2.14.4
d66ac2eb5e7035a96b8b55defb15cef10b81609a v2.14.5