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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
144 changed files with 564 additions and 78 deletions

View file

@ -0,0 +1 @@
R<EFBFBD>0-

View file

@ -0,0 +1 @@
<0F>0<EFBFBD>{Шp(<28>'}<7D><>F

View file

@ -0,0 +1 @@
<EFBFBD><EFBFBD><EFBFBD>

View file

@ -0,0 +1 @@
<EFBFBD>

View file

@ -0,0 +1 @@
„K!i @`¨1צְ ¨GH we<ׁ<>7@¿<>׳:vה/א&mַ}§9ױ©צמ÷p%ײפ׳ױ

View file

@ -0,0 +1 @@
®0ПОЩ

View file

@ -0,0 +1,3 @@
ƒ
ú}ppú}
í_çƒÁa†¬]C%<25>

View file

@ -0,0 +1 @@
0<>{<7B>uLLLLLOLLLLLLL<4C><4C><EFBFBD>

View file

@ -0,0 +1 @@
}怱縫児繝チa怠クtツリァ<EFBE98>Pィサル04

View file

@ -0,0 +1 @@
<EFBFBD>c<EFBFBD>

View file

@ -0,0 +1 @@
ƒΑa†¬D°<14> η½ Έ<07><><EFBFBD>«™=•;0izZXΩ™Κ6<>ν<5F>Υώ>ύh<CF8D>{|4­^iW<69>δ <>ρ€γƒΑa†¬]D° C%<25>

View file

@ -0,0 +1 @@
}™†<E284A2>…„Du6ΤRώ<>›«Η].…ηzρν

View file

@ -0,0 +1 @@
в„

View file

@ -0,0 +1 @@
<0F>0+;;<3B>I5j<35>@;x<><08>m<EFBFBD>

View file

@ -0,0 +1,2 @@
<EFBFBD>
]C%<25>

View file

@ -0,0 +1 @@
e}û"<0F>0ô{ëuêxn¸ÝcêÏé<C38F>ôÌ^šP*

View file

@ -0,0 +1 @@
<EFBFBD>+

View file

@ -0,0 +1 @@
0<>LLLLLL<4C><4C><EFBFBD>

View file

@ -0,0 +1 @@
<EFBFBD><EFBFBD>!9<><39>dD<>D<EFBFBD><44>]<5D>4<EFBFBD>}<7D>

View file

@ -0,0 +1 @@
<EFBFBD>]C%<25>

View file

@ -0,0 +1 @@
0ォレ

View file

@ -0,0 +1,2 @@
<EFBFBD>
<EFBFBD>]C%<25>

View file

@ -0,0 +1 @@
παώπ

View file

@ -0,0 +1 @@
+<13>fン+

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