mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
It's uncommon and prone to error to silently stop decoding/parsing a hex-string if there is an invalid character. Therefore, add a new function `decode_hex` which fixes this behavior and use it in the code. Signed-off-by: Marc Hartmayer <mhartmay@linux.ibm.com> Reviewed-by: Steffen Eiden <seiden@linux.ibm.com> Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>