chiark / gitweb /
parse_slice_hex: Fix to properly handle odd-length slices
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 31 Mar 2022 19:09:35 +0000 (20:09 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 31 Mar 2022 19:09:35 +0000 (20:09 +0100)
commitebe3545c8d4128a094b52eaebe86a38de44962eb
treeb2176fea9b361b1ca493d68911603534bf4569b2
parentc3e781702d440b5d05ab8d60568a95950dfa667d
parse_slice_hex: Fix to properly handle odd-length slices

Previously it would accept some of them, and parse them in a weird
way.  I don't think this is actually important.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
src/utils.rs