prevent decoders from returning empty NALUs (bluenviron/mediamtx#4346) (#726)

This commit is contained in:
Alessandro Ros
2025-03-22 22:45:54 +01:00
committed by GitHub
parent b6d6f6bf37
commit fa94080e84
44 changed files with 191 additions and 112 deletions

View File

@@ -0,0 +1,5 @@
go test fuzz v1
[]byte("8")
bool(false)
[]byte("0")
bool(true)

View File

@@ -0,0 +1,5 @@
go test fuzz v1
[]byte("0")
bool(false)
[]byte("\x00\x00\x00\x01")
bool(false)

View File

@@ -1,3 +1,5 @@
go test fuzz v1
[]byte("800")
bool(false)
[]byte("0")
bool(true)

View File

@@ -1,3 +0,0 @@
go test fuzz v1
[]byte("0")
[]byte("8\x00\x000")

View File

@@ -1,3 +1,5 @@
go test fuzz v1
[]byte("0")
[]byte("")
bool(false)
[]byte("0")
bool(true)

View File

@@ -0,0 +1,5 @@
go test fuzz v1
[]byte("0")
bool(false)
[]byte("8\x00\x00\x00\x010")
bool(true)

View File

@@ -1,3 +0,0 @@
go test fuzz v1
[]byte("8")
[]byte("")

View File

@@ -0,0 +1,5 @@
go test fuzz v1
[]byte("\xdc")
bool(false)
[]byte("0")
bool(false)

View File

@@ -1,3 +0,0 @@
go test fuzz v1
[]byte("0")
[]byte("80")

View File

@@ -0,0 +1,5 @@
go test fuzz v1
[]byte("0")
bool(false)
[]byte("0")
bool(true)

View File

@@ -0,0 +1,5 @@
go test fuzz v1
[]byte("\xdc0")
bool(false)
[]byte("0")
bool(false)

View File

@@ -0,0 +1,5 @@
go test fuzz v1
[]byte("8\x00\x00")
bool(false)
[]byte("0")
bool(true)

View File

@@ -1,3 +0,0 @@
go test fuzz v1
[]byte("0")
[]byte("<")

View File

@@ -1,3 +0,0 @@
go test fuzz v1
[]byte("0")
[]byte("\\0")

View File

@@ -0,0 +1,5 @@
go test fuzz v1
[]byte("0")
bool(false)
[]byte("9000")
bool(false)

View File

@@ -1,3 +0,0 @@
go test fuzz v1
[]byte("0")
[]byte("9")

View File

@@ -0,0 +1,5 @@
go test fuzz v1
[]byte("0")
bool(false)
[]byte("|0")
bool(true)