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

rttys panic: runtime error: slice bounds out of range [:4] with capacity 0 #137

Open
legale opened this issue May 7, 2023 · 0 comments
Open

Comments

@legale
Copy link

legale commented May 7, 2023

Environment

rtty

  • arch: armv7I
  • os: openwrt 22.03
  • version: Linux 40-8 4.4.60 #0 SMP PREEMPT Wed Feb 1 15:51:02 2023 armv7l GNU/Linux

rttys

  • arch: amd64
  • os: debian 11
  • version: Linux wnam-14 5.10.0-19-amd64 #1 SMP Debian 5.10.149-2 (2022-10-21) x86_64 GNU/Linux

Description

rttys crash on client connected. Without any client connection rttys works well.

root@wnam-14:~# rttys run
2023-05-07T22:43:12+03:00 |INFO| Go Version: go1.18.1
2023-05-07T22:43:12+03:00 |INFO| Go OS/Arch: linux/amd64
2023-05-07T22:43:12+03:00 |INFO| Rttys Version: 4.1.0
2023-05-07T22:43:12+03:00 |INFO| Git Commit: d55eac3
2023-05-07T22:43:12+03:00 |INFO| Build Time: 2022-09-25T13:45:39+0000
2023-05-07T22:43:12+03:00 |INFO| Listen device on: :5912 SSL off
2023-05-07T22:43:12+03:00 |INFO| Automatically select an available port for http proxy
2023-05-07T22:43:12+03:00 |INFO| Listen http proxy on: [::]:35849
2023-05-07T22:43:12+03:00 |INFO| Listen user on: :5913 SSL off
2023-05-07T22:43:13+03:00 |DEBU| Device '172.16.137.45:49304' connected
2023-05-07T22:43:13+03:00 |INFO| Device '00000' registered, proto 52
2023-05-07T22:43:14+03:00 |DEBU| Device '172.16.137.45:49304' disconnected
panic: runtime error: slice bounds out of range [:4] with capacity 0

goroutine 13 [running]:
main.parseHeartbeat(...)
 /home/runner/work/rttys/rttys/device.go:189
main.(*device).readLoop(0xc000122ab0)
 /home/runner/work/rttys/rttys/device.go:293 +0xdbe
created by main.listenDevice.func1
 /home/runner/work/rttys/rttys/device.go:412 +0x334
root@wnam-14:~#
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

1 participant