mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-11-01 05:46:19 +00:00
Exlcude ucd-tools overread from this PR
This commit is contained in:
@@ -2822,9 +2822,8 @@ static const struct case_conversion_entry case_conversion_data[] =
|
||||
codepoint_t ucd_toupper(codepoint_t c)
|
||||
{
|
||||
int begin = 0;
|
||||
int size = sizeof(case_conversion_data)/sizeof(case_conversion_data[0]);
|
||||
int end = size;
|
||||
while (begin <= end && (begin + end) / 2 < size)
|
||||
int end = sizeof(case_conversion_data)/sizeof(case_conversion_data[0]);
|
||||
while (begin <= end)
|
||||
{
|
||||
int pos = (begin + end) / 2;
|
||||
const struct case_conversion_entry *item = (case_conversion_data + pos);
|
||||
@@ -2841,9 +2840,8 @@ codepoint_t ucd_toupper(codepoint_t c)
|
||||
codepoint_t ucd_tolower(codepoint_t c)
|
||||
{
|
||||
int begin = 0;
|
||||
int size = sizeof(case_conversion_data)/sizeof(case_conversion_data[0]);
|
||||
int end = size;
|
||||
while (begin <= end && (begin + end) / 2 < size)
|
||||
int end = sizeof(case_conversion_data)/sizeof(case_conversion_data[0]);
|
||||
while (begin <= end)
|
||||
{
|
||||
int pos = (begin + end) / 2;
|
||||
const struct case_conversion_entry *item = (case_conversion_data + pos);
|
||||
@@ -2860,9 +2858,8 @@ codepoint_t ucd_tolower(codepoint_t c)
|
||||
codepoint_t ucd_totitle(codepoint_t c)
|
||||
{
|
||||
int begin = 0;
|
||||
int size = sizeof(case_conversion_data)/sizeof(case_conversion_data[0]);
|
||||
int end = size;
|
||||
while (begin <= end && (begin + end) / 2 < size)
|
||||
int end = sizeof(case_conversion_data)/sizeof(case_conversion_data[0]);
|
||||
while (begin <= end)
|
||||
{
|
||||
int pos = (begin + end) / 2;
|
||||
const struct case_conversion_entry *item = (case_conversion_data + pos);
|
||||
|
||||
Reference in New Issue
Block a user