diff options
| author | 2026-01-25 10:09:03 +0100 | |
|---|---|---|
| committer | 2026-01-25 10:09:03 +0100 | |
| commit | c0bc43ee6593853c5b12f2f6fdc304657b32f839 (patch) | |
| tree | da671b218b706bc4fc87031f7c8ddeb021004fe2 | |
| parent | Merge pull request 'add susie-q (qr) to artwork' (#528) from pmjv/snac2:maste... (diff) | |
| parent | fixing out of bounds (diff) | |
| download | snac2-c0bc43ee6593853c5b12f2f6fdc304657b32f839.tar.gz snac2-c0bc43ee6593853c5b12f2f6fdc304657b32f839.tar.xz snac2-c0bc43ee6593853c5b12f2f6fdc304657b32f839.zip | |
Merge pull request 'OOB-fix' (#532) from byte/snac2:OOB-fix into master
Reviewed-on: https://codeberg.org/grunfink/snac2/pulls/532
| -rw-r--r-- | xs_unicode.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xs_unicode.h b/xs_unicode.h index 7686dcd..493cfde 100644 --- a/xs_unicode.h +++ b/xs_unicode.h | |||
| @@ -232,7 +232,7 @@ unsigned int *_xs_unicode_upper_search(unsigned int cpoint) | |||
| 232 | /* searches for an uppercase codepoint in the case fold table */ | 232 | /* searches for an uppercase codepoint in the case fold table */ |
| 233 | { | 233 | { |
| 234 | int b = 0; | 234 | int b = 0; |
| 235 | int t = xs_countof(xs_unicode_case_fold_table) / 2 + 1; | 235 | int t = xs_countof(xs_unicode_case_fold_table) / 2 - 1; |
| 236 | 236 | ||
| 237 | while (t >= b) { | 237 | while (t >= b) { |
| 238 | int n = (b + t) / 2; | 238 | int n = (b + t) / 2; |