Skip to content

Parsing of server messages can panic on malformed input #1

@tomprogrammer

Description

@tomprogrammer

There can be an index out of bounds panic in the code responsible for parsing the server messages.

The length of the input is checked for the first token parsed, but not for the following tokens. Therefore slicing the input can panic. The faulty code is in the function parse_server_first.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions