1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-02-15 04:42:04 +00:00
srs/trunk/auto
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>
2023-08-02 22:49:49 +08:00
..
apps.sh For #2532: Windows: Replace ln by cp for windows. v5.0.87 (#3246) 2022-11-18 23:02:38 +08:00
auto_headers.sh SRS5: FFmpeg: Support build with FFmpeg native opus. v5.0.131 (#3140) 2023-01-06 17:46:37 +08:00
codecov.sh For #2532: Windows: Replace ln by cp for windows. v5.0.87 (#3246) 2022-11-18 23:02:38 +08:00
depends.sh Compile: Fix typo for 3rdparty. v5.0.166, v6.0.59 (#3615) 2023-07-10 08:16:59 +08:00
local_ip.sh update readme. 2014-03-23 18:03:24 +08:00
modules.sh For #2532: Windows: Replace ln by cp for windows. v5.0.87 (#3246) 2022-11-18 23:02:38 +08:00
options.sh HLS: Ignore empty NALU to avoid error. v6.0.65 (#3750) 2023-08-02 22:49:49 +08:00
reset_module.sh Moduels: Refine the description 2021-04-21 11:18:35 +08:00
setup_variables.sh Compile: Fix typo for 3rdparty. v5.0.166, v6.0.59 (#3615) 2023-07-10 08:16:59 +08:00
summary.sh For #2532: Windows: Replace ln by cp for windows. v5.0.87 (#3246) 2022-11-18 23:02:38 +08:00
utest.sh Compile: Fix typo for 3rdparty. v5.0.166, v6.0.59 (#3615) 2023-07-10 08:16:59 +08:00