Skip to content

Fix shellcode dialog dropping trailing odd nibble - #3650

Open
DaxRay wants to merge 1 commit into
rizinorg:devfrom
DaxRay:fix/2831-shellcode-odd-nibble
Open

Fix shellcode dialog dropping trailing odd nibble#3650
DaxRay wants to merge 1 commit into
rizinorg:devfrom
DaxRay:fix/2831-shellcode-odd-nibble

Conversation

@DaxRay

@DaxRay DaxRay commented Jul 27, 2026

Copy link
Copy Markdown

Summary

Test plan

  • Open Cutter → New File → Shellcode tab
  • Enter abc → Load → memory should contain 0xab 0xc0 (not only 0xab)
  • Enter abcd → still loads 0xab 0xcd unchanged
  • Enter empty / non-hex only → still does not load
  • Ctrl+Enter on shellcode field behaves the same as the button

Pad a lone trailing hex digit with 0 so odd-length shellcode input is
not silently truncated (rizinorg#2831).
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.

Cutter GUI trimms shell code to whole bytes (might discard last nibble)

1 participant