Skip to content

fix #1120, fix out of bound access.#1121

Closed
caogtaa wants to merge 1 commit intoincrepare:masterfrom
caogtaa:caogtaa/20260119_fix_out_of_bound_access
Closed

fix #1120, fix out of bound access.#1121
caogtaa wants to merge 1 commit intoincrepare:masterfrom
caogtaa:caogtaa/20260119_fix_out_of_bound_access

Conversation

@caogtaa
Copy link
Contributor

@caogtaa caogtaa commented Jan 19, 2026

fix #1120 .
If shift count is no more than 27, no need to access next int32.

@increpare
Copy link
Owner

increpare commented Mar 7, 2026

yes this change is good - I had to work so hard to understand the bitvec code I decided to basically just rewrite a lot of bitvec code again to make it clearer and forgot than to pull your change request first ( d8e1d5d ). But the contents are in. Thank you for the very smart bug report + fix. Generating fewer instructions in the inner loop is a win :)

@increpare increpare closed this Mar 7, 2026
@caogtaa
Copy link
Contributor Author

caogtaa commented Mar 8, 2026

I decided to basically just rewrite a lot of bitvec code again to make it clearer

Good to hear that :)

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.

'movementMask' out of bound access in generated function 'repositionEntitiesAtCell()'

2 participants