Skip to content

Little bug in firmware selection#46

Merged
xfangfang merged 3 commits intoxfangfang:mainfrom
deviato:main
May 24, 2024
Merged

Little bug in firmware selection#46
xfangfang merged 3 commits intoxfangfang:mainfrom
deviato:main

Conversation

@deviato
Copy link
Copy Markdown
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;

deviato added 3 commits May 19, 2024 22:32
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
Copy Markdown
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