Skip to content

Conversation

@artemseleznev
Copy link
Contributor

The Svace static analyzer (https://www.ispras.ru/en/technologies/svace/) flagged this code as suspicious: it could lead to a panic (out of range) if len(out) == 0. It might happen if text would be e.g. "bla:bla"

Signed-off-by: Artem Seleznev <[email protected]>
Copy link
Member

@SuperQ SuperQ left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's definitely a corrupt input panic here. But do want to continue or error?

@SuperQ
Copy link
Member

SuperQ commented Oct 21, 2025

It would also be useful to add some tests.

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

Successfully merging this pull request may close these issues.

2 participants