Skip to content

Backport #2886 - cs_disasm_iter: return early on zero-size input#2920

Open
Rot127 wants to merge 1 commit into
capstone-engine:v5from
Rot127:early-ret
Open

Backport #2886 - cs_disasm_iter: return early on zero-size input#2920
Rot127 wants to merge 1 commit into
capstone-engine:v5from
Rot127:early-ret

Conversation

@Rot127
Copy link
Copy Markdown
Collaborator

@Rot127 Rot127 commented May 12, 2026

Prevent calling backend decoder with no remaining bytes, which could lead to out-of-bounds reads.

Your checklist for this pull request

  • I've documented or updated the documentation of every API function and struct this PR changes.
  • I've added tests that prove my fix is effective or that my feature works (if possible)

Detailed description

...

Test plan

...

Closing issues

...

Prevent calling backend decoder with no remaining bytes,
which could lead to out-of-bounds reads.
@github-actions github-actions Bot added the CS-core-files auto-sync label May 12, 2026
@Rot127 Rot127 changed the title Backport #2886 Backport #2886 - cs_disasm_iter: return early on zero-size input May 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CS-core-files auto-sync

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants