commit c0bc43e

grunfink  ·  2026-01-25 09:09:03 +0000 UTC
parents c6b411a, 456a70a
Merge pull request 'OOB-fix' (#532) from byte/snac2:OOB-fix into master

Reviewed-on: https://codeberg.org/grunfink/snac2/pulls/532
1 files changed,  +1, -1
+1, -1
1@@ -232,7 +232,7 @@ unsigned int *_xs_unicode_upper_search(unsigned int cpoint)
2 /* searches for an uppercase codepoint in the case fold table */
3 {
4     int b = 0;
5-    int t = xs_countof(xs_unicode_case_fold_table) / 2 + 1;
6+    int t = xs_countof(xs_unicode_case_fold_table) / 2 - 1;
7 
8     while (t >= b) {
9         int n = (b + t) / 2;