Skip to content

Add assertion to prevent max_id overflowing#1435

Merged
SanderMertens merged 8 commits into
SanderMertens:masterfrom
Ukendio:patch-1
Nov 27, 2024
Merged

Add assertion to prevent max_id overflowing#1435
SanderMertens merged 8 commits into
SanderMertens:masterfrom
Ukendio:patch-1

Conversation

@Ukendio

@Ukendio Ukendio commented Nov 13, 2024

Copy link
Copy Markdown
Contributor

The entity_index only allows up to 2^32 indexes, even though overflowing would be very unlikely with recycling it is still a possibility and would lead to hard-to-find bugs. This PR aims to make the assertion to prevent this.

P.S. pls squash commit it because I made a mistake twice.

Comment thread src/storage/entity_index.c
@SanderMertens SanderMertens merged commit 0b88180 into SanderMertens:master Nov 27, 2024
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.

2 participants