1
0
mirror of https://github.com/upx/upx synced 2025-09-28 19:06:07 +08:00

'bound' register was clobbered

modified:   stub/src/arch/arm64/v8/lzma_d-arm.S
This commit is contained in:
John Reiser 2019-07-14 13:05:52 -07:00
parent 29fa358077
commit c33603e324

View File

@ -503,8 +503,8 @@ rcGetBitCont:
mul bound,starp,y0tmp
cmp Code,bound; bhs rcGB1
rcGB0: // Code < bound
mov Range,bound // 'bound' dies
mov y0tmp,#kBitModelTotal
mov Range,bound
sub y0tmp,y0tmp,starp
adcs mo,mi,mi // mo = (mi<<1) | (Code >= bound); set CC
add starp,starp,y0tmp, lsr #kNumMoveBits