Skip to content

Inflection-210 Fix signed integer overflow in bitmask property extraction - #211

Merged
nciric merged 4 commits into
unicode-org:mainfrom
nciric:Inflection-210-fix-signed-overflow
Oct 9, 2026
Merged

nciric merged 4 commits into
unicode-org:mainfrom
nciric:Inflection-210-fix-signed-overflow

Conversation

@nciric

@nciric nciric commented Oct 8, 2026

Copy link
Copy Markdown
Contributor

Fixes #210

Perform bitmask property extraction using unsigned uint64_t arithmetic before casting the isolated single-bit mask back to int64_t. This avoids signed 64-bit integer overflow (INT64_MIN - 1 and INT64_MAX + 1) when extracting bit 63 (0x8000000000000000), such as during dictionary->getPropertyNames(-1).

@nciric
nciric requested a review from grhoten October 8, 2026 23:39
@nciric nciric self-assigned this Oct 8, 2026
Comment thread CMakeLists.txt Outdated
@nciric
nciric merged commit fa98016 into unicode-org:main Oct 9, 2026
11 checks passed
@nciric
nciric deleted the Inflection-210-fix-signed-overflow branch October 9, 2026 22:20
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.

Signed integer overflow in DictionaryMetaData_MMappedDictionary::getTypesOfValues

2 participants