Skip to content

Add null check for 'MCRegisterInfo' in arch/xx/xxModule.c and for insn_cache->detail in cs.c - #3003

Merged
Rot127 merged 1 commit into
capstone-engine:v5from
DeepSpace9:v5
Jul 23, 2026
Merged

Rot127 merged 1 commit into
capstone-engine:v5from
DeepSpace9:v5

Conversation

@DeepSpace9

@DeepSpace9 DeepSpace9 commented Jul 23, 2026 •

Copy link
Copy Markdown

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

If the memory is insufficient, check the null pointer and set the error code to 'CS_ERR_MEM'.

Test plan

The standard test suite should do fine.

Closing issues

closes #1763
closes #1764

…n_cache->detail in cs.c

If the memory is insufficient, check the null pointer and set the error code to 'CS_ERR_MEM'.
@Rot127

Rot127 commented Jul 23, 2026

Copy link
Copy Markdown
Collaborator

Thanks!

@Rot127
Rot127 merged commit 9291d41 into capstone-engine:v5 Jul 23, 2026
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants