Skip to content

Fix panic for HomeKit server proxy mode #1940

@lukasz-burak

Description

@lukasz-burak

I've tried new version of go2rtc with improvements to HomeKit module but it crashes when I try to use it with HomeKit camera as proxy. Camera I'm using is Eve Outdoor Cam.

Exception I'm having:

panic: runtime error: slice bounds out of range [:131252] with capacity 32768
goroutine 67 [running]:
io.copyBuffer({0xed74a0, 0xc0000ce230}, {0xed74c0, 0xc0000ce3f0}, {0x0, 0x0, 0x0})
	io/io.go:431 +0x28b
io.Copy(...)
	io/io.go:388
created by github.com/AlexxIT/go2rtc/pkg/homekit.(*Proxy).listenHDS.func1 in goroutine 66
	github.com/AlexxIT/go2rtc/pkg/homekit/proxy.go:212 +0x3b6

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions