procfs icon indicating copy to clipboard operation
procfs copied to clipboard

Out of range panic fix

Open artemseleznev opened this issue 4 months ago • 2 comments

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"

artemseleznev avatar Sep 03 '25 07:09 artemseleznev

It would also be useful to add some tests.

SuperQ avatar Oct 21 '25 12:10 SuperQ

Yeah I feel we should error instead

discordianfish avatar Nov 12 '25 09:11 discordianfish