Skip to content

Commit

Permalink
Fix: bug in SliceMem_Rule, reported by @ptomin.
Browse files Browse the repository at this point in the history
  • Loading branch information
uxmal committed Jan 15, 2024
1 parent 331c6ba commit 42463e0
Show file tree
Hide file tree
Showing 20 changed files with 593 additions and 594 deletions.
2 changes: 1 addition & 1 deletion src/Decompiler/Evaluation/SliceMem_Rule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public SliceMem_Rule()
if (0 <= bitBegin && bitEnd <= acc.DataType.BitSize)
{
//$REVIEW: endianness?
offset = op.ApplyConstants(offset.DataType, offset, Constant.Create(ea.DataType, slice.Offset / ctx.MemoryGranularity));
offset = op.ApplyConstants(offset.DataType, offset, Constant.Create(offset.DataType, slice.Offset / ctx.MemoryGranularity));
Expression newEa = new BinaryExpression(op, offset.DataType, ea, offset);
if (segptr is not null)
{
Expand Down
230 changes: 115 additions & 115 deletions subjects/Elf/AVR32/ls.reko/ls.h

Large diffs are not rendered by default.

34 changes: 17 additions & 17 deletions subjects/Elf/AVR32/ls.reko/ls_seg00001000_0000.dis

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 7 additions & 7 deletions subjects/Elf/x86-64/ls/ls.reko/ls.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion subjects/Elf/x86-64/ls/ls.reko/ls_text.dis

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions subjects/MZ-x86/BENCHFN.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion subjects/MZ-x86/BENCHFN_0800.dis

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 10 additions & 10 deletions subjects/MachO/amd64/MachO-OSX-x64-ls.reko/MachO-OSX-x64-ls.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion subjects/OpenRISC/sunxi/blob.reko/blob.dis

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions subjects/OpenRISC/sunxi/blob.reko/blob.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 42463e0

Please sign in to comment.