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

Little bug in firmware selection #46

Merged
merged 3 commits into from
May 24, 2024
Merged

Little bug in firmware selection #46

merged 3 commits into from
May 24, 2024

Conversation

deviato
Copy link
Contributor

@deviato deviato commented May 24, 2024

There's a little bug that prevents to run the program with fw parameter values other than "base" ones (702 for example).
In line 159 you determine the "base" offset by calling
auto offset = getFirmwareOffset(fw);
but later, in line 176 you try to set firmware offset with:
if (exploit->setFirmwareVersion((FirmwareVersion) fw)) return 1;
But that function only accepts "base" firmware versions, so it should be
if (exploit->setFirmwareVersion((FirmwareVersion) offset)) return 1;

There's a little bug that prevents to run the program with fw parameter values other than "base" ones (702 for example).
In line 159 you determine the "base" offset by calling
``auto offset = getFirmwareOffset(fw);``
but later, in line 176 you try to set firmware offset with:
``if (exploit->setFirmwareVersion((FirmwareVersion) fw)) return 1;``
But that function only accepts "base" firmware versions, so it should be 
``if (exploit->setFirmwareVersion((FirmwareVersion) offset)) return 1;``
@xfangfang
Copy link
Owner

Thanks for the PR

@xfangfang xfangfang merged commit 8265c1a into xfangfang:main May 24, 2024
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