fix interger overflow in decode_hex when 0 size hex_str is used.