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

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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