Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

visitorckw
Copy link
Contributor

Fixed an issue in arenaAllocator.hpp where left shifting 1 by more than the size of a signed integer caused undefined behavior due to signed integer overflow. The macro MSB_SET has been updated to cast 1 to uint32_t before performing the left shift, ensuring the operation is safe and defined.

Fixed an issue in arenaAllocator.hpp where left shifting 1 by more than
the size of a signed integer caused undefined behavior due to signed
integer overflow. The macro MSB_SET has been updated to cast 1 to
uint32_t before performing the left shift, ensuring the operation is
safe and defined.
@dboyliao dboyliao merged commit 6aa081b into uTensor:master Sep 6, 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