Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@patryk4815
Copy link
Member

Fix for new qemu - #2648 (comment)

# On a fixed QEMU version, the response is `F-1,24`
# This performs the syscall: `openat(0, "/\01*256", O_RDONLY|0x20) = -1 ENAMETOOLONG (File name too long)`
response = pwndbg.dbg.selected_inferior().send_remote("vFile:open:2f" + ("01" * 256))
return response == b"F-1,36"
Copy link
Member

Choose a reason for hiding this comment

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

That's a neat trick to detect this bug! Nice!

@disconnect3d disconnect3d merged commit de46210 into pwndbg:dev Mar 30, 2025
23 of 24 checks passed
@disconnect3d disconnect3d mentioned this pull request Mar 30, 2025
@disconnect3d disconnect3d changed the title Add new qemu-user workaround Fix QEMU 9.1+ vFile API handling Apr 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants