Skip to content

sshd/terminal: Panic bug in forked code #316

@shazow

Description

@shazow

Probably in our Terminal.SetEnterClear(false) implementation, there's a scenario that causes a panic:

panic: runtime error: slice bounds out of range
goroutine 17 [running]:
github.com/shazow/ssh-chat/sshd/terminal.(*Terminal).writeLine(0xc000089680, 0xc000074a00, 0x1, 0x4fe)
github.com/shazow/ssh-chat/sshd/terminal/terminal.go:635 +0x3aa

Not sure how to reproduce yet. Going to try fuzzing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions