engine icon indicating copy to clipboard operation
engine copied to clipboard

engine v4.14.6内置鉴权bug

Open wangyg115 opened this issue 1 year ago • 1 comments

1、问题描述: engine v4.14.6, 启用内置鉴权后,使用rtmp推流,expire参数验证通过后,当rsecret参数长度小于16, 系统崩溃退出。 2、fatal日志: panic: runtime error: slice bounds out of range [:28] with length 27 goroutine 13 [running]: m7s.live/engine/v4.(*IO).auth(0xc0002f0000, {0xc000dfa0d0, 0x6}, {0xc0015fee11, 0x1b}, {0xc0015fee34, 0x8}) /home/runner/go/pkg/mod/m7s.live/engine/[email protected]/io.go:152 +0x1f0

wangyg115 avatar Feb 23 '24 07:02 wangyg115

确实,应该判断一下长度的

langhuihui avatar Feb 23 '24 07:02 langhuihui