We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 106271b commit 1310563Copy full SHA for 1310563
fuzz.go
@@ -0,0 +1,18 @@
1
+// +build gofuzz
2
+
3
+package php_session_decoder
4
5
+// import (
6
+// // "bytes"
7
+// )
8
9
+func Fuzz(data []byte) int {
10
+ decoder := NewPhpDecoder(string(data))
11
+ _, err := decoder.Decode()
12
13
+ if err != nil {
14
+ return 0
15
+ }
16
17
+ return 1
18
+}
fuzz_test.go
@@ -0,0 +1,20 @@
+import (
+ "testing"
+)
+func TestFuzzCrashers(t *testing.T) {
+ var crashers = []string{
+ "|C2984619140625:",
+ "|C9478759765625:",
+ "|C :590791705756156:",
+ "|C298461940625:",
+ for _, f := range crashers {
+ decoder := NewPhpDecoder(f)
+ decoder.Decode()
19
20
0 commit comments