You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
srs/trunk/3rdparty/srs-bench/vendor/github.com/google/gopacket
Winlin 73dd8af4c9
HLS: Ignore empty NALU to avoid error. v6.0.65 (#3750)
For the DJI M30, there is a bug where empty NALU packets with a size of
zero are causing issues with HLS streaming. This bug leads to random
unpublish events due to the SRS disconnecting the connection for the HLS
module when it fails to handle empty NALU packets.

To address this bug, we have patched the system to ignore any empty NALU
packets with a size of zero. Additionally, we have created a tool in the
srs-bench to replay pcapng files captured by tcpdump or Wireshark. We
have also added utest using mprotect and asan to detect any memory
corruption.

It is important to note that this bug has been fixed in versions 4.0.271
6477f31004 and 5.0.170
939f6b484b. This patch specifically
addresses the issue in SRS 6.0.

Please be aware that there is another commit related to this bug that
partially fixes the issue but still leaves a small problem for asan to
detect memory corruption. This commit,
577cd299e1, only ignores empty NALU
packets but still reads beyond the memory.

---------

Co-authored-by: chundonglinlin <chundonglinlin@163.com>
2 years ago
..
layers HLS: Ignore empty NALU to avoid error. v6.0.65 (#3750) 2 years ago
pcapgo HLS: Ignore empty NALU to avoid error. v6.0.65 (#3750) 2 years ago
.gitignore HLS: Ignore empty NALU to avoid error. v6.0.65 (#3750) 2 years ago
.travis.gofmt.sh HLS: Ignore empty NALU to avoid error. v6.0.65 (#3750) 2 years ago
.travis.golint.sh HLS: Ignore empty NALU to avoid error. v6.0.65 (#3750) 2 years ago
.travis.govet.sh HLS: Ignore empty NALU to avoid error. v6.0.65 (#3750) 2 years ago
.travis.install.sh HLS: Ignore empty NALU to avoid error. v6.0.65 (#3750) 2 years ago
.travis.script.sh HLS: Ignore empty NALU to avoid error. v6.0.65 (#3750) 2 years ago
.travis.yml HLS: Ignore empty NALU to avoid error. v6.0.65 (#3750) 2 years ago
AUTHORS HLS: Ignore empty NALU to avoid error. v6.0.65 (#3750) 2 years ago
CONTRIBUTING.md HLS: Ignore empty NALU to avoid error. v6.0.65 (#3750) 2 years ago
LICENSE HLS: Ignore empty NALU to avoid error. v6.0.65 (#3750) 2 years ago
README.md HLS: Ignore empty NALU to avoid error. v6.0.65 (#3750) 2 years ago
base.go HLS: Ignore empty NALU to avoid error. v6.0.65 (#3750) 2 years ago
decode.go HLS: Ignore empty NALU to avoid error. v6.0.65 (#3750) 2 years ago
doc.go HLS: Ignore empty NALU to avoid error. v6.0.65 (#3750) 2 years ago
flows.go HLS: Ignore empty NALU to avoid error. v6.0.65 (#3750) 2 years ago
gc HLS: Ignore empty NALU to avoid error. v6.0.65 (#3750) 2 years ago
layerclass.go HLS: Ignore empty NALU to avoid error. v6.0.65 (#3750) 2 years ago
layers_decoder.go HLS: Ignore empty NALU to avoid error. v6.0.65 (#3750) 2 years ago
layertype.go HLS: Ignore empty NALU to avoid error. v6.0.65 (#3750) 2 years ago
packet.go HLS: Ignore empty NALU to avoid error. v6.0.65 (#3750) 2 years ago
parser.go HLS: Ignore empty NALU to avoid error. v6.0.65 (#3750) 2 years ago
time.go HLS: Ignore empty NALU to avoid error. v6.0.65 (#3750) 2 years ago
writer.go HLS: Ignore empty NALU to avoid error. v6.0.65 (#3750) 2 years ago

README.md

GoPacket

This library provides packet decoding capabilities for Go. See godoc for more details.

Build Status GoDoc

Minimum Go version required is 1.5 except for pcapgo/EthernetHandle, afpacket, and bsdbpf which need at least 1.9 due to x/sys/unix dependencies.

Originally forked from the gopcap project written by Andreas Krennmair ak@synflood.at (http://github.com/akrennmair/gopcap).