aboutsummaryrefslogtreecommitdiffstats
path: root/prog/encodingexec_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'prog/encodingexec_test.go')
-rw-r--r--prog/encodingexec_test.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/prog/encodingexec_test.go b/prog/encodingexec_test.go
index 06265fa76..92c36cad4 100644
--- a/prog/encodingexec_test.go
+++ b/prog/encodingexec_test.go
@@ -381,6 +381,15 @@ func TestSerializeForExec(t *testing.T) {
},
nil,
},
+ {
+ // NULL pointer must be encoded os 0.
+ "syz_test$opt1(0x0)",
+ []uint64{
+ callID("syz_test$opt1"), ExecNoCopyout, 1, execArgConst, 8, 0,
+ execInstrEOF,
+ },
+ nil,
+ },
}
buf := make([]byte, ExecBufferSize)