fuzz: add a new fuzzer to test serialization/deserialization code (#1876)

Autodetecting the needed buffer size is quite complex (especially with
float/double values) so it is mandatory to properly check for
`ndpi_snprintf` truncation.
These issues have been undetected so far probably because the default
buffer is big enough for all common cases.

Add an example of usage of `ndpi_deserialize_clone_all()` (taken from
`ntopng`)
This commit is contained in:
Ivan Nardi
2023-01-27 07:09:18 +01:00
committed by GitHub
parent eea9956430
commit 6d00a9e0bd
144 changed files with 564 additions and 78 deletions
@@ -0,0 +1 @@
R�0-
@@ -0,0 +1 @@
�0�{Шp(�'}��F
@@ -0,0 +1 @@
ト���
@@ -0,0 +1 @@
„K!i @`¨1צְ ¨GH we<ׁ�7@¿|£�™׳:vה/א&mַ}§9‹ױ‘©צמ÷p%ײפ׳ױ
@@ -0,0 +1 @@
®0ПОЩ
@@ -0,0 +1,3 @@
ƒ
ú}ppú}
í_çƒÁa‘†¬]C%�
@@ -0,0 +1 @@
0�{�uLLLLLOLLLLLLL���
@@ -0,0 +1 @@
}怱縫児繝チa怠クtツリァ�Pィサル04
@@ -0,0 +1 @@
ヒc�
@@ -0,0 +1 @@
ƒΑa‘†¬D°�␍η½ Έ���«™=•;0izZXΩ™Κ6�ν_η�Υώ>ύh�{|4­¶^iW�δ �ρ€γƒΑa‘†¬]D° C%�
@@ -0,0 +1 @@
ًلل
@@ -0,0 +1 @@
}™†�…„D–u6ΤRώ�›«Η].…ηzρν
@@ -0,0 +1 @@
в„
@@ -0,0 +1 @@
�0+;;�I5j�@;x��m�
@@ -0,0 +1,2 @@
�
]C%�
@@ -0,0 +1 @@
;±e}û"�0ô{ëuêxn¸Ý‹cêÏé�ôÌ^šP*
@@ -0,0 +1 @@
乫�+
@@ -0,0 +1 @@
0�LLLLLL���
@@ -0,0 +1 @@
��!9��dD�D��]�4�}�
@@ -0,0 +1 @@
ゾC%�
@@ -0,0 +1 @@
0��
@@ -0,0 +1,2 @@
�
棏γャ]C%�
@@ -0,0 +1 @@
���
@@ -0,0 +1 @@
+�fン+

Some files were not shown because too many files have changed in this diff Show More