Skip to content

Conversation

aldelaro5
Copy link
Contributor

This is a problem I noticed with TUNIC, but probably other games where the program would report it found some thunks at addresses that made no sense like 0xFFFFFFFFFF something.

Turns out the issue is the addresses were read as LEB128, but the correct encoding is ULEB128. I checked multiple sources confirming they were indeed supposed to be unsigned and the addresses ended up being correct after the fix.

@coveralls
Copy link

coveralls commented Mar 21, 2025

Pull Request Test Coverage Report for Build 14016638949

Details

  • 0 of 15 (0.0%) changed or added relevant lines in 3 files are covered.
  • 2 unchanged lines in 2 files lost coverage.
  • Overall coverage remained the same at 27.127%

Changes Missing Coverage Covered Lines Changed/Added Lines %
LibCpp2IL/MachO/MachOExportEntry.cs 0 4 0.0%
LibCpp2IL/MachO/MachOFile.cs 0 5 0.0%
LibCpp2IL/MachO/MachOExportTrie.cs 0 6 0.0%
Files with Coverage Reduction New Missed Lines %
LibCpp2IL/MachO/MachOExportEntry.cs 1 0.0%
LibCpp2IL/MachO/MachOExportTrie.cs 1 0.0%
Totals Coverage Status
Change from base Build 14010539955: 0.0%
Covered Lines: 3379
Relevant Lines: 10648

💛 - Coveralls

@aldelaro5 aldelaro5 force-pushed the fix-macho-export-trie branch from 0f2e76a to 53d7b36 Compare March 23, 2025 07:11
@SamboyCoding SamboyCoding merged commit 582c58c into SamboyCoding:development Mar 23, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants