Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use GCC/Clang builtins for overflows checking #4447

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

XVilka
Copy link
Member

@XVilka XVilka commented Apr 19, 2024

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 or updated the documentation of every function and struct this PR changes. If not so I've explained why.
  • I've added tests that prove my fix is effective or that my feature works (if possible)
  • I've updated the rizin book with the relevant information (if needed)

Detailed description

Because #4363 was abandoned and with errors, respin it from scratch.

Use GCC/LLVM builtins for overflow checking when available.

See available overflow builtins here: https://gcc.gnu.org/onlinedocs/gcc/Integer-Overflow-Builtins.html

Test plan

CI is green

Closing issues

Closes #4356

@wargio

This comment was marked as resolved.

@XVilka

This comment was marked as resolved.

@github-actions github-actions bot added rz-test and removed rz-test labels Jan 1, 2025
Copy link
Member

@Rot127 Rot127 left a comment

Choose a reason for hiding this comment

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

Nice, Wasn't even aware they existed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use GCC/Clang builtins for overflows checking
4 participants