rizin icon indicating copy to clipboard operation
rizin copied to clipboard

Check for empty vector to prevent OOB reads and writes.

Open Rot127 opened this issue 2 weeks ago • 1 comments

Your checklist for this pull request

  • [ ] I've read the guidelines for contributing to this repository.
  • [ ] I made sure to follow the project's coding style.
  • [ ] I've documented every RZ_API function and struct this PR changes.
  • [ ] I've added tests that prove my changes are effective (required for changes to RZ_API).
  • [ ] I've updated the Rizin book with the relevant information (if needed).
  • [ ] I've used AI tools to generate fully or partially these code changes and I'm sure the changes are not copyrighted by somebody else.

Detailed description

...

Test plan

...

Closing issues

...

Rot127 avatar Dec 08 '25 14:12 Rot127

Codecov Report

:white_check_mark: All modified and coverable lines are covered by tests. :white_check_mark: Project coverage is 46.69%. Comparing base (d72bc99) to head (c28c4eb). :warning: Report is 50 commits behind head on dev.

Additional details and impacted files
Files with missing lines Coverage Δ
librz/util/vector.c 78.52% <100.00%> (+0.42%) :arrow_up:

... and 115 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update d72bc99...c28c4eb. Read the comment docs.

:rocket: New features to boost your workflow:
  • :snowflake: Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • :package: JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

codecov[bot] avatar Dec 09 '25 12:12 codecov[bot]