mirror of
https://github.com/radareorg/radare2.git
synced 2025-01-23 22:36:27 +00:00
53b0918b59
`r_hex_str2bin` turns every two input nibbles into a single output byte and thus writes maximum half the input size. However, there's the special case where it writes one additional output byte when presented with an odd number of nibbles. Even though this results in an error (negative of the number of bytes written), we must ensure that at least one byte more is allocated for its output buffer.