Skip to content

asusuimage: fix fs_offset extraction in show_info#66

Open
matjon wants to merge 1 commit intoopenwrt:masterfrom
matjon:asusuimage_fix
Open

asusuimage: fix fs_offset extraction in show_info#66
matjon wants to merge 1 commit intoopenwrt:masterfrom
matjon:asusuimage_fix

Conversation

@matjon
Copy link

@matjon matjon commented Mar 23, 2026

This code was apparently intended to look for FS_OFFSET_PREFIX and then read the big-endian 24-bit value just after it. Instead, it did always read the value from a fixed offset.

This fixes using bogus (or zero) values of fs_offset when analysing TRXv2 images for Asus RT-AX53U. Now the values agree with what the binwalk tool prints.

This patch modifies the show_info() function, which is used only for firmware analysis and not in an OpenWRT build.

cc: @remittor

This code was apparently intended to look for FS_OFFSET_PREFIX and then
read the big-endian 24-bit value just after it. Instead, it did always
read the value from a fixed offset.

This fixes using bogus (or zero) values of `fs_offset` when analysing
TRXv2 images for Asus RT-AX53U. Now the values agree with what the
`binwalk` tool prints.

This patch modifies the show_info() function, which is used only for
firmware analysis and not in an OpenWRT build.

Signed-off-by: Mateusz Jończyk <mat.jonczyk@o2.pl>
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.

1 participant