mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-10 15:42:14 +00:00
ICU-22909 Fix coverity warning in makeconv.cpp
See: https://unicode-org.atlassian.net/browse/ICU-22909
This commit is contained in:
parent
687ed05e55
commit
1754ff2a10
1 changed files with 4 additions and 0 deletions
|
@ -377,6 +377,10 @@ int main(int argc, char* argv[])
|
|||
data.staticData.name);
|
||||
}
|
||||
|
||||
if (strlen(cnvName) + 1 > UPRV_LENGTHOF(data.staticData.name)) {
|
||||
fprintf(stderr, "converter name %s too long\n", cnvName);
|
||||
return U_BUFFER_OVERFLOW_ERROR;
|
||||
}
|
||||
uprv_strcpy((char*)data.staticData.name, cnvName);
|
||||
|
||||
if(!uprv_isInvariantString((char*)data.staticData.name, -1)) {
|
||||
|
|
Loading…
Add table
Reference in a new issue