Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Encode SlaSpace wordsize as an unsigned integer #6631

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mborgerson
Copy link
Contributor

@mborgerson mborgerson commented Jun 11, 2024

This patch corrects a mismatch between the encoder and decoder in wordsize signedness. AddrSpace::getWordSize() returns an unsigned integer, so use unsigned here for consistency.

Fixes loading SLA files for:

  • Toy:BE:32:wordSize2
  • Toy:LE:32:wordSize2
  • avr8:LE:16:default
  • avr8:LE:16:extended
  • avr8:LE:16:atmega256
  • avr8:LE:24:xmega
  • PIC-24E:LE:24:default
  • PIC-24F:LE:24:default
  • PIC-24H:LE:24:default
  • dsPIC30F:LE:24:default
  • dsPIC33F:LE:24:default
  • dsPIC33E:LE:24:default
  • dsPIC33C:LE:24:default
  • PIC-16:LE:16:PIC-16C5x
  • PIC-12:LE:16:PIC-12C5xx
  • PIC-17:LE:16:PIC-17C7xx
  • PIC-16:LE:16:PIC-16
  • PIC-16:LE:16:PIC-16F
  • CP1600:BE:16:default

@mborgerson mborgerson changed the title Encode SlaSpace wordsize as unsigned integer Decode SlaSpace wordsize as signed integer Jun 12, 2024
@mborgerson mborgerson changed the title Decode SlaSpace wordsize as signed integer Encode SlaSpace wordsize as an unsigned integer Jun 12, 2024
This patch corrects a mismatch between the encoder and decoder in
wordsize signedness. AddrSpace::getWordSize() returns an unsigned
integer, so use unsigned here for consistency.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature: Decompiler Status: Triage Information is being gathered
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants