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

MachOModule.cs add bound check #1270

Merged
merged 1 commit into from
Jun 25, 2024
Merged

Conversation

Foxtr0t1337
Copy link
Contributor

ReadSymbolTable() will use DataReader.Read()
If _symtab.NSyms is 0 but it passed previous checks, Read() will assert.
Didn't remove the assert but add this check.
I don't know why but in a game some modules will cause the assert.

`ReadSymbolTable()` will use `DataReader.Read()`
If `_symtab.NSyms` is `0` but it passed previous checks,
`Read()` will assert.
Didn't remove the assert but add this check.
I don't know why but in a game some modules will cause the assert.
Copy link
Contributor

@leculver leculver left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@leculver leculver merged commit 0d3bd61 into microsoft:main Jun 25, 2024
8 checks passed
@Foxtr0t1337 Foxtr0t1337 deleted the patch-1 branch June 26, 2024 01:17
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.

2 participants