Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

panic: runtime error: slice bounds out of range [:2285] with capacity 2048 #3306

Open
thebest-maker opened this issue Feb 9, 2025 · 1 comment

Comments

@thebest-maker
Copy link

thebest-maker commented Feb 9, 2025

panic: runtime error: slice bounds out of range [:2285] with capacity 2048

v2ray version

V2Ray 5.20.0 (V2Fly, a community-driven edition of V2Ray.) Custom (go1.23.2 linux/amd64)
A unified platform for anti-censorship.

Issue Description

While running the program, the following error occurred:

2025/02/09 19:19:26 [Info] [3436595988] proxy/dokodemo: received request for 192.168.1.200:32886
panic: runtime error: slice bounds out of range [:2285] with capacity 2048

goroutine 96 [running]:
github.com/v2fly/v2ray-core/v5/common/protocol/quic.SniffQUIC({0xc00005b800, 0x800, 0x800})
	github.com/v2fly/v2ray-core/v5/common/protocol/quic/sniff.go:221 +0x1ccb
github.com/v2fly/v2ray-core/v5/app/dispatcher.NewSniffer.func3({0xc00885e840?, 0x18?}, {0xc00005b800?, 0x1?, 0x1637e40?})
	github.com/v2fly/v2ray-core/v5/app/dispatcher/sniffer.go:39 +0x25
github.com/v2fly/v2ray-core/v5/app/dispatcher.(*Sniffer).Sniff(0xc0006944b0, {0x18c5668, 0xc000660330}, {0xc00005b800, 0x800, 0x800}, 0x3)
	github.com/v2fly/v2ray-core/v5/app/dispatcher/sniffer.go:67 +0xcc
github.com/v2fly/v2ray-core/v5/app/dispatcher.sniffer.func1({0x18c5668, 0xc000660330}, 0xc0006988a0, 0xc000015ec0, 0xc0006944b0, 0x3)
	github.com/v2fly/v2ray-core/v5/app/dispatcher/default.go:267 +0x125
github.com/v2fly/v2ray-core/v5/app/dispatcher.sniffer({0x18c5668, 0xc000660330}, 0xc0006988a0, 0x0, 0x3)
	github.com/v2fly/v2ray-core/v5/app/dispatcher/default.go:277 +0x170
github.com/v2fly/v2ray-core/v5/app/dispatcher.(*DefaultDispatcher).Dispatch.func1()
	github.com/v2fly/v2ray-core/v5/app/dispatcher/default.go:223 +0x110
created by github.com/v2fly/v2ray-core/v5/app/dispatcher.(*DefaultDispatcher).Dispatch in goroutine 95
	github.com/v2fly/v2ray-core/v5/app/dispatcher/default.go:218 +0x32b
@xiaokangwang
Copy link
Contributor

This should be fixed in v5.29.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants