2019-10-26 09:02:05 +02:00
|
|
|
package jsn
|
|
|
|
|
2019-10-27 06:52:48 +01:00
|
|
|
import (
|
|
|
|
"testing"
|
|
|
|
)
|
2019-10-26 09:02:05 +02:00
|
|
|
|
|
|
|
func TestFuzzCrashers(t *testing.T) {
|
|
|
|
var crashers = []string{
|
|
|
|
"00\"0000\"0{",
|
|
|
|
"6\",\n\t\t\t\"something\": " +
|
|
|
|
"null\n\t\t},\n\t\t{\n\t\t\t\"id" +
|
|
|
|
"\": 12,\n\t\t\t\"full_name" +
|
|
|
|
"\": \"Brenton Bauch Ph" +
|
|
|
|
"D\",\n\t\t\t\"email\": \"ren" +
|
|
|
|
"ee@miller.co\",\n\t\t\t\"_" +
|
|
|
|
"_twitter_id\": 1\n\t\t}," +
|
|
|
|
"\n\t\t{\n\t\t\t\"id\": 13,\n\t\t" +
|
|
|
|
"\t\"full_name\": \"Daine" +
|
|
|
|
" Gleichner\",\n\t\t\t\"ema" +
|
|
|
|
"il\": \"andrea@gmail.c" +
|
|
|
|
"om\",\n\t\t\t\"__twitter_i" +
|
|
|
|
"d\": \"\",\n\t\t\t\"id__twit" +
|
|
|
|
"ter_id\": \"NOOO\",\n\t\t\t" +
|
|
|
|
"\"work_email\": \"andre" +
|
|
|
|
"a@nienow.co\"\n\t\t}\n\t]}" +
|
|
|
|
"\n\t}",
|
|
|
|
"0000\"0000\"0{",
|
|
|
|
"0000\"\"{",
|
|
|
|
"0000\"000\"{",
|
|
|
|
"0\"\"{",
|
|
|
|
"\"0\"{",
|
|
|
|
"000\"0\"{",
|
|
|
|
"0\"0000\"0{",
|
|
|
|
"000\"\"{",
|
|
|
|
"0\"00\"{",
|
|
|
|
"000\"0000\"0{",
|
|
|
|
"000\"00\"{",
|
|
|
|
"\"\"{",
|
|
|
|
"0\"0000\"{",
|
|
|
|
"\"000\"00{",
|
|
|
|
"0000\"00\"{",
|
|
|
|
"00\"0\"{",
|
|
|
|
"0\"0\"{",
|
|
|
|
"000\"0000\"{",
|
|
|
|
"00\"0000\"{",
|
|
|
|
"0000\"0000\"{",
|
|
|
|
"\"000\"{",
|
|
|
|
"00\"00\"{",
|
|
|
|
"00\"0000\"00{",
|
|
|
|
"0\"0000\"00{",
|
|
|
|
"00\"\"{",
|
|
|
|
"0000\"0\"{",
|
|
|
|
"000\"000\"{",
|
|
|
|
"\"00000000\"{",
|
|
|
|
}
|
|
|
|
|
|
|
|
for _, f := range crashers {
|
2019-11-28 07:25:46 +01:00
|
|
|
_ = unifiedTest([]byte(f))
|
2019-10-26 09:02:05 +02:00
|
|
|
}
|
|
|
|
}
|