You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 21, 2020. It is now read-only.
In com.github.junrar.unpack.vm.RarVM, opcodes likes VM_INC, VM_INCB, VM_INCD, VM_DEC, VM_DECB, VM_DECD, VM_ADC, VM_SBB, VM_MUL... contains an errors:
In java operator '+', '-', '*' have priority over bitwise '&'.
So: (v & 0xffffffff + 1) becomes: (v & (0xffffffff + 1)), ie always 0
So: (v & 0xffffffff - 1) becomes: (v & (0xffffffff - 1))
In com.github.junrar.unpack.vm.RarVM, opcodes likes VM_INC, VM_INCB, VM_INCD, VM_DEC, VM_DECB, VM_DECD, VM_ADC, VM_SBB, VM_MUL... contains an errors:
In java operator '+', '-', '*' have priority over bitwise '&'.
So: (v & 0xffffffff + 1) becomes: (v & (0xffffffff + 1)), ie always 0
So: (v & 0xffffffff - 1) becomes: (v & (0xffffffff - 1))
ref: http://docs.oracle.com/javase/tutorial/java/nutsandbolts/operators.html
regards
Tyco :)
The text was updated successfully, but these errors were encountered: