Skip to content

Guard against overflow for dynamic interval overlap#60

Open
whimxiqal wants to merge 5 commits into
5cript:masterfrom
whimxiqal:bug/overlap-overflow
Open

Guard against overflow for dynamic interval overlap#60
whimxiqal wants to merge 5 commits into
5cript:masterfrom
whimxiqal:bug/overlap-overflow

Conversation

@whimxiqal

@whimxiqal whimxiqal commented May 13, 2026

Copy link
Copy Markdown

The dynamic interval overlaps method contains addition code to the boundaries regardless of whether those values would overflow. This can cause wrong results at, at the very least, compiler errors depending on the compiler options.

These changes guard against such addition/subtraction and add tests with additional compiler options to error on integer overflow.

I've also adjusted the workflow, CMake, and README files to streamline testing a bit.

@whimxiqal whimxiqal marked this pull request as ready for review June 24, 2026 19:12
@whimxiqal whimxiqal changed the title Overlap check results in integer overflow with maximum integer boundary Guard against overflow for dynamic interval overlap Jun 24, 2026
@whimxiqal

whimxiqal commented Jun 24, 2026

Copy link
Copy Markdown
Author

Fixes #61

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.

1 participant