<div dir="ltr">Hi. Please review the attached patch.<div><br></div><div><div>This fixes a signed overflow which can make ADR add to be encoded as an ADR sub.</div><div>ADR uses different encoding bits to specify whether the immediate is to be added</div>
<div>or subtracted. As such it is possible to add or subtract a 32-bit unsigned number.</div><div>The cast to int32_t is undefined and triggers incorrect encoding. Keeping the original</div><div>int64_t type is safe, as all subsequent casts are to uint32_t.</div>
</div><div><br></div><div>Thanks,</div><div>Mihai</div></div>