[arm] fixed memory trashing due to unsigned/signed int comparison (offset > (cfg->code_size - max_len - 16))