-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
polkavm-linker: Fix multiple issues reported by the fuzzer
The fuzzer reported several valid bugs, this patch takes care of them. Following categories of bugs were reported: 1. RegKind with a zero register. [ Reg { kind: ReverseByte, dst: A2, src: Zero, }, ] 2. apply() does not implement Rem32AndSignExtend and RemUnsigned32AndSignExtend. [ RegReg { kind: RemUnsigned32AndSignExtend, dst: A2, src1: T0, src2: Zero, }, ] 3. apply() does not implement Div32AndSignExtend and DivUnsigned32AndSignExtend/ [ RegReg { kind: DivUnsigned32AndSignExtend, dst: T1, src1: T2, src2: Zero, }, ] 4. apply() does not implement Rem*/Div* Zero src1 register case. [ RegReg { kind: Rem64, dst: S0, src1: Zero, src2: A3, }, ] Signed-off-by: Aman <[email protected]>
- Loading branch information
Showing
3 changed files
with
60 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters