icu-74.2-1.fc41
List of Defects
Error: CPPCHECK_WARNING: [#def1]
icu-74.2-build/icu/source/common/bmpset.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def2]
icu-74.2-build/icu/source/common/bmpset.cpp:559:58: warning[deadcode.DeadStores]: Although the value stored to 'b' is used in the enclosing expression, the value is never actually read from 'b'
# 557| limit0=limit;
# 558| }
# 559|-> } else if(b<0xc0 && b>=0x80 && length>=3 && (b=*(limit-3))>=0xf0) {
# 560| // 4-byte lead byte with only two trail bytes
# 561| limit-=3;
Error: CPPCHECK_WARNING: [#def3]
icu-74.2-build/icu/source/common/brkeng.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def4]
icu-74.2-build/icu/source/common/brkiter.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-457): [#def5]
icu-74.2-build/icu/source/common/brkiter.cpp:113: warning[uninitvar]: Uninitialized variable: fnbuff
# 111| ures_close(brkName);
# 112|
# 113|-> UDataMemory* file = udata_open(U_ICUDATA_BRKITR, ext, fnbuff, &status);
# 114| if (U_FAILURE(status)) {
# 115| ures_close(b);
Error: CPPCHECK_WARNING: [#def6]
icu-74.2-build/icu/source/common/bytesinkutil.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def7]
icu-74.2-build/icu/source/common/bytestream.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def8]
icu-74.2-build/icu/source/common/bytestrie.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def9]
icu-74.2-build/icu/source/common/bytestriebuilder.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-457): [#def10]
icu-74.2-build/icu/source/common/bytestriebuilder.cpp:479: error[uninitvar]: Uninitialized variable: intBytes
# 477| } else {
# 478| char intBytes[5];
# 479|-> return write(intBytes, internalEncodeDelta(i, intBytes));
# 480| }
# 481| }
Error: CPPCHECK_WARNING: [#def11]
icu-74.2-build/icu/source/common/bytestrieiterator.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def12]
icu-74.2-build/icu/source/common/caniter.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def13]
icu-74.2-build/icu/source/common/characterproperties.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def14]
icu-74.2-build/icu/source/common/charstr.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def15]
icu-74.2-build/icu/source/common/cmemory.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def16]
icu-74.2-build/icu/source/common/filteredbrk.cpp:13: included_from: Included from here.
icu-74.2-build/icu/source/common/cmemory.h:274:40: warning[core.uninitialized.UndefReturn]: Returning null reference
# 272| * @return reference to the array item
# 273| */
# 274|-> T &operator[](ptrdiff_t i) const { return LocalPointerBase<T>::ptr[i]; }
# 275| };
# 276|
Error: CPPCHECK_WARNING: [#def17]
icu-74.2-build/icu/source/common/cstr.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def18]
icu-74.2-build/icu/source/common/cstring.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: COMPILER_WARNING: [#def19]
icu-74.2-build/icu/source/i18n/calendar.cpp:57: included_from: Included from here.
icu-74.2-build/icu/source/i18n/calendar.cpp: scope_hint: In member function ‘icu_74::Calendar::operator=(icu_74::Calendar const&)’
icu-74.2-build/icu/source/common/cstring.h:43:70: warning[-Wstringop-truncation]: ‘strncpy’ output may be truncated copying 156 bytes from a string of length 156
# 43 | #define uprv_strncpy(dst, src, size) U_STANDARD_CPP_NAMESPACE strncpy(dst, src, size)
# | ^
# 41| #define uprv_strstr(s, c) U_STANDARD_CPP_NAMESPACE strstr(s, c)
# 42| #define uprv_strrchr(s, c) U_STANDARD_CPP_NAMESPACE strrchr(s, c)
# 43|-> #define uprv_strncpy(dst, src, size) U_STANDARD_CPP_NAMESPACE strncpy(dst, src, size)
# 44| #define uprv_strncmp(s1, s2, n) U_STANDARD_CPP_NAMESPACE strncmp(s1, s2, n)
# 45| #define uprv_strncat(dst, src, n) U_STANDARD_CPP_NAMESPACE strncat(dst, src, n)
Error: COMPILER_WARNING: [#def20]
icu-74.2-build/icu/source/common/ucurr.cpp:28: included_from: Included from here.
icu-74.2-build/icu/source/common/ucurr.cpp: scope_hint: In function ‘ucurr_register_74’
icu-74.2-build/icu/source/common/cstring.h:43:70: warning[-Wstringop-truncation]: ‘strncpy’ output truncated before terminating nul copying as many bytes from a string as its length
# 43 | #define uprv_strncpy(dst, src, size) U_STANDARD_CPP_NAMESPACE strncpy(dst, src, size)
# | ^
icu-74.2-build/icu/source/common/cstring.h:37:57: note: length computed here
# 37 | #define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
# 41| #define uprv_strstr(s, c) U_STANDARD_CPP_NAMESPACE strstr(s, c)
# 42| #define uprv_strrchr(s, c) U_STANDARD_CPP_NAMESPACE strrchr(s, c)
# 43|-> #define uprv_strncpy(dst, src, size) U_STANDARD_CPP_NAMESPACE strncpy(dst, src, size)
# 44| #define uprv_strncmp(s1, s2, n) U_STANDARD_CPP_NAMESPACE strncmp(s1, s2, n)
# 45| #define uprv_strncat(dst, src, n) U_STANDARD_CPP_NAMESPACE strncat(dst, src, n)
Error: CPPCHECK_WARNING: [#def21]
icu-74.2-build/icu/source/common/dictbe.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def22]
icu-74.2-build/icu/source/common/dictionarydata.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def23]
icu-74.2-build/icu/source/common/dictionarydata.cpp:216:9: warning[deadcode.DeadStores]: Value stored to 'offset' is never read
# 214| }
# 215|
# 216|-> offset = 0;
# 217| ds->swapArray32(ds, inBytes, sizeof(indexes), outBytes, pErrorCode);
# 218| offset = (int32_t)sizeof(indexes);
Error: CLANG_WARNING: [#def24]
icu-74.2-build/icu/source/common/dictionarydata.cpp:234:9: warning[deadcode.DeadStores]: Value stored to 'offset' is never read
# 232| // these next two sections are empty in the current format,
# 233| // but may be used later.
# 234|-> offset = nextOffset;
# 235| nextOffset = indexes[DictionaryData::IX_RESERVED2_OFFSET];
# 236| offset = nextOffset;
Error: CLANG_WARNING: [#def25]
icu-74.2-build/icu/source/common/dictionarydata.cpp:236:9: warning[deadcode.DeadStores]: Value stored to 'offset' is never read
# 234| offset = nextOffset;
# 235| nextOffset = indexes[DictionaryData::IX_RESERVED2_OFFSET];
# 236|-> offset = nextOffset;
# 237| nextOffset = indexes[DictionaryData::IX_TOTAL_SIZE];
# 238| offset = nextOffset;
Error: CLANG_WARNING: [#def26]
icu-74.2-build/icu/source/common/dictionarydata.cpp:238:9: warning[deadcode.DeadStores]: Value stored to 'offset' is never read
# 236| offset = nextOffset;
# 237| nextOffset = indexes[DictionaryData::IX_TOTAL_SIZE];
# 238|-> offset = nextOffset;
# 239| }
# 240| return headerSize + size;
Error: CPPCHECK_WARNING: [#def27]
icu-74.2-build/icu/source/common/edits.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def28]
icu-74.2-build/icu/source/common/emojiprops.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def29]
icu-74.2-build/icu/source/common/filteredbrk.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def30]
icu-74.2-build/icu/source/common/filterednormalizer2.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def31]
icu-74.2-build/icu/source/common/loadednormalizer2impl.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def32]
icu-74.2-build/icu/source/common/localebuilder.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def33]
icu-74.2-build/icu/source/common/localematcher.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def34]
icu-74.2-build/icu/source/common/localematcher.cpp:705:12: warning[core.NullDereference]: Array access (via field 'supportedIndexes') results in a null pointer dereference
# 703| return -1;
# 704| }
# 705|-> return supportedIndexes[bestSupportedLsrIndex];
# 706| }
# 707|
Error: CPPCHECK_WARNING: [#def35]
icu-74.2-build/icu/source/common/localeprioritylist.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def36]
icu-74.2-build/icu/source/common/locavailable.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def37]
icu-74.2-build/icu/source/common/locbased.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def38]
icu-74.2-build/icu/source/common/locdispnames.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def39]
icu-74.2-build/icu/source/common/locdispnames.cpp:724:37: warning[core.NullDereference]: Dereference of null pointer
# 722| }
# 723| for(int32_t i=0;i<sepLen;++i) {
# 724|-> *p++=separator[i];
# 725| }
# 726| }
Error: CPPCHECK_WARNING: [#def40]
icu-74.2-build/icu/source/common/locdistance.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def41]
icu-74.2-build/icu/source/common/locdspnm.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def42]
icu-74.2-build/icu/source/common/locid.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def43]
icu-74.2-build/icu/source/common/loclikely.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def44]
icu-74.2-build/icu/source/common/loclikely.cpp:441:17: warning[deadcode.DeadStores]: Value stored to 'trailing' during its initialization is never read
# 439| char region[ULOC_COUNTRY_CAPACITY];
# 440| int32_t regionLength = sizeof(region);
# 441|-> const char* trailing = "";
# 442| int32_t trailingLength = 0;
# 443| int32_t trailingIndex = 0;
Error: CLANG_WARNING: [#def45]
icu-74.2-build/icu/source/common/loclikely.cpp:545:17: warning[deadcode.DeadStores]: Value stored to 'trailing' during its initialization is never read
# 543| char region[ULOC_COUNTRY_CAPACITY];
# 544| int32_t regionLength = sizeof(region);
# 545|-> const char* trailing = "";
# 546| int32_t trailingLength = 0;
# 547| int32_t trailingIndex = 0;
Error: CPPCHECK_WARNING: [#def46]
icu-74.2-build/icu/source/common/loclikelysubtags.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def47]
icu-74.2-build/icu/source/common/loclikelysubtags.cpp:430:23: warning[deadcode.DeadStores]: Value stored to 'result' during its initialization is never read
# 428|
# 429| // Cache the result of looking up language="und" encoded as "*", and "und-Zzzz" ("**").
# 430|-> UStringTrieResult result = trie.next(u'*');
# 431| U_ASSERT(USTRINGTRIE_HAS_NEXT(result));
# 432| trieUndState = trie.getState64();
Error: CLANG_WARNING: [#def48]
icu-74.2-build/icu/source/common/loclikelysubtags.cpp:433:5: warning[deadcode.DeadStores]: Value stored to 'result' is never read
# 431| U_ASSERT(USTRINGTRIE_HAS_NEXT(result));
# 432| trieUndState = trie.getState64();
# 433|-> result = trie.next(u'*');
# 434| U_ASSERT(USTRINGTRIE_HAS_NEXT(result));
# 435| trieUndZzzzState = trie.getState64();
Error: CLANG_WARNING: [#def49]
icu-74.2-build/icu/source/common/loclikelysubtags.cpp:436:5: warning[deadcode.DeadStores]: Value stored to 'result' is never read
# 434| U_ASSERT(USTRINGTRIE_HAS_NEXT(result));
# 435| trieUndZzzzState = trie.getState64();
# 436|-> result = trie.next(u'*');
# 437| U_ASSERT(USTRINGTRIE_HAS_VALUE(result));
# 438| defaultLsrIndex = trie.getValue();
Error: CLANG_WARNING: [#def50]
icu-74.2-build/icu/source/common/loclikelysubtags.cpp:761:13: warning[deadcode.DeadStores]: Value stored to 'state' is never read
# 759| value = trieNext(iter, script, 0);
# 760| if (value >= 0) {
# 761|-> state = iter.getState64();
# 762| } else {
# 763| if (state == 0) {
Error: CLANG_WARNING: [#def51]
icu-74.2-build/icu/source/common/loclikelysubtags.cpp:769:17: warning[deadcode.DeadStores]: Value stored to 'state' is never read
# 767| value = trieNext(iter, "", 0);
# 768| U_ASSERT(value >= 0);
# 769|-> state = iter.getState64();
# 770| }
# 771| }
Error: CPPCHECK_WARNING: [#def52]
icu-74.2-build/icu/source/common/locmap.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def53]
icu-74.2-build/icu/source/common/locresdata.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def54]
icu-74.2-build/icu/source/common/locutil.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def55]
icu-74.2-build/icu/source/common/lsr.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def56]
icu-74.2-build/icu/source/common/lstmbe.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def57]
icu-74.2-build/icu/source/common/messagepattern.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def58]
icu-74.2-build/icu/source/common/mlbe.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def59]
icu-74.2-build/icu/source/common/normalizer2.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def60]
icu-74.2-build/icu/source/common/normalizer2.cpp:356:13: warning[core.CallAndMessage]: Called C++ object pointer is null
# 354| } else {
# 355| UnicodeString srcString(length<0, src, length);
# 356|-> n2->normalize(srcString, destString, *pErrorCode);
# 357| }
# 358| }
Error: CLANG_WARNING: [#def61]
icu-74.2-build/icu/source/common/normalizer2.cpp:409:17: warning[core.CallAndMessage]: Called C++ object pointer is null
# 407| UnicodeString secondString(secondLength<0, second, secondLength);
# 408| if(doNormalize) {
# 409|-> n2->normalizeSecondAndAppend(firstString, secondString, *pErrorCode);
# 410| } else {
# 411| n2->append(firstString, secondString, *pErrorCode);
Error: CLANG_WARNING: [#def62]
icu-74.2-build/icu/source/common/normalizer2.cpp:411:17: warning[core.CallAndMessage]: Called C++ object pointer is null
# 409| n2->normalizeSecondAndAppend(firstString, secondString, *pErrorCode);
# 410| } else {
# 411|-> n2->append(firstString, secondString, *pErrorCode);
# 412| }
# 413| }
Error: CPPCHECK_WARNING: [#def63]
icu-74.2-build/icu/source/common/normalizer2impl.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def64]
icu-74.2-build/icu/source/common/normlzr.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def65]
icu-74.2-build/icu/source/common/pluralmap.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def66]
icu-74.2-build/icu/source/common/propname.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def67]
icu-74.2-build/icu/source/common/propsvec.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def68]
icu-74.2-build/icu/source/common/punycode.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def69]
icu-74.2-build/icu/source/common/putil.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def70]
icu-74.2-build/icu/source/common/putil.cpp:936:17: warning[deadcode.DeadStores]: Value stored to 'sizeFileRead' is never read
# 934| rewind(tzInfo->defaultTZFilePtr);
# 935| tzInfo->defaultTZBuffer = (char*)uprv_malloc(sizeof(char) * tzInfo->defaultTZFileSize);
# 936|-> sizeFileRead = fread(tzInfo->defaultTZBuffer, 1, tzInfo->defaultTZFileSize, tzInfo->defaultTZFilePtr);
# 937| }
# 938| rewind(file);
Error: CLANG_WARNING: [#def71]
icu-74.2-build/icu/source/common/putil.cpp:1536:17: warning[deadcode.DeadStores]: Value stored to 'dir' during its initialization is never read
# 1534| }
# 1535|
# 1536|-> const char *dir = "";
# 1537|
# 1538| #if defined(ICU_TIMEZONE_FILES_DIR_PREFIX_ENV_VAR)
Error: CPPCHECK_WARNING: [#def72]
icu-74.2-build/icu/source/common/rbbi.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def73]
icu-74.2-build/icu/source/common/rbbi.cpp:1245:13: warning[deadcode.DeadStores]: Value stored to 'status' is never read
# 1243| fUnhandledBreakEngine = new UnhandledEngine(status);
# 1244| if (U_SUCCESS(status) && fUnhandledBreakEngine == nullptr) {
# 1245|-> status = U_MEMORY_ALLOCATION_ERROR;
# 1246| return nullptr;
# 1247| }
Error: CPPCHECK_WARNING: [#def74]
icu-74.2-build/icu/source/common/rbbi_cache.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def75]
icu-74.2-build/icu/source/common/rbbidata.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def76]
icu-74.2-build/icu/source/common/rbbinode.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def77]
icu-74.2-build/icu/source/common/rbbirb.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def78]
icu-74.2-build/icu/source/common/rbbiscan.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def79]
icu-74.2-build/icu/source/common/rbbisetb.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def80]
icu-74.2-build/icu/source/common/rbbistbl.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def81]
icu-74.2-build/icu/source/common/rbbitblb.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def82]
icu-74.2-build/icu/source/common/resbund.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def83]
icu-74.2-build/icu/source/common/serv.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def84]
icu-74.2-build/icu/source/common/servlk.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def85]
icu-74.2-build/icu/source/common/servlkf.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def86]
icu-74.2-build/icu/source/common/servls.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def87]
icu-74.2-build/icu/source/common/servnotf.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def88]
icu-74.2-build/icu/source/common/servrbf.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def89]
icu-74.2-build/icu/source/common/servslkf.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def90]
icu-74.2-build/icu/source/common/sharedobject.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def91]
icu-74.2-build/icu/source/common/simpleformatter.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def92]
icu-74.2-build/icu/source/common/static_unicode_sets.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def93]
icu-74.2-build/icu/source/common/stringpiece.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def94]
icu-74.2-build/icu/source/common/stringtriebuilder.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def95]
icu-74.2-build/icu/source/common/stringtriebuilder.cpp:183:14: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
# 181| // Write the rest of this node's unit-value pairs.
# 182| while(--unitNumber>=0) {
# 183|-> start=starts[unitNumber];
# 184| int32_t value;
# 185| if(isFinal[unitNumber]) {
Error: CPPCHECK_WARNING: [#def96]
icu-74.2-build/icu/source/common/uarrsort.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def97]
icu-74.2-build/icu/source/common/ubidi.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def98]
icu-74.2-build/icu/source/common/ubidi.cpp:1271:43: warning[core.UndefinedBinaryOperatorResult]: The left operand of '<' is a garbage value due to array index out of bounds
# 1269| lastCcPos=i;
# 1270| overflowEmbeddingCount=0;
# 1271|-> while(stack[stackLast]<ISOLATE) /* pop embedding entries */
# 1272| stackLast--; /* until the last isolate entry */
# 1273| stackLast--; /* pop also the last isolate entry */
Error: CPPCHECK_WARNING: [#def99]
icu-74.2-build/icu/source/common/ubidi_props.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def100]
icu-74.2-build/icu/source/common/ubidiln.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def101]
icu-74.2-build/icu/source/common/ubiditransform.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-562): [#def102]
icu-74.2-build/icu/source/common/ubiditransform.cpp:497: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
# 495| pBiDiTransform->dest = dest;
# 496| pBiDiTransform->destSize = destSize;
# 497|-> pBiDiTransform->pDestLength = &destLength;
# 498|
# 499| /* Checking for U_SUCCESS() within the loop to bail out on first failure. */
Error: CPPCHECK_WARNING (CWE-571): [#def103]
icu-74.2-build/icu/source/common/ubiditransform.cpp:502: error[pointerArithBool]: Converting pointer arithmetic result to bool. The bool is always true unless there is undefined behaviour.
# 500| for (action = pBiDiTransform->pActiveScheme->actions; *action && U_SUCCESS(*pErrorCode); action++) {
# 501| if ((*action)(pBiDiTransform, pErrorCode)) {
# 502|-> if (action + 1) {
# 503| updateSrc(pBiDiTransform, pBiDiTransform->dest, *pBiDiTransform->pDestLength,
# 504| *pBiDiTransform->pDestLength, pErrorCode);
Error: COMPILER_WARNING (CWE-697): [#def104]
icu-74.2-build/icu/source/common/ubiditransform.cpp: scope_hint: In function ‘uint32_t ubiditransform_transform_74(UBiDiTransform*, const char16_t*, int32_t, char16_t*, int32_t, UBiDiLevel, UBiDiOrder, UBiDiLevel, UBiDiOrder, UBiDiMirroring, uint32_t, UErrorCode*)’
icu-74.2-build/icu/source/common/ubiditransform.cpp:502:24: warning[-Waddress]: comparing the result of pointer addition ‘(action + 8)’ and NULL
# 502 | if (action + 1) {
# | ~~~~~~~^~~
# 500| for (action = pBiDiTransform->pActiveScheme->actions; *action && U_SUCCESS(*pErrorCode); action++) {
# 501| if ((*action)(pBiDiTransform, pErrorCode)) {
# 502|-> if (action + 1) {
# 503| updateSrc(pBiDiTransform, pBiDiTransform->dest, *pBiDiTransform->pDestLength,
# 504| *pBiDiTransform->pDestLength, pErrorCode);
Error: CPPCHECK_WARNING: [#def105]
icu-74.2-build/icu/source/common/ubidiwrt.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def106]
icu-74.2-build/icu/source/common/ubidiwrt.cpp:73:20: warning[core.NullDereference]: Dereference of null pointer
# 71| }
# 72| do {
# 73|-> *dest++=*src++;
# 74| } while(--length>0);
# 75| return srcLength;
Error: CLANG_WARNING: [#def107]
icu-74.2-build/icu/source/common/ubidiwrt.cpp:89:13: warning[core.NullDereference]: Array access (from variable 'dest') results in a null pointer dereference
# 87| U16_NEXT(src, i, srcLength, c);
# 88| c=u_charMirror(c);
# 89|-> U16_APPEND_UNSAFE(dest, j, c);
# 90| } while(i<srcLength);
# 91| return srcLength;
Error: CLANG_WARNING: [#def108]
icu-74.2-build/icu/source/common/ubidiwrt.cpp:112:24: warning[core.NullDereference]: Dereference of null pointer
# 110| return destSize-remaining;
# 111| }
# 112|-> *dest++=c;
# 113| }
# 114| } while(--srcLength>0);
Error: CLANG_WARNING: [#def109]
icu-74.2-build/icu/source/common/ubidiwrt.cpp:203:24: warning[core.NullDereference]: Dereference of null pointer
# 201| j=srcLength;
# 202| do {
# 203|-> *dest++=src[j++];
# 204| } while(j<i);
# 205| } while(srcLength>0);
Error: CLANG_WARNING: [#def110]
icu-74.2-build/icu/source/common/ubidiwrt.cpp:233:24: warning[core.NullDereference]: Dereference of null pointer
# 231| j=srcLength;
# 232| do {
# 233|-> *dest++=src[j++];
# 234| } while(j<i);
# 235| } while(srcLength>0);
Error: CLANG_WARNING: [#def111]
icu-74.2-build/icu/source/common/ubidiwrt.cpp:294:17: warning[core.NullDereference]: Array access (from variable 'dest') results in a null pointer dereference
# 292| int32_t k=0;
# 293| c=u_charMirror(c);
# 294|-> U16_APPEND_UNSAFE(dest, k, c);
# 295| dest+=k;
# 296| j+=k;
Error: CLANG_WARNING: [#def112]
icu-74.2-build/icu/source/common/ubidiwrt.cpp:299:24: warning[core.NullDereference]: Dereference of null pointer
# 297| }
# 298| while(j<i) {
# 299|-> *dest++=src[j++];
# 300| }
# 301| } while(srcLength>0);
Error: CLANG_WARNING: [#def113]
icu-74.2-build/icu/source/common/ubidiwrt.cpp:516:36: warning[core.NullDereference]: Dereference of null pointer
# 514| if(uc) {
# 515| if(destSize>0) {
# 516|-> *dest++=uc;
# 517| }
# 518| --destSize;
Error: CLANG_WARNING: [#def114]
icu-74.2-build/icu/source/common/ubidiwrt.cpp:560:36: warning[core.NullDereference]: Dereference of null pointer
# 558| if(uc) {
# 559| if(destSize>0) {
# 560|-> *dest++=uc;
# 561| }
# 562| --destSize;
Error: CLANG_WARNING: [#def115]
icu-74.2-build/icu/source/common/ubidiwrt.cpp:600:36: warning[core.NullDereference]: Dereference of null pointer
# 598| if(/*run<runCount-1 &&*/ dirProps[logicalStart+runLength-1]!=L) {
# 599| if(destSize>0) {
# 600|-> *dest++=LRM_CHAR;
# 601| }
# 602| --destSize;
Error: CLANG_WARNING: [#def116]
icu-74.2-build/icu/source/common/ubidiwrt.cpp:615:36: warning[core.NullDereference]: Dereference of null pointer
# 613| if(/*run>0 &&*/ dirProps[logicalStart]!=L) {
# 614| if(destSize>0) {
# 615|-> *dest++=LRM_CHAR;
# 616| }
# 617| --destSize;
Error: CLANG_WARNING: [#def117]
icu-74.2-build/icu/source/common/ubidiwrt.cpp:622:36: warning[core.NullDereference]: Dereference of null pointer
# 620| if(/*run<runCount-1 &&*/ !(MASK_R_AL&DIRPROP_FLAG(dirProps[logicalStart]))) {
# 621| if(destSize>0) {
# 622|-> *dest++=RLM_CHAR;
# 623| }
# 624| --destSize;
Error: CLANG_WARNING: [#def118]
icu-74.2-build/icu/source/common/ubidiwrt.cpp:637:36: warning[core.NullDereference]: Dereference of null pointer
# 635| if(/*run>0 &&*/ !(MASK_R_AL&DIRPROP_FLAG(dirProps[logicalStart+runLength-1]))) {
# 636| if(destSize>0) {
# 637|-> *dest++=RLM_CHAR;
# 638| }
# 639| --destSize;
Error: CPPCHECK_WARNING: [#def119]
icu-74.2-build/icu/source/common/ubrk.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def120]
icu-74.2-build/icu/source/common/ucase.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def121]
icu-74.2-build/icu/source/common/ucasemap.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def122]
icu-74.2-build/icu/source/common/ucasemap_titlecase_brkiter.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def123]
icu-74.2-build/icu/source/common/ucat.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def124]
icu-74.2-build/icu/source/common/uchar.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def125]
icu-74.2-build/icu/source/common/ucharstrie.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def126]
icu-74.2-build/icu/source/common/ucharstriebuilder.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def127]
icu-74.2-build/icu/source/common/ucharstrieiterator.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def128]
icu-74.2-build/icu/source/common/ucln_cmn.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def129]
icu-74.2-build/icu/source/common/ucmndata.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def130]
icu-74.2-build/icu/source/common/ucnv.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-562): [#def131]
icu-74.2-build/icu/source/common/ucnv.cpp:888: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
# 886|
# 887| uprv_memcpy(replay, cnv->preFromU, -cnv->preFromULength*U_SIZEOF_UCHAR);
# 888|-> pArgs->source=replay;
# 889| pArgs->sourceLimit=replay-cnv->preFromULength;
# 890| pArgs->flush=false;
Error: CPPCHECK_WARNING (CWE-562): [#def132]
icu-74.2-build/icu/source/common/ucnv.cpp:889: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
# 887| uprv_memcpy(replay, cnv->preFromU, -cnv->preFromULength*U_SIZEOF_UCHAR);
# 888| pArgs->source=replay;
# 889|-> pArgs->sourceLimit=replay-cnv->preFromULength;
# 890| pArgs->flush=false;
# 891| sourceIndex=-1;
Error: CPPCHECK_WARNING (CWE-562): [#def133]
icu-74.2-build/icu/source/common/ucnv.cpp:977: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
# 975|
# 976| uprv_memcpy(replay, cnv->preFromU, -cnv->preFromULength*U_SIZEOF_UCHAR);
# 977|-> pArgs->source=replay;
# 978| pArgs->sourceLimit=replay-cnv->preFromULength;
# 979| pArgs->flush=false;
Error: CPPCHECK_WARNING (CWE-562): [#def134]
icu-74.2-build/icu/source/common/ucnv.cpp:978: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
# 976| uprv_memcpy(replay, cnv->preFromU, -cnv->preFromULength*U_SIZEOF_UCHAR);
# 977| pArgs->source=replay;
# 978|-> pArgs->sourceLimit=replay-cnv->preFromULength;
# 979| pArgs->flush=false;
# 980| if((sourceIndex+=cnv->preFromULength)<0) {
Error: CLANG_WARNING: [#def135]
icu-74.2-build/icu/source/common/ucnv.cpp:1040:21: warning[core.StackAddressEscape]: Address of stack memory associated with local variable 'replay' is still referred to by the stack variable 'fromUArgs' upon returning to the caller. This will be a dangling reference
# 1038|
# 1039| /* done successfully */
# 1040|-> return;
# 1041| }
# 1042| }
Error: CLANG_WARNING: [#def136]
icu-74.2-build/icu/source/common/ucnv.cpp:1082:21: warning[core.StackAddressEscape]: Address of stack memory associated with local variable 'replay' is still referred to by the stack variable 'fromUArgs' upon returning to the caller. This will be a dangling reference
# 1080| }
# 1081|
# 1082|-> return;
# 1083| }
# 1084| }
Error: CPPCHECK_WARNING (CWE-562): [#def137]
icu-74.2-build/icu/source/common/ucnv.cpp:1333: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
# 1331|
# 1332| uprv_memcpy(replay, cnv->preToU, -cnv->preToULength);
# 1333|-> pArgs->source=replay;
# 1334| pArgs->sourceLimit=replay-cnv->preToULength;
# 1335| pArgs->flush=false;
Error: CPPCHECK_WARNING (CWE-562): [#def138]
icu-74.2-build/icu/source/common/ucnv.cpp:1334: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
# 1332| uprv_memcpy(replay, cnv->preToU, -cnv->preToULength);
# 1333| pArgs->source=replay;
# 1334|-> pArgs->sourceLimit=replay-cnv->preToULength;
# 1335| pArgs->flush=false;
# 1336| sourceIndex=-1;
Error: CPPCHECK_WARNING (CWE-562): [#def139]
icu-74.2-build/icu/source/common/ucnv.cpp:1422: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
# 1420|
# 1421| uprv_memcpy(replay, cnv->preToU, -cnv->preToULength);
# 1422|-> pArgs->source=replay;
# 1423| pArgs->sourceLimit=replay-cnv->preToULength;
# 1424| pArgs->flush=false;
Error: CPPCHECK_WARNING (CWE-562): [#def140]
icu-74.2-build/icu/source/common/ucnv.cpp:1423: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
# 1421| uprv_memcpy(replay, cnv->preToU, -cnv->preToULength);
# 1422| pArgs->source=replay;
# 1423|-> pArgs->sourceLimit=replay-cnv->preToULength;
# 1424| pArgs->flush=false;
# 1425| if((sourceIndex+=cnv->preToULength)<0) {
Error: CLANG_WARNING: [#def141]
icu-74.2-build/icu/source/common/ucnv.cpp:1485:21: warning[core.StackAddressEscape]: Address of stack memory associated with local variable 'replay' is still referred to by the stack variable 'toUArgs' upon returning to the caller. This will be a dangling reference
# 1483|
# 1484| /* done successfully */
# 1485|-> return;
# 1486| }
# 1487| }
Error: CLANG_WARNING: [#def142]
icu-74.2-build/icu/source/common/ucnv.cpp:1529:21: warning[core.StackAddressEscape]: Address of stack memory associated with local variable 'replay' is still referred to by the stack variable 'toUArgs' upon returning to the caller. This will be a dangling reference
# 1527| }
# 1528|
# 1529|-> return;
# 1530| }
# 1531| }
Error: CLANG_WARNING: [#def143]
icu-74.2-build/icu/source/common/ucnv.cpp:1937:21: warning[deadcode.DeadStores]: Although the value stored to 's' is used in the enclosing expression, the value is never actually read from 's'
# 1935| if(cnv->toULength==0 && cnv->sharedData->impl->getNextUChar!=nullptr) {
# 1936| c=cnv->sharedData->impl->getNextUChar(&args, err);
# 1937|-> *source=s=args.source;
# 1938| if(*err==U_INDEX_OUTOFBOUNDS_ERROR) {
# 1939| /* reset the converter without calling the callback function */
Error: CPPCHECK_WARNING: [#def144]
icu-74.2-build/icu/source/common/ucnv2022.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def145]
icu-74.2-build/icu/source/common/ucnv2022.cpp:2387:5: warning[deadcode.DeadStores]: Value stored to 'oldIsTargetByteDBCS' is never read
# 2385| useFallback = args->converter->useFallback;
# 2386| isTargetByteDBCS=(UBool)args->converter->fromUnicodeStatus;
# 2387|-> oldIsTargetByteDBCS = isTargetByteDBCS;
# 2388|
# 2389| isTargetByteDBCS = (UBool) args->converter->fromUnicodeStatus;
Error: CPPCHECK_WARNING: [#def146]
icu-74.2-build/icu/source/common/ucnv_bld.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def147]
icu-74.2-build/icu/source/common/ucnv_bld.cpp:396:5: warning[deadcode.DeadStores]: Value stored to 'mid' is never read
# 394| start = 0;
# 395| limit = UPRV_LENGTHOF(cnvNameType);
# 396|-> mid = limit;
# 397| lastMid = UINT32_MAX;
# 398|
Error: CLANG_WARNING: [#def148]
icu-74.2-build/icu/source/common/ucnv_bld.cpp:1402:13: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
# 1400| /* swap the static data */
# 1401| if(inStaticData!=outStaticData) {
# 1402|-> uprv_memcpy(outStaticData, inStaticData, staticDataSize);
# 1403| }
# 1404|
Error: CLANG_WARNING: [#def149]
icu-74.2-build/icu/source/common/ucnv_bld.cpp:1496:9: warning[deadcode.DeadStores]: Value stored to 'maxFastUChar' is never read
# 1494| * where maxFastUChar=((mbcsHeader.version[2]<<8)|0xff).
# 1495| */
# 1496|-> maxFastUChar=0;
# 1497| mbcsIndexLength=0;
# 1498| if( outputType!=MBCS_OUTPUT_EXT_ONLY && outputType!=MBCS_OUTPUT_1 &&
Error: CPPCHECK_WARNING: [#def150]
icu-74.2-build/icu/source/common/ucnv_cb.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def151]
icu-74.2-build/icu/source/common/ucnv_cnv.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def152]
icu-74.2-build/icu/source/common/ucnv_ct.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def153]
icu-74.2-build/icu/source/common/ucnv_ct.cpp:472:17: warning[deadcode.DeadStores]: Value stored to 'tmpSourceLimit' during its initialization is never read
# 470| char16_t *myTarget = args->target;
# 471| const char *mySourceLimit = args->sourceLimit;
# 472|-> const char *tmpSourceLimit = mySourceLimit;
# 473| uint32_t mySourceChar = 0x0000;
# 474| COMPOUND_TEXT_CONVERTERS currentState, tmpState;
Error: CLANG_WARNING: [#def154]
icu-74.2-build/icu/source/common/ucnv_ct.cpp:492:20: warning[deadcode.DeadStores]: Although the value stored to 'tmpState' is used in the enclosing expression, the value is never actually read from 'tmpState'
# 490| subArgs.size = (uint16_t)minArgsSize;
# 491|
# 492|-> currentState = tmpState = myConverterData->state;
# 493|
# 494| while(mySource < mySourceLimit){
Error: CPPCHECK_WARNING: [#def155]
icu-74.2-build/icu/source/common/ucnv_err.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def156]
icu-74.2-build/icu/source/common/ucnv_ext.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def157]
icu-74.2-build/icu/source/common/ucnv_io.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def158]
icu-74.2-build/icu/source/common/ucnv_io.cpp:573:5: warning[deadcode.DeadStores]: Value stored to 'mid' is never read
# 571| start = 0;
# 572| limit = gMainTable.untaggedConvArraySize;
# 573|-> mid = limit;
# 574| lastMid = UINT32_MAX;
# 575|
Error: CPPCHECK_WARNING: [#def159]
icu-74.2-build/icu/source/common/ucnv_lmb.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def160]
icu-74.2-build/icu/source/common/ucnv_u16.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def161]
icu-74.2-build/icu/source/common/ucnv_u32.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def162]
icu-74.2-build/icu/source/common/ucnv_u7.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def163]
icu-74.2-build/icu/source/common/ucnv_u8.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def164]
icu-74.2-build/icu/source/common/ucnvbocu.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def165]
icu-74.2-build/icu/source/common/ucnvbocu.cpp:623:21: warning[deadcode.DeadStores]: Value stored to 'targetCapacity' is never read
# 621|
# 622| /* target overflow */
# 623|-> targetCapacity=0;
# 624| *pErrorCode=U_BUFFER_OVERFLOW_ERROR;
# 625| break;
Error: CLANG_WARNING: [#def166]
icu-74.2-build/icu/source/common/ucnvbocu.cpp:852:21: warning[deadcode.DeadStores]: Value stored to 'targetCapacity' is never read
# 850|
# 851| /* target overflow */
# 852|-> targetCapacity=0;
# 853| *pErrorCode=U_BUFFER_OVERFLOW_ERROR;
# 854| break;
Error: CLANG_WARNING: [#def167]
icu-74.2-build/icu/source/common/ucnvbocu.cpp:1049:17: warning[deadcode.DeadStores]: Value stored to 'sourceIndex' is never read
# 1047| *offsets++=sourceIndex;
# 1048| prev=BOCU1_SIMPLE_PREV(c);
# 1049|-> sourceIndex=nextSourceIndex;
# 1050| goto fastSingle;
# 1051| }
Error: CPPCHECK_WARNING: [#def168]
icu-74.2-build/icu/source/common/ucnvdisp.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def169]
icu-74.2-build/icu/source/common/ucnvhz.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def170]
icu-74.2-build/icu/source/common/ucnvisci.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def171]
icu-74.2-build/icu/source/common/ucnvisci.cpp:1265:21: warning[deadcode.DeadStores]: Value stored to 'targetUniChar' is never read
# 1263| }
# 1264| /* byte unit is unassigned */
# 1265|-> targetUniChar = missingCharMarker;
# 1266| *err= U_INVALID_CHAR_FOUND;
# 1267| } else {
Error: CPPCHECK_WARNING: [#def172]
icu-74.2-build/icu/source/common/ucnvlat1.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def173]
icu-74.2-build/icu/source/common/ucnvlat1.cpp:414:42: warning[deadcode.DeadStores]: Although the value stored to 'sourceLimit' is used in the enclosing expression, the value is never actually read from 'sourceLimit'
# 412| * smaller sourceLimit adjustment logic.
# 413| */
# 414|-> if(U_SUCCESS(*pErrorCode) && source<(sourceLimit=(uint8_t *)pToUArgs->sourceLimit)) {
# 415| utf8->toUnicodeStatus=utf8->toUBytes[0]=b=*source++;
# 416| utf8->toULength=1;
Error: CPPCHECK_WARNING: [#def174]
icu-74.2-build/icu/source/common/ucnvmbcs.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def175]
icu-74.2-build/icu/source/common/ucnvmbcs.cpp:1135:24: warning[core.UndefinedBinaryOperatorResult]: The left operand of '<=' is a garbage value
# 1133| range=gb18030Ranges[0];
# 1134| for(i=0; i<UPRV_LENGTHOF(gb18030Ranges); range+=4, ++i) {
# 1135|-> if(range[0]<=(uint32_t)cp && (uint32_t)cp<=range[1]) {
# 1136| /* found the Unicode code point, output the four-byte sequence for it */
# 1137| uint32_t linear;
Error: CLANG_WARNING: [#def176]
icu-74.2-build/icu/source/common/ucnvmbcs.cpp:1202:24: warning[core.UndefinedBinaryOperatorResult]: The left operand of '<=' is a garbage value
# 1200| range=gb18030Ranges[0];
# 1201| for(i=0; i<UPRV_LENGTHOF(gb18030Ranges); range+=4, ++i) {
# 1202|-> if(range[2]<=linear && linear<=range[3]) {
# 1203| /* found the sequence, output the Unicode code point for it */
# 1204| *pErrorCode=U_ZERO_ERROR;
Error: CLANG_WARNING: [#def177]
icu-74.2-build/icu/source/common/ucnvmbcs.cpp:3131:13: warning[deadcode.DeadStores]: Value stored to 'offset' is never read
# 3129|
# 3130| /* end of action codes: prepare for a new character */
# 3131|-> offset=0;
# 3132|
# 3133| if(U_FAILURE(*pErrorCode)) {
Error: CLANG_WARNING: [#def178]
icu-74.2-build/icu/source/common/ucnvmbcs.cpp:3609:21: warning[deadcode.DeadStores]: Value stored to 'targetCapacity' is never read
# 3607|
# 3608| /* target overflow */
# 3609|-> targetCapacity=0;
# 3610| *pErrorCode=U_BUFFER_OVERFLOW_ERROR;
# 3611| c=0;
Error: CPPCHECK_WARNING: [#def179]
icu-74.2-build/icu/source/common/ucnvscsu.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def180]
icu-74.2-build/icu/source/common/ucnvscsu.cpp:1504:9: warning[deadcode.DeadStores]: Value stored to 'targetCapacity' is never read
# 1502|
# 1503| /* target overflow */
# 1504|-> targetCapacity=0;
# 1505| *pErrorCode=U_BUFFER_OVERFLOW_ERROR;
# 1506| c=0;
Error: CLANG_WARNING: [#def181]
icu-74.2-build/icu/source/common/ucnvscsu.cpp:1943:9: warning[deadcode.DeadStores]: Value stored to 'targetCapacity' is never read
# 1941|
# 1942| /* target overflow */
# 1943|-> targetCapacity=0;
# 1944| *pErrorCode=U_BUFFER_OVERFLOW_ERROR;
# 1945| c=0;
Error: CPPCHECK_WARNING: [#def182]
icu-74.2-build/icu/source/common/ucnvsel.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def183]
icu-74.2-build/icu/source/common/ucnvsel.cpp:235:15: warning[core.NullDereference]: Array access (via field 'encodings') results in a null pointer dereference
# 233| }
# 234| if (sel->ownEncodingStrings) {
# 235|-> uprv_free(sel->encodings[0]);
# 236| }
# 237| uprv_free(sel->encodings);
Error: CLANG_WARNING: [#def184]
icu-74.2-build/icu/source/common/ucnvsel.cpp:347:3: warning[deadcode.DeadStores]: Value stored to 'p' is never read
# 345|
# 346| uprv_memcpy(p, sel->encodings[0], sel->encodingStrLength);
# 347|-> p += sel->encodingStrLength;
# 348|
# 349| return totalSize;
Error: CLANG_WARNING: [#def185]
icu-74.2-build/icu/source/common/ucnvsel.cpp:456:5: warning[deadcode.DeadStores]: Value stored to 'offset' is never read
# 454| count = indexes[UCNVSEL_INDEX_NAMES_LENGTH];
# 455| ds->swapInvChars(ds, inBytes + offset, count, outBytes + offset, status);
# 456|-> offset += count;
# 457|
# 458| U_ASSERT(offset == size);
Error: CLANG_WARNING: [#def186]
icu-74.2-build/icu/source/common/ucnvsel.cpp:586:3: warning[deadcode.DeadStores]: Value stored to 'p' is never read
# 584| s += uprv_strlen(s) + 1;
# 585| }
# 586|-> p += sel->encodingStrLength;
# 587|
# 588| return sel;
Error: CPPCHECK_WARNING: [#def187]
icu-74.2-build/icu/source/common/ucol_swp.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def188]
icu-74.2-build/icu/source/common/ucptrie.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def189]
icu-74.2-build/icu/source/common/ucurr.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def190]
icu-74.2-build/icu/source/common/udata.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def191]
icu-74.2-build/icu/source/common/udata.cpp:860:11: warning[deadcode.DeadStores]: Value stored to 'didUpdate' is never read
# 858| /* to CommonICUData. */
# 859|
# 860|-> didUpdate = /* no longer using this result */
# 861| setCommonICUData(©PData,/* The new common data. */
# 862| false, /* No warnings if write didn't happen */
Error: CLANG_WARNING: [#def192]
icu-74.2-build/icu/source/common/udata.cpp:1119:14: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
# 1117| */
# 1118| static UBool isTimeZoneFile(const char *name, const char *type) {
# 1119|-> return ((uprv_strcmp(type, "res") == 0) &&
# 1120| (uprv_strcmp(name, "zoneinfo64") == 0 ||
# 1121| uprv_strcmp(name, "timezoneTypes") == 0 ||
Error: CPPCHECK_WARNING: [#def193]
icu-74.2-build/icu/source/common/udatamem.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def194]
icu-74.2-build/icu/source/common/udataswp.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def195]
icu-74.2-build/icu/source/common/uenum.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-562): [#def196]
icu-74.2-build/icu/source/common/uenum.cpp:170: error[returnDanglingLifetime]: Returning pointer to local variable 'dummyLength' that will be invalid when returning.
# 168| else {
# 169| int32_t dummyLength=0;
# 170|-> return en->next(en, &dummyLength, status);
# 171| }
# 172| } else {
Error: CPPCHECK_WARNING: [#def197]
icu-74.2-build/icu/source/common/uhash.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def198]
icu-74.2-build/icu/source/common/uhash_us.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def199]
icu-74.2-build/icu/source/common/uidna.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def200]
icu-74.2-build/icu/source/common/uidna.cpp:106:12: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
# 104|
# 105| c1 = s1[i];
# 106|-> c2 = s2[i];
# 107|
# 108| /* Case-insensitive comparison */
Error: CLANG_WARNING: [#def201]
icu-74.2-build/icu/source/common/uidna.cpp:839:28: warning[core.NullDereference]: Dereference of null pointer
# 837| // Unlike the ToASCII operation we don't normalize the label separators
# 838| if(remainingDestCapacity > 0){
# 839|-> *currentDest++ = *(labelStart + labelLen);
# 840| remainingDestCapacity--;
# 841| }
Error: CPPCHECK_WARNING: [#def202]
icu-74.2-build/icu/source/common/uinit.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def203]
icu-74.2-build/icu/source/common/uinvchar.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def204]
icu-74.2-build/icu/source/common/uiter.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def205]
icu-74.2-build/icu/source/common/ulist.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def206]
icu-74.2-build/icu/source/common/uloc.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def207]
icu-74.2-build/icu/source/common/uloc.cpp:1621:17: warning[deadcode.DeadStores]: Value stored to 'variantSize' is never read
# 1619| posixVariantSize += tag.length();
# 1620| if (posixVariantSize > 0) {
# 1621|-> variantSize += posixVariantSize;
# 1622| }
# 1623| }
Error: CPPCHECK_WARNING: [#def208]
icu-74.2-build/icu/source/common/uloc_keytype.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def209]
icu-74.2-build/icu/source/common/uloc_tag.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def210]
icu-74.2-build/icu/source/common/uloc_tag.cpp:1688:17: warning[core.NonNullParamChecker]: Null pointer passed to 2nd parameter expecting 'nonnull'
# 1686| U_ASSERT(bcpKeyLen <= 2);
# 1687|
# 1688|-> uprv_strncpy(bcpKeyBuf, pBcpKey, bcpKeyLen);
# 1689| bcpKeyBuf[bcpKeyLen] = 0;
# 1690|
Error: CPPCHECK_WARNING: [#def211]
icu-74.2-build/icu/source/common/ulocale.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def212]
icu-74.2-build/icu/source/common/ulocbuilder.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def213]
icu-74.2-build/icu/source/common/umutablecptrie.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-457): [#def214]
icu-74.2-build/icu/source/common/umutablecptrie.cpp:338: error[uninitvar]: Uninitialized variable: trieValue
# 336| uint32_t trieValue2 = data[di];
# 337| if (haveValue) {
# 338|-> if (trieValue2 != trieValue) {
# 339| if (filter == nullptr ||
# 340| maybeFilterValue(trieValue2, initialValue, nullValue,
Error: CPPCHECK_WARNING (CWE-457): [#def215]
icu-74.2-build/icu/source/common/umutablecptrie.cpp:341: error[uninitvar]: Uninitialized variable: value
# 339| if (filter == nullptr ||
# 340| maybeFilterValue(trieValue2, initialValue, nullValue,
# 341|-> filter, context) != value) {
# 342| return c - 1;
# 343| }
Error: CPPCHECK_WARNING (CWE-786): [#def216]
icu-74.2-build/icu/source/common/umutablecptrie.cpp:733: error[negativeIndex]: Array 'indexes[32]' accessed at index -1, which is out of bounds.
# 731| U_ASSERT(least >= 0);
# 732| mostRecent = least;
# 733|-> indexes[least] = index;
# 734| values[least] = value;
# 735| refCounts[least] = count;
Error: CPPCHECK_WARNING (CWE-786): [#def217]
icu-74.2-build/icu/source/common/umutablecptrie.cpp:734: error[negativeIndex]: Array 'values[32]' accessed at index -1, which is out of bounds.
# 732| mostRecent = least;
# 733| indexes[least] = index;
# 734|-> values[least] = value;
# 735| refCounts[least] = count;
# 736| }
Error: CPPCHECK_WARNING (CWE-786): [#def218]
icu-74.2-build/icu/source/common/umutablecptrie.cpp:735: error[negativeIndex]: Array 'refCounts[32]' accessed at index -1, which is out of bounds.
# 733| indexes[least] = index;
# 734| values[least] = value;
# 735|-> refCounts[least] = count;
# 736| }
# 737|
Error: CPPCHECK_WARNING (CWE-786): [#def219]
icu-74.2-build/icu/source/common/umutablecptrie.cpp:748: error[negativeIndex]: Array 'indexes[32]' accessed at index -1, which is out of bounds.
# 746| }
# 747| }
# 748|-> return indexes[max];
# 749| }
# 750|
Error: CLANG_WARNING: [#def220]
icu-74.2-build/icu/source/common/umutablecptrie.cpp:847:9: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
# 845| uint32_t makeHashCode(const UInt *blockData, int32_t blockStart) const {
# 846| int32_t blockLimit = blockStart + blockLength;
# 847|-> uint32_t hashCode = blockData[blockStart++];
# 848| do {
# 849| hashCode = 37 * hashCode + blockData[blockStart++];
Error: CLANG_WARNING: [#def221]
icu-74.2-build/icu/source/common/umutablecptrie.cpp:849:38: warning[core.UndefinedBinaryOperatorResult]: The right operand of '+' is a garbage value
# 847| uint32_t hashCode = blockData[blockStart++];
# 848| do {
# 849|-> hashCode = 37 * hashCode + blockData[blockStart++];
# 850| } while (blockStart < blockLimit);
# 851| return hashCode;
Error: CPPCHECK_WARNING: [#def222]
icu-74.2-build/icu/source/common/umutex.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def223]
icu-74.2-build/icu/source/common/unistr.cpp:34: included_from: Included from here.
icu-74.2-build/icu/source/common/umutex.h:88:12: warning[core.CallAndMessage]: Called C++ object pointer is null
# 86|
# 87| inline int32_t umtx_atomic_dec(u_atomic_int32_t *var) {
# 88|-> return var->fetch_sub(1) - 1;
# 89| }
# 90|
Error: CPPCHECK_WARNING: [#def224]
icu-74.2-build/icu/source/common/unames.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def225]
icu-74.2-build/icu/source/common/unames.cpp:1029:44: warning[core.UndefinedBinaryOperatorResult]: The left operand of '+' is a garbage value due to array index out of bounds
# 1027| i=count;
# 1028| for (;;) {
# 1029|-> idx=(uint16_t)(indexes[--i]+1);
# 1030| if(idx<factors[i]) {
# 1031| /* skip one index and its element string */
Error: CPPCHECK_WARNING (CWE-457): [#def226]
icu-74.2-build/icu/source/common/unames.cpp:1740: warning[uninitvar]: Uninitialized variable: cs
# 1738|
# 1739| /* convert the char string to a char16_t string */
# 1740|-> u_charsToUChars(cs, us, length);
# 1741|
# 1742| /* add each char16_t to the USet */
Error: CLANG_WARNING: [#def227]
icu-74.2-build/icu/source/common/unames.cpp:1912:13: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
# 1910| /* copy the data for inaccessible bytes */
# 1911| if(inBytes!=outBytes) {
# 1912|-> uprv_memcpy(outBytes, inBytes, length);
# 1913| }
# 1914|
Error: COMPILER_WARNING: [#def228]
icu-74.2-build/icu/source/common/unicode/char16ptr.h:222:53: warning[-Wdangling-pointer=]: dangling pointer to an unnamed temporary may be used
# 222 | ConstChar16Ptr::ConstChar16Ptr(const char16_t *p) : p_(p) {}
# | ^~~~~
icu-74.2-build/icu/source/i18n/number_skeletons.cpp: scope_hint: In function ‘icu_74::number::impl::blueprint_helpers::parseCurrencyOption(icu_74::StringSegment const&, icu_74::number::impl::MacroProps&, UErrorCode&)’
icu-74.2-build/icu/source/i18n/number_skeletons.cpp:1025:63: note: unnamed temporary defined here
# 1025 | const char16_t* currencyCode = segment.toTempUnicodeString().getBuffer();
# | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
# 220| #ifdef U_ALIASING_BARRIER
# 221|
# 222|-> ConstChar16Ptr::ConstChar16Ptr(const char16_t *p) : p_(p) {}
# 223| #if !U_CHAR16_IS_TYPEDEF
# 224| ConstChar16Ptr::ConstChar16Ptr(const uint16_t *p) : p_(cast(p)) {}
Error: CLANG_WARNING: [#def229]
icu-74.2-build/icu/source/tools/gennorm2/gennorm2.cpp:23: included_from: Included from here.
icu-74.2-build/icu/source/tools/gennorm2/n2builder.h:27: included_from: Included from here.
icu-74.2-build/icu/source/common/unicode/umutablecptrie.h:13: included_from: Included from here.
icu-74.2-build/icu/source/common/unicode/ucptrie.h:15: included_from: Included from here.
icu-74.2-build/icu/source/common/unicode/localpointer.h:128:28: warning[core.uninitialized.UndefReturn]: Returning null reference
# 126| * @stable ICU 4.4
# 127| */
# 128|-> T &operator*() const { return *ptr; }
# 129| /**
# 130| * Access without ownership change.
Error: COMPILER_WARNING: [#def230]
icu-74.2-build/icu/source/common/cmemory.h:33: included_from: Included from here.
icu-74.2-build/icu/source/tools/pkgdata/pkgdata.cpp:35: included_from: Included from here.
icu-74.2-build/icu/source/common/unicode/localpointer.h:561:86: warning[-Wignored-attributes]: ignoring attributes on template argument ‘int (*)(FILE*)’
# 561 | explicit LocalPointerClassName(std::unique_ptr<Type, decltype(&closeFunction)> &&p) \
# | ^
icu-74.2-build/icu/source/tools/pkgdata/pkgdata.cpp:66:1: note: in expansion of macro ‘U_DEFINE_LOCAL_OPEN_POINTER’
# 66 | U_DEFINE_LOCAL_OPEN_POINTER(LocalPipeFilePointer, FILE, pclose);
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~
# 559| } \
# 560| /* TODO: Be agnostic of the deleter function signature from the user-provided std::unique_ptr? */ \
# 561|-> explicit LocalPointerClassName(std::unique_ptr<Type, decltype(&closeFunction)> &&p) \
# 562| : LocalPointerBase<Type>(p.release()) {} \
# 563| ~LocalPointerClassName() { if (ptr != nullptr) { closeFunction(ptr); } } \
Error: COMPILER_WARNING: [#def231]
icu-74.2-build/icu/source/common/unicode/localpointer.h:571:88: warning[-Wignored-attributes]: ignoring attributes on template argument ‘int (*)(FILE*)’
# 571 | LocalPointerClassName &operator=(std::unique_ptr<Type, decltype(&closeFunction)> &&p) { \
# | ^
icu-74.2-build/icu/source/tools/pkgdata/pkgdata.cpp:66:1: note: in expansion of macro ‘U_DEFINE_LOCAL_OPEN_POINTER’
# 66 | U_DEFINE_LOCAL_OPEN_POINTER(LocalPipeFilePointer, FILE, pclose);
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~
# 569| } \
# 570| /* TODO: Be agnostic of the deleter function signature from the user-provided std::unique_ptr? */ \
# 571|-> LocalPointerClassName &operator=(std::unique_ptr<Type, decltype(&closeFunction)> &&p) { \
# 572| adoptInstead(p.release()); \
# 573| return *this; \
Error: COMPILER_WARNING: [#def232]
icu-74.2-build/icu/source/common/unicode/localpointer.h:587:64: warning[-Wignored-attributes]: ignoring attributes on template argument ‘int (*)(FILE*)’
# 587 | operator std::unique_ptr<Type, decltype(&closeFunction)> () && { \
# | ^
icu-74.2-build/icu/source/tools/pkgdata/pkgdata.cpp:66:1: note: in expansion of macro ‘U_DEFINE_LOCAL_OPEN_POINTER’
# 66 | U_DEFINE_LOCAL_OPEN_POINTER(LocalPipeFilePointer, FILE, pclose);
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~
# 585| ptr=p; \
# 586| } \
# 587|-> operator std::unique_ptr<Type, decltype(&closeFunction)> () && { \
# 588| return std::unique_ptr<Type, decltype(&closeFunction)>(LocalPointerBase<Type>::orphan(), closeFunction); \
# 589| } \
Error: COMPILER_WARNING: [#def233]
icu-74.2-build/icu/source/tools/pkgdata/pkgdata.cpp: scope_hint: In member function ‘LocalPipeFilePointer::operator std::unique_ptr<_IO_FILE, int (*)(_IO_FILE*)>() &&’
icu-74.2-build/icu/source/common/unicode/localpointer.h:588:66: warning[-Wignored-attributes]: ignoring attributes on template argument ‘int (*)(FILE*)’
# 588 | return std::unique_ptr<Type, decltype(&closeFunction)>(LocalPointerBase<Type>::orphan(), closeFunction); \
# | ^
icu-74.2-build/icu/source/tools/pkgdata/pkgdata.cpp:66:1: note: in expansion of macro ‘U_DEFINE_LOCAL_OPEN_POINTER’
# 66 | U_DEFINE_LOCAL_OPEN_POINTER(LocalPipeFilePointer, FILE, pclose);
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~
# 586| } \
# 587| operator std::unique_ptr<Type, decltype(&closeFunction)> () && { \
# 588|-> return std::unique_ptr<Type, decltype(&closeFunction)>(LocalPointerBase<Type>::orphan(), closeFunction); \
# 589| } \
# 590| }
Error: CPPCHECK_WARNING: [#def234]
icu-74.2-build/icu/source/common/unifiedcache.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def235]
icu-74.2-build/icu/source/common/unifilt.cpp:53:18: warning[deadcode.DeadStores]: Although the value stored to 'c' is used in the enclosing expression, the value is never actually read from 'c'
# 51| }
# 52| if (offset > limit &&
# 53|-> contains(c = text.char32At(offset))) {
# 54| // Backup offset by 1, unless the preceding character is a
# 55| // surrogate pair -- then backup by 2 (keep offset pointing at
Error: CPPCHECK_WARNING: [#def236]
icu-74.2-build/icu/source/common/uniset.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def237]
icu-74.2-build/icu/source/common/uniset_closure.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def238]
icu-74.2-build/icu/source/common/uniset_props.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def239]
icu-74.2-build/icu/source/common/uniset_props.cpp:385:17: warning[deadcode.DeadStores]: Value stored to 'lastItem' is never read
# 383| add(lastChar, lastChar);
# 384| _appendToPat(patLocal, lastChar, false);
# 385|-> lastItem = 0;
# 386| op = 0;
# 387| }
Error: CPPCHECK_WARNING: [#def240]
icu-74.2-build/icu/source/common/unisetspan.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def241]
icu-74.2-build/icu/source/common/unisetspan.cpp:154:16: warning[deadcode.DeadStores]: Although the value stored to 'result' is used in the enclosing expression, the value is never actually read from 'result'
# 152| --length;
# 153| start=i;
# 154|-> return result+=i;
# 155| }
# 156|
Error: CPPCHECK_WARNING: [#def242]
icu-74.2-build/icu/source/common/unistr.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def243]
icu-74.2-build/icu/source/common/unistr_case.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def244]
icu-74.2-build/icu/source/common/unistr_cnv.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def245]
icu-74.2-build/icu/source/common/unistr_props.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def246]
icu-74.2-build/icu/source/common/unorm.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def247]
icu-74.2-build/icu/source/common/unormcmp.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-786): [#def248]
icu-74.2-build/icu/source/common/unormcmp.cpp:230: error[negativeIndex]: Array 'stack1[2]' accessed at index -1, which is out of bounds.
# 228| do {
# 229| --level1;
# 230|-> start1=stack1[level1].start; /*Not uninitialized*/
# 231| } while(start1==nullptr);
# 232| s1=stack1[level1].s; /*Not uninitialized*/
Error: CPPCHECK_WARNING (CWE-457): [#def249]
icu-74.2-build/icu/source/common/unormcmp.cpp:230: warning[uninitvar]: Uninitialized variables: stack1.start, stack1.s, stack1.limit
# 228| do {
# 229| --level1;
# 230|-> start1=stack1[level1].start; /*Not uninitialized*/
# 231| } while(start1==nullptr);
# 232| s1=stack1[level1].s; /*Not uninitialized*/
Error: CLANG_WARNING: [#def250]
icu-74.2-build/icu/source/common/unormcmp.cpp:332:23: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
# 330| */
# 331| --s2;
# 332|-> c2=*(s2-1);
# 333| }
# 334| }
Error: CPPCHECK_WARNING: [#def251]
icu-74.2-build/icu/source/common/uobject.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def252]
icu-74.2-build/icu/source/common/uprops.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def253]
icu-74.2-build/icu/source/common/ures_cnv.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-457): [#def254]
icu-74.2-build/icu/source/common/ures_cnv.cpp:77: warning[uninitvar]: Uninitialized variable: path
# 75| }
# 76|
# 77|-> return ures_open(path, localeID, status);
# 78| }
Error: CPPCHECK_WARNING: [#def255]
icu-74.2-build/icu/source/common/uresbund.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def256]
icu-74.2-build/icu/source/common/uresbund.cpp:927:13: warning[deadcode.DeadStores]: Value stored to 'hasRealData' is never read
# 925| t1 = r;
# 926| intStatus = U_USING_DEFAULT_WARNING;
# 927|-> hasRealData = true;
# 928| } else { /* we don't even have the root locale */
# 929| *status = U_MISSING_RESOURCE_ERROR;
Error: CLANG_WARNING: [#def257]
icu-74.2-build/icu/source/common/uresbund.cpp:1940:12: warning[core.CallAndMessage]: 2nd function call argument is an uninitialized value
# 1938| int32_t length16;
# 1939| const char16_t *s16 = ures_getStringByIndex(resB, idx, &length16, status);
# 1940|-> return ures_toUTF8String(s16, length16, dest, pLength, forceCopy, status);
# 1941| }
# 1942|
Error: CLANG_WARNING: [#def258]
icu-74.2-build/icu/source/common/uresbund.cpp:2371:34: warning[deadcode.DeadStores]: Value stored to 'res' during its initialization is never read
# 2369| dest.put(parentKey, aliasedValue, isRoot, errorCode);
# 2370| UResourceDataEntry* entry = aliasRB->fData;
# 2371|-> Resource res = aliasRB->fRes;
# 2372| while (aliasedValueType == URES_TABLE && entry->fParent != nullptr) {
# 2373| CharString localPath;
Error: CLANG_WARNING: [#def259]
icu-74.2-build/icu/source/common/uresbund.cpp:2637:12: warning[core.CallAndMessage]: 2nd function call argument is an uninitialized value
# 2635| int32_t length16;
# 2636| const char16_t *s16 = ures_getStringByKey(resB, key, &length16, status);
# 2637|-> return ures_toUTF8String(s16, length16, dest, pLength, forceCopy, status);
# 2638| }
# 2639|
Error: CPPCHECK_WARNING: [#def260]
icu-74.2-build/icu/source/common/uresdata.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def261]
icu-74.2-build/icu/source/common/usc_impl.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def262]
icu-74.2-build/icu/source/common/uscript.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def263]
icu-74.2-build/icu/source/common/uscript_props.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def264]
icu-74.2-build/icu/source/common/uset.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def265]
icu-74.2-build/icu/source/common/uset_props.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def266]
icu-74.2-build/icu/source/common/usetiter.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def267]
icu-74.2-build/icu/source/common/usetiter.cpp:147:5: warning[core.uninitialized.UndefReturn]: Returning null reference
# 145| string = cpString;
# 146| }
# 147|-> return *string;
# 148| }
# 149|
Error: CPPCHECK_WARNING: [#def268]
icu-74.2-build/icu/source/common/ushape.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def269]
icu-74.2-build/icu/source/common/ushape.cpp:1245:14: warning[deadcode.DeadStores]: Although the value stored to 'Nw' is used in the enclosing expression, the value is never actually read from 'Nw'
# 1243|
# 1244| lastPos = i;
# 1245|-> Nx = -2, Nw = 0;
# 1246|
# 1247| while (i != iend) {
Error: CPPCHECK_WARNING: [#def270]
icu-74.2-build/icu/source/common/usprep.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def271]
icu-74.2-build/icu/source/common/usprep.cpp:531:9: warning[deadcode.DeadStores]: Value stored to 'result' is never read
# 529| U16_NEXT(src,srcIndex,srcLength,ch);
# 530|
# 531|-> result=0;
# 532|
# 533| UTRIE_GET16(&profile->sprepTrie,ch,result);
Error: CPPCHECK_WARNING: [#def272]
icu-74.2-build/icu/source/common/ustack.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def273]
icu-74.2-build/icu/source/common/ustr_cnv.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def274]
icu-74.2-build/icu/source/common/ustr_titlecase_brkiter.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def275]
icu-74.2-build/icu/source/common/ustr_wcs.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def276]
icu-74.2-build/icu/source/common/ustrcase.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-786): [#def277]
icu-74.2-build/icu/source/common/ustrcase.cpp:1571: error[negativeIndex]: Array 'stack1[2]' accessed at index -1, which is out of bounds.
# 1569| do {
# 1570| --level1;
# 1571|-> start1=stack1[level1].start; /*Not uninitialized*/
# 1572| } while(start1==nullptr);
# 1573| s1=stack1[level1].s; /*Not uninitialized*/
Error: CPPCHECK_WARNING (CWE-457): [#def278]
icu-74.2-build/icu/source/common/ustrcase.cpp:1571: warning[uninitvar]: Uninitialized variables: stack1.start, stack1.s, stack1.limit
# 1569| do {
# 1570| --level1;
# 1571|-> start1=stack1[level1].start; /*Not uninitialized*/
# 1572| } while(start1==nullptr);
# 1573| s1=stack1[level1].s; /*Not uninitialized*/
Error: CPPCHECK_WARNING: [#def279]
icu-74.2-build/icu/source/common/ustrenum.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def280]
icu-74.2-build/icu/source/common/ustrenum.cpp:79:12: warning[core.CallAndMessage]: 2nd function call argument is an uninitialized value
# 77| int32_t length;
# 78| const char *s=next(&length, status);
# 79|-> return setChars(s, length, status);
# 80| }
# 81|
Error: CPPCHECK_WARNING: [#def281]
icu-74.2-build/icu/source/common/ustrfmt.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def282]
icu-74.2-build/icu/source/common/ustring.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def283]
icu-74.2-build/icu/source/common/ustrtrns.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def284]
icu-74.2-build/icu/source/common/ustrtrns.cpp:358:26: warning[deadcode.DeadStores]: Although the value stored to '__t2' is used in the enclosing expression, the value is never actually read from '__t2'
# 356| (0xe0<=(c) && (c)<0xf0) &&
# 357| U8_IS_VALID_LEAD3_AND_T1((c), src[i]) &&
# 358|-> (__t2=src[(i)+1]-0x80)<=0x3f) {
# 359| ++reqLength;
# 360| i+=2;
Error: CLANG_WARNING: [#def285]
icu-74.2-build/icu/source/common/ustrtrns.cpp:363:26: warning[deadcode.DeadStores]: Although the value stored to '__t1' is used in the enclosing expression, the value is never actually read from '__t1'
# 361| } else if( /* handle U+0080..U+07FF inline */
# 362| ((c)<0xe0 && (c)>=0xc2) &&
# 363|-> (__t1=src[i]-0x80)<=0x3f) {
# 364| ++reqLength;
# 365| ++(i);
Error: CLANG_WARNING: [#def286]
icu-74.2-build/icu/source/common/ustrtrns.cpp:501:26: warning[deadcode.DeadStores]: Although the value stored to '__t2' is used in the enclosing expression, the value is never actually read from '__t2'
# 499| ((i)+1)<srcLength &&
# 500| U8_IS_VALID_LEAD3_AND_T1((c), src[i]) &&
# 501|-> (__t2=src[(i)+1]-0x80)<=0x3f) {
# 502| ++reqLength;
# 503| i+=2;
Error: CLANG_WARNING: [#def287]
icu-74.2-build/icu/source/common/ustrtrns.cpp:507:26: warning[deadcode.DeadStores]: Although the value stored to '__t1' is used in the enclosing expression, the value is never actually read from '__t1'
# 505| ((c)<0xe0 && (c)>=0xc2) &&
# 506| ((i)!=srcLength) &&
# 507|-> (__t1=src[i]-0x80)<=0x3f) {
# 508| ++reqLength;
# 509| ++(i);
Error: CLANG_WARNING: [#def288]
icu-74.2-build/icu/source/common/ustrtrns.cpp:774:17: warning[core.NullDereference]: Dereference of null pointer
# 772| /* it is 0<=c<=0x10ffff and not a surrogate if called by a validating function */
# 773| if((c)<=0x7f) {
# 774|-> *pDest++=(uint8_t)c;
# 775| } else if(c<=0x7ff) {
# 776| *pDest++=(uint8_t)((c>>6)|0xc0);
Error: CLANG_WARNING: [#def289]
icu-74.2-build/icu/source/common/ustrtrns.cpp:779:17: warning[core.NullDereference]: Dereference of null pointer
# 777| *pDest++=(uint8_t)((c&0x3f)|0x80);
# 778| } else if(c<=0xffff) {
# 779|-> *pDest++=(uint8_t)((c>>12)|0xe0);
# 780| *pDest++=(uint8_t)(((c>>6)&0x3f)|0x80);
# 781| *pDest++=(uint8_t)(((c)&0x3f)|0x80);
Error: CLANG_WARNING: [#def290]
icu-74.2-build/icu/source/common/ustrtrns.cpp:783:17: warning[core.NullDereference]: Dereference of null pointer
# 781| *pDest++=(uint8_t)(((c)&0x3f)|0x80);
# 782| } else /* if((uint32_t)(c)<=0x10ffff) */ {
# 783|-> *pDest++=(uint8_t)(((c)>>18)|0xf0);
# 784| *pDest++=(uint8_t)((((c)>>12)&0x3f)|0x80);
# 785| *pDest++=(uint8_t)((((c)>>6)&0x3f)|0x80);
Error: CPPCHECK_WARNING (CWE-682): [#def291]
icu-74.2-build/icu/source/common/ustrtrns.cpp:909: error[nullPointerArithmetic]: Overflow in pointer arithmetic, NULL pointer is subtracted.
# 907| */
# 908| count = (int32_t)((pDestLimit - pDest) / 3);
# 909|-> srcLength = (int32_t)(pSrcLimit - pSrc);
# 910| if(count > srcLength) {
# 911| count = srcLength; /* min(remaining dest/3, remaining src) */
Error: CPPCHECK_WARNING (CWE-682): [#def292]
icu-74.2-build/icu/source/common/ustrtrns.cpp:1361: error[nullPointerArithmetic]: Overflow in pointer arithmetic, NULL pointer is subtracted.
# 1359| for(;;) {
# 1360| count = (int32_t)(pDestLimit - pDest);
# 1361|-> srcLength = (int32_t)(pSrcLimit - src);
# 1362| if(count >= srcLength && srcLength > 0 && *src <= 0x7f) {
# 1363| /* fast ASCII loop */
Error: CPPCHECK_WARNING: [#def293]
icu-74.2-build/icu/source/common/utext.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def294]
icu-74.2-build/icu/source/common/utext.cpp:2550:13: warning[deadcode.DeadStores]: Value stored to 'limit32' is never read
# 2548| ut->nativeIndexingLimit = si;
# 2549| strLength = si;
# 2550|-> limit32 = si;
# 2551| break;
# 2552| }
Error: CLANG_WARNING: [#def295]
icu-74.2-build/icu/source/common/utext.cpp:2576:24: warning[core.NullDereference]: Array access (from variable 'dest') results in a null pointer dereference
# 2574| if (di<destCapacity) {
# 2575| // store only if there is space in the output buffer.
# 2576|-> dest[di++] = s[si];
# 2577| }
# 2578| si++;
Error: CPPCHECK_WARNING: [#def296]
icu-74.2-build/icu/source/common/utf_impl.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def297]
icu-74.2-build/icu/source/common/util.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def298]
icu-74.2-build/icu/source/common/util_props.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def299]
icu-74.2-build/icu/source/common/utrace.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def300]
icu-74.2-build/icu/source/common/utrie.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def301]
icu-74.2-build/icu/source/common/utrie2.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def302]
icu-74.2-build/icu/source/common/utrie2.cpp:520:25: warning[core.NullDereference]: Array access (via field 'index1') results in a null pointer dereference
# 518| (c>>UTRIE2_SHIFT_1)];
# 519| } else {
# 520|-> i2Block=trie->newTrie->index1[c>>UTRIE2_SHIFT_1];
# 521| }
# 522| if(i2Block==prevI2Block && (c-prev)>=UTRIE2_CP_PER_INDEX_1_ENTRY) {
Error: CLANG_WARNING: [#def303]
icu-74.2-build/icu/source/common/utrie2.cpp:557:27: warning[core.NullDereference]: Array access (via field 'index2') results in a null pointer dereference
# 555| block=(int32_t)idx[i2Block+i2]<<UTRIE2_INDEX_SHIFT;
# 556| } else {
# 557|-> block=trie->newTrie->index2[i2Block+i2];
# 558| }
# 559| if(block==prevBlock && (c-prev)>=UTRIE2_DATA_BLOCK_LENGTH) {
Error: CLANG_WARNING: [#def304]
icu-74.2-build/icu/source/common/utrie2.cpp:577:86: warning[core.NullDereference]: Array access (from variable 'idx') results in a null pointer dereference
# 575| } else {
# 576| for(j=0; j<UTRIE2_DATA_BLOCK_LENGTH; ++j) {
# 577|-> value=enumValue(context, data32!=nullptr ? data32[block+j] : idx[block+j]);
# 578| if(value!=prevValue) {
# 579| if(prev<c && !enumRange(context, prev, c-1, prevValue)) {
Error: CLANG_WARNING: [#def305]
icu-74.2-build/icu/source/common/utrie2.cpp:603:23: warning[core.NullDereference]: Access to field 'data' results in a dereference of a null pointer (loaded from field 'newTrie')
# 601| idx[trie->highValueIndex];
# 602| } else {
# 603|-> highValue=trie->newTrie->data[trie->newTrie->dataLength-UTRIE2_DATA_GRANULARITY];
# 604| }
# 605| value=enumValue(context, highValue);
Error: CPPCHECK_WARNING: [#def306]
icu-74.2-build/icu/source/common/utrie2_builder.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def307]
icu-74.2-build/icu/source/common/utrie_swap.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def308]
icu-74.2-build/icu/source/common/uts46.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def309]
icu-74.2-build/icu/source/common/utypes.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def310]
icu-74.2-build/icu/source/common/uvector.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def311]
icu-74.2-build/icu/source/common/uvectr32.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def312]
icu-74.2-build/icu/source/common/uvectr64.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def313]
icu-74.2-build/icu/source/extra/scrptrun/scrptrun.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def314]
icu-74.2-build/icu/source/extra/scrptrun/scrptrun.cpp:79:9: warning[deadcode.DeadStores]: Value stored to 'value' is never read
# 77|
# 78| if (value >= 1 << 1) {
# 79|-> value >>= 1;
# 80| bit += 1;
# 81| }
Error: CPPCHECK_WARNING: [#def315]
icu-74.2-build/icu/source/extra/scrptrun/srtest.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def316]
icu-74.2-build/icu/source/extra/uconv/uconv.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-909): [#def317]
icu-74.2-build/icu/source/extra/uconv/uconv.cpp:674: error[uninitStructMember]: Uninitialized struct member: parse.offset
# 672| char16_t linebuf[20], offsetbuf[20];
# 673| uprv_itou(linebuf, 20, parse.line, 10, 0);
# 674|-> uprv_itou(offsetbuf, 20, parse.offset, 10, 0);
# 675| u_wmsg(stderr, "cantCreateTranslitParseErr", str.getTerminatedBuffer(),
# 676| u_wmsg_errorName(err), linebuf, offsetbuf);
Error: CLANG_WARNING: [#def318]
icu-74.2-build/icu/source/extra/uconv/uconv.cpp:1336:9: warning[deadcode.DeadStores]: Value stored to 'outfilestr' is never read
# 1334| }
# 1335| } else {
# 1336|-> outfilestr = "-";
# 1337| outfile = stdout;
# 1338| #ifdef USE_FILENO_BINARY_MODE
Error: GCC_ANALYZER_WARNING (CWE-688): [#def319]
icu-74.2-build/icu/source/extra/uconv/uwmsg.c: scope_hint: In function ‘fetchErrorName’
icu-74.2-build/icu/source/extra/uconv/uwmsg.c:206:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘gInfoMessages’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_memset’ must be non-null
# 204| if (!gInfoMessages) {
# 205| gInfoMessages = (UChar **)malloc((U_ERROR_WARNING_LIMIT-U_ERROR_WARNING_START)*sizeof(UChar*));
# 206|-> memset(gInfoMessages, 0, (U_ERROR_WARNING_LIMIT-U_ERROR_WARNING_START)*sizeof(UChar*));
# 207| }
# 208| if (!gErrMessages) {
Error: GCC_ANALYZER_WARNING (CWE-688): [#def320]
icu-74.2-build/icu/source/extra/uconv/uwmsg.c:210:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘gErrMessages’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_memset’ must be non-null
# 208| if (!gErrMessages) {
# 209| gErrMessages = (UChar **)malloc(U_ERROR_LIMIT*sizeof(UChar*));
# 210|-> memset(gErrMessages, 0, U_ERROR_LIMIT*sizeof(UChar*));
# 211| }
# 212| if(err>=0)
Error: CPPCHECK_WARNING: [#def321]
icu-74.2-build/icu/source/i18n/alphaindex.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def322]
icu-74.2-build/icu/source/i18n/alphaindex.cpp:888:26: warning[core.NonNullParamChecker]: Forming reference to null pointer
# 886|
# 887| if (collator_ == nullptr) {
# 888|-> Collator *coll = Collator::createInstance(*locale, status);
# 889| if (U_FAILURE(status)) {
# 890| delete coll;
Error: CPPCHECK_WARNING: [#def323]
icu-74.2-build/icu/source/i18n/anytrans.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def324]
icu-74.2-build/icu/source/i18n/astro.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def325]
icu-74.2-build/icu/source/i18n/basictz.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def326]
icu-74.2-build/icu/source/i18n/bocsu.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def327]
icu-74.2-build/icu/source/i18n/brktrans.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def328]
icu-74.2-build/icu/source/i18n/calendar.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def329]
icu-74.2-build/icu/source/i18n/calendar.cpp:520:20: warning[core.CallAndMessage]: Called C++ object pointer is null
# 518| fprintf(stderr, "Cloning a %s calendar with tz=%ld\n", ((Calendar*)instance)->getType(), ((Calendar*)instance)->get(UCAL_ZONE_OFFSET, status2));
# 519| #endif
# 520|-> return ((Calendar*)instance)->clone();
# 521| }
# 522| }
Error: CLANG_WARNING: [#def330]
icu-74.2-build/icu/source/i18n/calendar.cpp:986:19: warning[core.CallAndMessage]: Called C++ object pointer is null
# 984| return nullptr;
# 985| }
# 986|-> Calendar *c = (*shared)->clone();
# 987| shared->removeRef();
# 988| if (c == nullptr) {
Error: CLANG_WARNING: [#def331]
icu-74.2-build/icu/source/i18n/calendar.cpp:1025:30: warning[core.CallAndMessage]: Called C++ object pointer is null
# 1023| return;
# 1024| }
# 1025|-> uprv_strncpy(typeBuffer, (*shared)->getType(), typeBufferSize);
# 1026| shared->removeRef();
# 1027| if (typeBuffer[typeBufferSize - 1]) {
Error: CPPCHECK_WARNING: [#def332]
icu-74.2-build/icu/source/i18n/casetrn.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def333]
icu-74.2-build/icu/source/i18n/cecal.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def334]
icu-74.2-build/icu/source/i18n/chnsecal.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def335]
icu-74.2-build/icu/source/i18n/choicfmt.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def336]
icu-74.2-build/icu/source/i18n/coleitr.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def337]
icu-74.2-build/icu/source/i18n/coll.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def338]
icu-74.2-build/icu/source/i18n/collationbuilder.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def339]
icu-74.2-build/icu/source/i18n/collationcompare.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def340]
icu-74.2-build/icu/source/i18n/collationdata.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def341]
icu-74.2-build/icu/source/i18n/collationdatabuilder.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def342]
icu-74.2-build/icu/source/i18n/collationdatabuilder.cpp:674:48: warning[core.CallAndMessage]: Called C++ object pointer is null
# 672| // then copy the base mappings.
# 673| // Otherwise we just override the base mapping.
# 674|-> uint32_t baseCE32 = base->getFinalCE32(base->getCE32(c));
# 675| if(hasContext || Collation::ce32HasContext(baseCE32)) {
# 676| oldCE32 = copyFromBaseCE32(c, baseCE32, true, errorCode);
Error: CLANG_WARNING: [#def343]
icu-74.2-build/icu/source/i18n/collationdatabuilder.cpp:1219:20: warning[core.CallAndMessage]: Called C++ object pointer is null
# 1217| if(ce32 == Collation::FALLBACK_CE32) {
# 1218| fromBase = true;
# 1219|-> ce32 = base->getCE32(jamo);
# 1220| }
# 1221| if(Collation::isSpecialCE32(ce32)) {
Error: CPPCHECK_WARNING: [#def344]
icu-74.2-build/icu/source/i18n/collationdatareader.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def345]
icu-74.2-build/icu/source/i18n/collationdatawriter.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def346]
icu-74.2-build/icu/source/i18n/collationdatawriter.cpp:346:9: warning[core.NonNullParamChecker]: Null pointer passed to 2nd parameter expecting 'nonnull'
# 344| int32_t limit = indexes[startIndex + 1];
# 345| if(start < limit) {
# 346|-> uprv_memcpy(dest + start, src, limit - start);
# 347| }
# 348| }
Error: CPPCHECK_WARNING: [#def347]
icu-74.2-build/icu/source/i18n/collationfastlatin.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def348]
icu-74.2-build/icu/source/i18n/collationfastlatinbuilder.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def349]
icu-74.2-build/icu/source/i18n/collationfastlatinbuilder.cpp:509:17: warning[deadcode.DeadStores]: Value stored to 'prevSecondary' is never read
# 507| continue;
# 508| }
# 509|-> prevSecondary = s;
# 510| ter = CollationFastLatin::COMMON_TER;
# 511| } else if(s < Collation::COMMON_WEIGHT16) {
Error: CLANG_WARNING: [#def350]
icu-74.2-build/icu/source/i18n/collationfastlatinbuilder.cpp:510:17: warning[deadcode.DeadStores]: Value stored to 'ter' is never read
# 508| }
# 509| prevSecondary = s;
# 510|-> ter = CollationFastLatin::COMMON_TER;
# 511| } else if(s < Collation::COMMON_WEIGHT16) {
# 512| if(sec == CollationFastLatin::COMMON_SEC) {
Error: CPPCHECK_WARNING: [#def351]
icu-74.2-build/icu/source/i18n/collationiterator.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def352]
icu-74.2-build/icu/source/i18n/collationdatabuilder.cpp:33: included_from: Included from here.
icu-74.2-build/icu/source/i18n/collationiterator.h:103:20: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
# 101| public:
# 102| CollationIterator(const CollationData *d, UBool numeric)
# 103|-> : trie(d->trie),
# 104| data(d),
# 105| cesIndex(0),
Error: COMPILER_WARNING (CWE-457): [#def353]
icu-74.2-build/icu/source/i18n/collationiterator.h:103:23: warning[-Wuninitialized]: ‘MEM[(const struct CollationData *)this_10(D) + 400B].trie’ is used uninitialized
# 103 | : trie(d->trie),
# | ~~~^~~~
# 101| public:
# 102| CollationIterator(const CollationData *d, UBool numeric)
# 103|-> : trie(d->trie),
# 104| data(d),
# 105| cesIndex(0),
Error: CPPCHECK_WARNING: [#def354]
icu-74.2-build/icu/source/i18n/collationkeys.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def355]
icu-74.2-build/icu/source/i18n/collationroot.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def356]
icu-74.2-build/icu/source/i18n/collationrootelements.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def357]
icu-74.2-build/icu/source/i18n/collationruleparser.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def358]
icu-74.2-build/icu/source/i18n/collationsets.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def359]
icu-74.2-build/icu/source/i18n/collationsettings.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def360]
icu-74.2-build/icu/source/i18n/collationsettings.cpp:215:5: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
# 213| reorderCodesCapacity = capacity;
# 214| }
# 215|-> uprv_memcpy(ownedCodes + reorderCodesCapacity, table, 256);
# 216| uprv_memcpy(ownedCodes, codes, codesLength * 4);
# 217| uprv_memcpy(ownedCodes + codesLength, ranges, rangesLength * 4);
Error: CPPCHECK_WARNING: [#def361]
icu-74.2-build/icu/source/i18n/collationtailoring.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def362]
icu-74.2-build/icu/source/i18n/collationweights.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def363]
icu-74.2-build/icu/source/i18n/collationweights.cpp:85:41: warning[core.BitwiseShift]: Left shift by '32' overflows the capacity of 'unsigned int'
# 83| static inline uint32_t
# 84| truncateWeight(uint32_t weight, int32_t length) {
# 85|-> return (uint32_t)(weight&(0xffffffff<<(8*(4-length))));
# 86| }
# 87|
Error: CPPCHECK_WARNING: [#def364]
icu-74.2-build/icu/source/i18n/compactdecimalformat.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def365]
icu-74.2-build/icu/source/i18n/cpdtrans.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def366]
icu-74.2-build/icu/source/i18n/cpdtrans.cpp:605:23: warning[core.CallAndMessage]: Called C++ object pointer is null
# 603| int32_t max = 0;
# 604| for (int32_t i=0; i<count; ++i) {
# 605|-> int32_t len = trans[i]->getMaximumContextLength();
# 606| if (len > max) {
# 607| max = len;
Error: CPPCHECK_WARNING: [#def367]
icu-74.2-build/icu/source/i18n/csdetect.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def368]
icu-74.2-build/icu/source/i18n/csr2022.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def369]
icu-74.2-build/icu/source/i18n/csrmbcs.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def370]
icu-74.2-build/icu/source/i18n/csrsbcs.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def371]
icu-74.2-build/icu/source/i18n/csrucode.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def372]
icu-74.2-build/icu/source/i18n/csrutf8.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def373]
icu-74.2-build/icu/source/i18n/currpinf.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def374]
icu-74.2-build/icu/source/i18n/currunit.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def375]
icu-74.2-build/icu/source/i18n/datefmt.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def376]
icu-74.2-build/icu/source/i18n/datefmt.cpp:441:19: warning[core.NonNullParamChecker]: Forming reference to null pointer
# 439| return UnicodeString();
# 440| }
# 441|-> UnicodeString result(patternPtr->fPattern);
# 442| patternPtr->removeRef();
# 443| return result;
Error: CPPCHECK_WARNING: [#def377]
icu-74.2-build/icu/source/i18n/dayperiodrules.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def378]
icu-74.2-build/icu/source/i18n/dcfmtsym.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def379]
icu-74.2-build/icu/source/i18n/decContext.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def380]
icu-74.2-build/icu/source/i18n/decNumber.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: COMPILER_WARNING: [#def381]
icu-74.2-build/icu/source/i18n/decNumber.cpp: scope_hint: In function ‘uprv_decNumberSquareRoot_74’
icu-74.2-build/icu/source/i18n/decNumber.cpp:2974:31: warning[-Wstringop-overflow=]: writing 1 byte into a region of size 0
# 2974 | t->lsu[0]=9; t->lsu[1]=5; t->lsu[2]=2;
# | ~~~~~~~~~^~
icu-74.2-build/icu/source/i18n/decNumber.cpp:184: included_from: Included from here.
icu-74.2-build/icu/source/i18n/decNumber.h:89:19: note: at offset 1 into destination object ‘lsu’ of size 1
# 89 | decNumberUnit lsu[DECNUMUNITS];
# | ^~~
# 2972| a->lsu[0]=19; a->lsu[1]=8;
# 2973| #else
# 2974|-> t->lsu[0]=9; t->lsu[1]=5; t->lsu[2]=2;
# 2975| a->lsu[0]=9; a->lsu[1]=1; a->lsu[2]=8;
# 2976| #endif
Error: COMPILER_WARNING: [#def382]
icu-74.2-build/icu/source/i18n/decNumber.cpp:2974:44: warning[-Wstringop-overflow=]: writing 1 byte into a region of size 0
# 2974 | t->lsu[0]=9; t->lsu[1]=5; t->lsu[2]=2;
# | ~~~~~~~~~^~
icu-74.2-build/icu/source/i18n/decNumber.h:89:19: note: at offset 2 into destination object ‘lsu’ of size 1
# 89 | decNumberUnit lsu[DECNUMUNITS];
# | ^~~
# 2972| a->lsu[0]=19; a->lsu[1]=8;
# 2973| #else
# 2974|-> t->lsu[0]=9; t->lsu[1]=5; t->lsu[2]=2;
# 2975| a->lsu[0]=9; a->lsu[1]=1; a->lsu[2]=8;
# 2976| #endif
Error: CLANG_WARNING: [#def383]
icu-74.2-build/icu/source/i18n/decNumber.cpp:3907:7: warning[deadcode.DeadStores]: Value stored to 'bits' is never read
# 3905| Int adjust; /* work */
# 3906| Int lexp=lhs->exponent; /* save in case LHS==RES */
# 3907|-> bits=lhs->bits; /* .. */
# 3908| residue=0; /* clear accumulator */
# 3909| decCopyFit(res, rhs, set, &residue, status); /* copy (as needed) */
Error: CLANG_WARNING: [#def384]
icu-74.2-build/icu/source/i18n/decNumber.cpp:3943:7: warning[deadcode.DeadStores]: Value stored to 'bits' is never read
# 3941| Int adjust; /* work */
# 3942| Int rexp=rhs->exponent; /* save in case RHS==RES */
# 3943|-> bits=rhs->bits; /* be clean */
# 3944| residue=0; /* clear accumulator */
# 3945| decCopyFit(res, lhs, set, &residue, status); /* copy (as needed) */
Error: CLANG_WARNING: [#def385]
icu-74.2-build/icu/source/i18n/decNumber.cpp:4560:21: warning[core.UndefinedBinaryOperatorResult]: The left operand of '!=' is a garbage value
# 4558| v2=0; /* assume in padding */
# 4559| if (pv2>=var2) v2=*pv2; /* in range */
# 4560|-> if (*pv1!=v2) break; /* no longer the same */
# 4561| if (pv1==var1) break; /* done; leave pv1 as is */
# 4562| }
Error: CLANG_WARNING: [#def386]
icu-74.2-build/icu/source/i18n/decNumber.cpp:4622:16: warning[core.UndefinedBinaryOperatorResult]: The left operand of '==' is a garbage value
# 4620| /* if the residue is zero, the operation is done (unless divide */
# 4621| /* or divideInteger and still not enough digits yet) */
# 4622|-> if (*var1==0 && var1units==1) { /* residue is 0 */
# 4623| if (op&(REMAINDER|REMNEAR)) break;
# 4624| if ((op&DIVIDE) && (exponent<=maxexponent)) break;
Error: CLANG_WARNING: [#def387]
icu-74.2-build/icu/source/i18n/decNumber.cpp:4643:7: warning[deadcode.DeadStores]: Value stored to 'accunits' is never read
# 4641| /* accunits is the number of digits collected in acc */
# 4642| if (accunits==0) { /* acc is 0 */
# 4643|-> accunits=1; /* show have a unit .. */
# 4644| accdigits=1; /* .. */
# 4645| *accnext=0; /* .. whose value is 0 */
Error: CLANG_WARNING: [#def388]
icu-74.2-build/icu/source/i18n/decNumber.cpp:4803:13: warning[deadcode.DeadStores]: Value stored to 'accunits' is never read
# 4801| expunits, accnext, -(Int)powers[exprem]);
# 4802| accdigits=decGetDigits(accnext, accunits); /* count digits exactly */
# 4803|-> accunits=D2U(accdigits); /* and recalculate the units for copy */
# 4804| /* [exponent is as for original remainder] */
# 4805| bits^=DECNEG; /* flip the sign */
Error: CLANG_WARNING: [#def389]
icu-74.2-build/icu/source/i18n/decNumber.cpp:7249:39: warning[core.UndefinedBinaryOperatorResult]: The left operand of '-' is a garbage value due to array index out of bounds
# 7247| if (count==1 && dn->digits==1) *sup=0; /* here 9 -> 0[.9] */
# 7248| else {
# 7249|-> *sup=(Unit)powers[count-1]-1; /* here 999.. in msu -> 99.. */
# 7250| dn->digits--;
# 7251| }
Error: CPPCHECK_WARNING: [#def390]
icu-74.2-build/icu/source/i18n/decimfmt.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def391]
icu-74.2-build/icu/source/i18n/displayoptions.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def392]
icu-74.2-build/icu/source/i18n/double-conversion-bignum-dtoa.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def393]
icu-74.2-build/icu/source/i18n/double-conversion-bignum.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def394]
icu-74.2-build/icu/source/i18n/double-conversion-double-to-string.cpp:454:7: warning[deadcode.DeadStores]: Value stored to 'fast_worked' is never read
# 452| #endif // not needed for ICU
# 453| default:
# 454|-> fast_worked = false;
# 455| DOUBLE_CONVERSION_UNREACHABLE();
# 456| }
Error: CPPCHECK_WARNING: [#def395]
icu-74.2-build/icu/source/i18n/double-conversion-fast-dtoa.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def396]
icu-74.2-build/icu/source/i18n/double-conversion-string-to-double.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def397]
icu-74.2-build/icu/source/i18n/double-conversion-strtod.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def398]
icu-74.2-build/icu/source/i18n/dtfmtsym.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def399]
icu-74.2-build/icu/source/i18n/dtfmtsym.cpp:256:55: warning[core.CallAndMessage]: Called C++ object pointer is null
# 254| return nullptr;
# 255| }
# 256|-> DateFormatSymbols *result = new DateFormatSymbols(shared->get());
# 257| shared->removeRef();
# 258| if (result == nullptr) {
Error: CLANG_WARNING: [#def400]
icu-74.2-build/icu/source/i18n/dtfmtsym.cpp:1715:17: warning[core.CallAndMessage]: Called C++ object pointer is null
# 1713| if (U_FAILURE(errorCode)) { return; }
# 1714| LocalPointer<UnicodeString> valueUString(new UnicodeString(true, valueString, valueStringSize), errorCode);
# 1715|-> stringMap->put(keyUString, valueUString.orphan(), errorCode);
# 1716| if (U_FAILURE(errorCode)) { return; }
# 1717| continue;
Error: CLANG_WARNING: [#def401]
icu-74.2-build/icu/source/i18n/dtfmtsym.cpp:1740:25: warning[deadcode.DeadStores]: Value stored to 'length' is never read
# 1738| || path.compare(startIndex, (length = UPRV_LENGTHOF(kFormatTagUChar)), kFormatTagUChar, 0, UPRV_LENGTHOF(kFormatTagUChar)) == 0) {
# 1739| startIndex += length;
# 1740|-> length = 0;
# 1741| if (startIndex == path.length()
# 1742| || path.compare(startIndex, (length = UPRV_LENGTHOF(kAbbrTagUChar)), kAbbrTagUChar, 0, UPRV_LENGTHOF(kAbbrTagUChar)) == 0) {
Error: CLANG_WARNING: [#def402]
icu-74.2-build/icu/source/i18n/dtfmtsym.cpp:1742:58: warning[deadcode.DeadStores]: Although the value stored to 'length' is used in the enclosing expression, the value is never actually read from 'length'
# 1740| length = 0;
# 1741| if (startIndex == path.length()
# 1742|-> || path.compare(startIndex, (length = UPRV_LENGTHOF(kAbbrTagUChar)), kAbbrTagUChar, 0, UPRV_LENGTHOF(kAbbrTagUChar)) == 0) {
# 1743| skip = false;
# 1744| }
Error: CLANG_WARNING: [#def403]
icu-74.2-build/icu/source/i18n/dtfmtsym.cpp:2305:17: warning[core.NonNullParamChecker]: Forming reference to null pointer
# 2303| }
# 2304| if (dpidx < fStandaloneWideDayPeriodsCount && fStandaloneWideDayPeriods != nullptr && fStandaloneWideDayPeriods[dpidx].isBogus()) {
# 2305|-> fStandaloneWideDayPeriods[dpidx].fastCopyFrom(fStandaloneAbbreviatedDayPeriods[dpidx]);
# 2306| }
# 2307| if (dpidx < fStandaloneNarrowDayPeriodsCount && fStandaloneNarrowDayPeriods != nullptr && fStandaloneNarrowDayPeriods[dpidx].isBogus()) {
Error: CLANG_WARNING: [#def404]
icu-74.2-build/icu/source/i18n/dtfmtsym.cpp:2308:17: warning[core.NonNullParamChecker]: Forming reference to null pointer
# 2306| }
# 2307| if (dpidx < fStandaloneNarrowDayPeriodsCount && fStandaloneNarrowDayPeriods != nullptr && fStandaloneNarrowDayPeriods[dpidx].isBogus()) {
# 2308|-> fStandaloneNarrowDayPeriods[dpidx].fastCopyFrom(fStandaloneAbbreviatedDayPeriods[dpidx]);
# 2309| }
# 2310| }
Error: CPPCHECK_WARNING: [#def405]
icu-74.2-build/icu/source/i18n/dtitvfmt.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def406]
icu-74.2-build/icu/source/i18n/dtitvfmt.cpp:335:20: warning[core.UndefinedBinaryOperatorResult]: The left operand of '!=' is a garbage value
# 333|
# 334| // Compute the span fields and sort them into place:
# 335|-> if (firstIndex != -1) {
# 336| result->addOverlapSpans(UFIELD_CATEGORY_DATE_INTERVAL_SPAN, firstIndex, status);
# 337| if (U_FAILURE(status)) {
Error: CLANG_WARNING: [#def407]
icu-74.2-build/icu/source/i18n/dtitvfmt.cpp:389:20: warning[core.UndefinedBinaryOperatorResult]: The left operand of '!=' is a garbage value
# 387|
# 388| // Compute the span fields and sort them into place:
# 389|-> if (firstIndex != -1) {
# 390| result->addOverlapSpans(UFIELD_CATEGORY_DATE_INTERVAL_SPAN, firstIndex, status);
# 391| result->sort();
Error: CPPCHECK_WARNING: [#def408]
icu-74.2-build/icu/source/i18n/dtitvinf.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def409]
icu-74.2-build/icu/source/i18n/dtptngen.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def410]
icu-74.2-build/icu/source/i18n/dtptngen.cpp:2134:13: warning[deadcode.DeadStores]: Value stored to 'curElem' is never read
# 2132| newElem->skeletonWasSpecified = skeletonWasSpecified;
# 2133| curElem->next.adoptInstead(newElem.orphan());
# 2134|-> curElem = curElem->next.getAlias();
# 2135| }
# 2136| else {
Error: CLANG_WARNING: [#def411]
icu-74.2-build/icu/source/i18n/dtptngen.cpp:2493:16: warning[deadcode.DeadStores]: Value stored to 'startPos' is never read
# 2491| }
# 2492| else {
# 2493|-> startPos = curLoc;
# 2494| *len=1;
# 2495| return ADD_TOKEN;
Error: CPPCHECK_WARNING: [#def412]
icu-74.2-build/icu/source/i18n/erarules.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def413]
icu-74.2-build/icu/source/i18n/esctrn.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def414]
icu-74.2-build/icu/source/i18n/fmtable.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def415]
icu-74.2-build/icu/source/i18n/format.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def416]
icu-74.2-build/icu/source/i18n/formatted_string_builder.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def417]
icu-74.2-build/icu/source/i18n/formattedval_iterimpl.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def418]
icu-74.2-build/icu/source/i18n/formattedval_sbimpl.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def419]
icu-74.2-build/icu/source/i18n/formattedvalue.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def420]
icu-74.2-build/icu/source/i18n/formattedvalue.cpp:214:5: warning[core.StackAddressEscape]: Address of stack memory associated with local variable 'readOnlyAlias' returned to caller
# 212| // Note: this line triggers -Wreturn-local-addr, but it is safe because toTempString is
# 213| // defined to return memory owned by the ufmtval argument.
# 214|-> return readOnlyAlias.getBuffer();
# 215| }
# 216|
Error: COMPILER_WARNING (CWE-562): [#def421]
icu-74.2-build/icu/source/i18n/formattedvalue.cpp: scope_hint: In function ‘ufmtval_getString_74’
icu-74.2-build/icu/source/i18n/formattedvalue.cpp:215:1: warning[-Wreturn-local-addr]: function may return address of local variable
# 215 | }
# | ^
icu-74.2-build/icu/source/i18n/formattedvalue.cpp:205:19: note: declared here
# 205 | UnicodeString readOnlyAlias = impl->fFormattedValue->toTempString(*ec);
# | ^~~~~~~~~~~~~
# 213| // defined to return memory owned by the ufmtval argument.
# 214| return readOnlyAlias.getBuffer();
# 215|-> }
# 216|
# 217|
Error: CPPCHECK_WARNING: [#def422]
icu-74.2-build/icu/source/i18n/fphdlimp.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def423]
icu-74.2-build/icu/source/i18n/fpositer.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def424]
icu-74.2-build/icu/source/i18n/gender.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def425]
icu-74.2-build/icu/source/i18n/gregocal.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def426]
icu-74.2-build/icu/source/i18n/gregoimp.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def427]
icu-74.2-build/icu/source/i18n/hebrwcal.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def428]
icu-74.2-build/icu/source/i18n/indiancal.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def429]
icu-74.2-build/icu/source/i18n/inputext.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def430]
icu-74.2-build/icu/source/i18n/islamcal.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def431]
icu-74.2-build/icu/source/i18n/islamcal.cpp:534:13: warning[deadcode.DeadStores]: Although the value stored to 'startDate' is used in the enclosing expression, the value is never actually read from 'startDate'
# 532| // Find out the last time that the new moon was actually visible at this longitude
# 533| // This returns midnight the night that the moon was visible at sunset.
# 534|-> while ((startDate = trueMonthStart(month)) > days) {
# 535| // If it was after the date in question, back up a month and try again
# 536| month--;
Error: CPPCHECK_WARNING: [#def432]
icu-74.2-build/icu/source/i18n/japancal.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def433]
icu-74.2-build/icu/source/i18n/listformatter.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def434]
icu-74.2-build/icu/source/i18n/measfmt.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def435]
icu-74.2-build/icu/source/i18n/measunit.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def436]
icu-74.2-build/icu/source/i18n/measunit.cpp:2233:5: warning[core.uninitialized.UndefReturn]: Undefined or garbage value returned to caller
# 2231|
# 2232| const char *MeasureUnit::getIdentifier() const {
# 2233|-> return fImpl ? fImpl->identifier.data() : gSubTypes[getOffset()];
# 2234| }
# 2235|
Error: CPPCHECK_WARNING: [#def437]
icu-74.2-build/icu/source/i18n/measunit_extra.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def438]
icu-74.2-build/icu/source/i18n/msgfmt.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-457): [#def439]
icu-74.2-build/icu/source/i18n/msgfmt.cpp:519: error[legacyUninitvar]: Uninitialized variable: tempParseError
# 517| }
# 518| UParseError tempParseError;
# 519|-> applyPattern(pattern, (parseError == nullptr) ? tempParseError : *parseError, status);
# 520| }
# 521|
Error: CPPCHECK_WARNING: [#def440]
icu-74.2-build/icu/source/i18n/name2uni.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def441]
icu-74.2-build/icu/source/i18n/nfrs.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def442]
icu-74.2-build/icu/source/i18n/nfrs.cpp:117:14: warning[core.DivideZero]: Division by zero
# 115|
# 116| // x * y == gcd(x, y) * lcm(x, y)
# 117|-> return x / gcd * y;
# 118| }
# 119| #endif
Error: CPPCHECK_WARNING: [#def443]
icu-74.2-build/icu/source/i18n/nfrule.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def444]
icu-74.2-build/icu/source/i18n/nfrule.cpp:477:13: warning[deadcode.DeadStores]: Value stored to 'subEnd' during its initialization is never read
# 475| // a substitution token
# 476| int32_t subStart = indexOfAnyRulePrefix();
# 477|-> int32_t subEnd = subStart;
# 478|
# 479| // if we didn't find one, create a null substitution positioned
Error: CLANG_WARNING: [#def445]
icu-74.2-build/icu/source/i18n/nfrule.cpp:1192:33: warning[core.CallAndMessage]: Called C++ object pointer is null
# 1190| subText.setTo(text, 0, dPos);
# 1191| if (subText.length() > 0) {
# 1192|-> UBool success = sub->doParse(subText, tempPP, _baseValue, upperBound,
# 1193| #if UCONFIG_NO_COLLATION
# 1194| false,
Error: CPPCHECK_WARNING: [#def446]
icu-74.2-build/icu/source/i18n/nfsubs.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def447]
icu-74.2-build/icu/source/i18n/nortrans.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def448]
icu-74.2-build/icu/source/i18n/number_affixutils.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def449]
icu-74.2-build/icu/source/i18n/number_asformat.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def450]
icu-74.2-build/icu/source/i18n/number_capi.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-457): [#def451]
icu-74.2-build/icu/source/i18n/number_capi.cpp:135: error[legacyUninitvar]: Uninitialized variable: tempParseError
# 133| UnicodeString skeletonString(skeletonLen == -1, skeleton, skeletonLen);
# 134| UParseError tempParseError;
# 135|-> impl->fFormatter = NumberFormatter::forSkeleton(skeletonString, (perror == nullptr) ? tempParseError : *perror, *ec).locale(locale);
# 136| return impl->exportForC();
# 137| }
Error: CPPCHECK_WARNING: [#def452]
icu-74.2-build/icu/source/i18n/number_compact.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def453]
icu-74.2-build/icu/source/i18n/number_currencysymbols.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def454]
icu-74.2-build/icu/source/i18n/number_decimalquantity.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def455]
icu-74.2-build/icu/source/i18n/number_decimalquantity.cpp:1197:27: warning[core.BitwiseShift]: Right shift by '64' overflows the capacity of 'uint64_t'
# 1195| }
# 1196| U_ASSERT(!usingBytes);
# 1197|-> fBCD.bcdLong = result >> (i * 4);
# 1198| scale = 0;
# 1199| precision = 16 - i;
Error: CPPCHECK_WARNING: [#def456]
icu-74.2-build/icu/source/i18n/number_decimfmtprops.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def457]
icu-74.2-build/icu/source/i18n/number_fluent.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def458]
icu-74.2-build/icu/source/i18n/number_formatimpl.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def459]
icu-74.2-build/icu/source/i18n/number_grouping.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def460]
icu-74.2-build/icu/source/i18n/number_integerwidth.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def461]
icu-74.2-build/icu/source/i18n/number_longnames.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def462]
icu-74.2-build/icu/source/i18n/number_longnames.cpp:852:17: warning[deadcode.DeadStores]: Value stored to 'endSlice' is never read
# 850| }
# 851| if (timesRule[0] == u'0') {
# 852|-> endSlice = startSlice;
# 853| } else {
# 854| // We assume timesRule[0] == u'1'
Error: CPPCHECK_WARNING: [#def463]
icu-74.2-build/icu/source/i18n/number_mapper.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def464]
icu-74.2-build/icu/source/i18n/number_modifiers.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def465]
icu-74.2-build/icu/source/i18n/number_modifiers.cpp:269:9: warning[deadcode.DeadStores]: Value stored to 'infixLength' is never read
# 267| if (infixLength < ARG_NUM_LIMIT) {
# 268| // No infix
# 269|-> infixLength = 0;
# 270| } else {
# 271| infixLength -= ARG_NUM_LIMIT;
Error: CPPCHECK_WARNING: [#def466]
icu-74.2-build/icu/source/i18n/number_multiplier.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def467]
icu-74.2-build/icu/source/i18n/number_notation.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def468]
icu-74.2-build/icu/source/i18n/number_output.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def469]
icu-74.2-build/icu/source/i18n/number_padding.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def470]
icu-74.2-build/icu/source/i18n/number_patternmodifier.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def471]
icu-74.2-build/icu/source/i18n/number_patternstring.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def472]
icu-74.2-build/icu/source/i18n/number_rounding.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def473]
icu-74.2-build/icu/source/i18n/number_scientific.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def474]
icu-74.2-build/icu/source/i18n/number_simple.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def475]
icu-74.2-build/icu/source/i18n/number_simple.cpp:251:5: warning[deadcode.DeadStores]: Value stored to 'length' is never read
# 249| 0,
# 250| status);
# 251|-> length += modifier->apply(data->getStringRef(), 0, length, status);
# 252| data->getStringRef().writeTerminator(status);
# 253| }
Error: CPPCHECK_WARNING: [#def476]
icu-74.2-build/icu/source/i18n/number_skeletons.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def477]
icu-74.2-build/icu/source/i18n/number_symbolswrapper.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def478]
icu-74.2-build/icu/source/i18n/number_usageprefs.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def479]
icu-74.2-build/icu/source/i18n/number_usageprefs.cpp:119:13: warning[deadcode.DeadStores]: Value stored to 'status' is never read
# 117| if (micros->mixedMeasures.getCapacity() < micros->mixedMeasuresCount) {
# 118| if (micros->mixedMeasures.resize(micros->mixedMeasuresCount) == nullptr) {
# 119|-> status = U_MEMORY_ALLOCATION_ERROR;
# 120| return;
# 121| }
Error: CLANG_WARNING: [#def480]
icu-74.2-build/icu/source/i18n/number_usageprefs.cpp:149:9: warning[deadcode.DeadStores]: Value stored to 'status' is never read
# 147| if (micros->indexOfQuantity < 0) {
# 148| // There is no quantity.
# 149|-> status = U_INTERNAL_PROGRAM_ERROR;
# 150| }
# 151| }
Error: CPPCHECK_WARNING: [#def481]
icu-74.2-build/icu/source/i18n/number_utils.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def482]
icu-74.2-build/icu/source/i18n/number_utils.cpp:72:13: warning[deadcode.DeadStores]: Value stored to 'patternKey' is never read
# 70| break;
# 71| default:
# 72|-> patternKey = "decimalFormat"; // silence compiler error
# 73| UPRV_UNREACHABLE_EXIT;
# 74| }
Error: CPPCHECK_WARNING: [#def483]
icu-74.2-build/icu/source/i18n/numfmt.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def484]
icu-74.2-build/icu/source/i18n/numparse_affixes.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def485]
icu-74.2-build/icu/source/i18n/numparse_compositions.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def486]
icu-74.2-build/icu/source/i18n/numparse_currency.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def487]
icu-74.2-build/icu/source/i18n/numparse_decimal.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def488]
icu-74.2-build/icu/source/i18n/numparse_impl.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def489]
icu-74.2-build/icu/source/i18n/numparse_parsednumber.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def490]
icu-74.2-build/icu/source/i18n/numparse_scientific.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def491]
icu-74.2-build/icu/source/i18n/numparse_symbols.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def492]
icu-74.2-build/icu/source/i18n/numparse_validators.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def493]
icu-74.2-build/icu/source/i18n/numrange_capi.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-457): [#def494]
icu-74.2-build/icu/source/i18n/numrange_capi.cpp:102: error[legacyUninitvar]: Uninitialized variable: tempParseError
# 100| UParseError tempParseError;
# 101| impl->fFormatter = NumberRangeFormatter::withLocale(locale)
# 102|-> .numberFormatterBoth(NumberFormatter::forSkeleton(skeletonString, (perror == nullptr) ? tempParseError : *perror, *ec))
# 103| .collapse(collapse)
# 104| .identityFallback(identityFallback);
Error: CPPCHECK_WARNING: [#def495]
icu-74.2-build/icu/source/i18n/numrange_fluent.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def496]
icu-74.2-build/icu/source/i18n/numrange_impl.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def497]
icu-74.2-build/icu/source/i18n/numsys.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def498]
icu-74.2-build/icu/source/i18n/olsontz.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def499]
icu-74.2-build/icu/source/i18n/olsontz.cpp:605:16: warning[core.UndefinedBinaryOperatorResult]: The left operand of '!=' is a garbage value
# 603| int32_t raw, dst;
# 604| getOffset(date, false, raw, dst, ec);
# 605|-> return dst != 0;
# 606| }
# 607|
Error: CPPCHECK_WARNING: [#def500]
icu-74.2-build/icu/source/i18n/pluralranges.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def501]
icu-74.2-build/icu/source/i18n/plurfmt.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def502]
icu-74.2-build/icu/source/i18n/plurfmt.cpp:291:13: warning[core.CallAndMessage]: Called C++ object pointer is null
# 289| } else {
# 290| if (offset == 0) {
# 291|-> numberFormat->format(numberObject, numberString, status);
# 292| } else {
# 293| numberFormat->format(numberMinusOffset, numberString, status);
Error: CLANG_WARNING: [#def503]
icu-74.2-build/icu/source/i18n/plurfmt.cpp:293:13: warning[core.CallAndMessage]: Called C++ object pointer is null
# 291| numberFormat->format(numberObject, numberString, status);
# 292| } else {
# 293|-> numberFormat->format(numberMinusOffset, numberString, status);
# 294| }
# 295| }
Error: CPPCHECK_WARNING: [#def504]
icu-74.2-build/icu/source/i18n/plurrule.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def505]
icu-74.2-build/icu/source/i18n/quant.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def506]
icu-74.2-build/icu/source/i18n/quantityformatter.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def507]
icu-74.2-build/icu/source/i18n/rbnf.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def508]
icu-74.2-build/icu/source/i18n/rbnf.cpp:833:17: warning[deadcode.DeadStores]: Value stored to 'fmt_tag' during its initialization is never read
# 831|
# 832| const char* rules_tag = "RBNFRules";
# 833|-> const char* fmt_tag = "";
# 834| switch (tag) {
# 835| case URBNF_SPELLOUT: fmt_tag = "SpelloutRules"; break;
Error: CPPCHECK_WARNING: [#def509]
icu-74.2-build/icu/source/i18n/rbt.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def510]
icu-74.2-build/icu/source/i18n/rbt_data.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def511]
icu-74.2-build/icu/source/i18n/rbt_data.cpp:64:13: warning[deadcode.DeadStores]: Value stored to 'status' is never read
# 62| /* test for nullptr */
# 63| if (variables == 0) {
# 64|-> status = U_MEMORY_ALLOCATION_ERROR;
# 65| return;
# 66| }
Error: CPPCHECK_WARNING: [#def512]
icu-74.2-build/icu/source/i18n/rbt_pars.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def513]
icu-74.2-build/icu/source/i18n/rbt_rule.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def514]
icu-74.2-build/icu/source/i18n/rbt_set.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def515]
icu-74.2-build/icu/source/i18n/rbtz.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def516]
icu-74.2-build/icu/source/i18n/rbtz.cpp:89:24: warning[core.CallAndMessage]: Called C++ object pointer is null
# 87| BasicTimeZone::operator=(right);
# 88| deleteRules();
# 89|-> fInitialRule = right.fInitialRule->clone();
# 90| fHistoricRules = copyRules(right.fHistoricRules);
# 91| fFinalRules = copyRules(right.fFinalRules);
Error: CPPCHECK_WARNING: [#def517]
icu-74.2-build/icu/source/i18n/regexcmp.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def518]
icu-74.2-build/icu/source/i18n/regexcmp.cpp:406:21: warning[deadcode.DeadStores]: Value stored to 'op' during its initialization is never read
# 404| // save from the location on the top of the parentheses stack.
# 405| int32_t savePosition = fParenStack.popi();
# 406|-> int32_t op = (int32_t)fRXPat->fCompiledPat->elementAti(savePosition);
# 407| U_ASSERT(URX_TYPE(op) == URX_NOP); // original contents of reserved location
# 408| op = buildOp(URX_STATE_SAVE, fRXPat->fCompiledPat->size()+1);
Error: CLANG_WARNING: [#def519]
icu-74.2-build/icu/source/i18n/regexcmp.cpp:2273:21: warning[deadcode.DeadStores]: Value stored to 'saveOp' during its initialization is never read
# 2271| // Patch the URX_SAVE near the top of the block.
# 2272| // The destination of the SAVE is the final LA_END that was just added.
# 2273|-> int32_t saveOp = (int32_t)fRXPat->fCompiledPat->elementAti(fMatchOpenParen);
# 2274| U_ASSERT(URX_TYPE(saveOp) == URX_STATE_SAVE);
# 2275| int32_t dest = fRXPat->fCompiledPat->size()-1;
Error: CLANG_WARNING: [#def520]
icu-74.2-build/icu/source/i18n/regexcmp.cpp:3145:9: warning[deadcode.DeadStores]: Value stored to 'currentLen' is never read
# 3143| // propagated a shorter length to location end+1.
# 3144| if (forwardedLength.elementAti(end+1) < currentLen) {
# 3145|-> currentLen = forwardedLength.elementAti(end+1);
# 3146| }
# 3147|
Error: CPPCHECK_WARNING: [#def521]
icu-74.2-build/icu/source/i18n/regeximp.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def522]
icu-74.2-build/icu/source/i18n/regexst.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def523]
icu-74.2-build/icu/source/i18n/region.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def524]
icu-74.2-build/icu/source/i18n/reldatefmt.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def525]
icu-74.2-build/icu/source/i18n/reldtfmt.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def526]
icu-74.2-build/icu/source/i18n/rematch.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def527]
icu-74.2-build/icu/source/i18n/rematch.cpp:2754:19: warning[core.NullDereference]: Dereference of null pointer
# 2752| int64_t *dest = newFP;
# 2753| for (;;) {
# 2754|-> *dest++ = *source++;
# 2755| if (source == newFP) {
# 2756| break;
Error: CLANG_WARNING: [#def528]
icu-74.2-build/icu/source/i18n/rematch.cpp:2890:17: warning[deadcode.DeadStores]: Value stored to 'opType' is never read
# 2888| op = (int32_t)pat[fp->fPatIdx]; // Fetch the second operand
# 2889| fp->fPatIdx++;
# 2890|-> opType = URX_TYPE(op);
# 2891| int32_t stringLen = URX_VAL(op);
# 2892| U_ASSERT(opType == URX_STRING_LEN);
Error: CLANG_WARNING: [#def529]
icu-74.2-build/icu/source/i18n/rematch.cpp:3844:21: warning[deadcode.DeadStores]: Value stored to 'opType' is never read
# 3842| op = (int32_t)pat[fp->fPatIdx];
# 3843| fp->fPatIdx++;
# 3844|-> opType = URX_TYPE(op);
# 3845| opValue = URX_VAL(op);
# 3846| U_ASSERT(opType == URX_STRING_LEN);
Error: CLANG_WARNING: [#def530]
icu-74.2-build/icu/source/i18n/rematch.cpp:4400:17: warning[deadcode.DeadStores]: Value stored to 'opType' is never read
# 4398| op = (int32_t)pat[fp->fPatIdx]; // Fetch the second operand
# 4399| fp->fPatIdx++;
# 4400|-> opType = URX_TYPE(op);
# 4401| stringLen = URX_VAL(op);
# 4402| U_ASSERT(opType == URX_STRING_LEN);
Error: CLANG_WARNING: [#def531]
icu-74.2-build/icu/source/i18n/rematch.cpp:4416:36: warning[core.NullDereference]: Dereference of null pointer
# 4414| break;
# 4415| }
# 4416|-> if (*pInp++ != *pPat++) {
# 4417| success = false;
# 4418| break;
Error: CLANG_WARNING: [#def532]
icu-74.2-build/icu/source/i18n/rematch.cpp:5309:17: warning[deadcode.DeadStores]: Value stored to 'opType' is never read
# 5307| op = (int32_t)pat[fp->fPatIdx];
# 5308| fp->fPatIdx++;
# 5309|-> opType = URX_TYPE(op);
# 5310| opValue = URX_VAL(op);
# 5311| U_ASSERT(opType == URX_STRING_LEN);
Error: CPPCHECK_WARNING: [#def533]
icu-74.2-build/icu/source/i18n/repattrn.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def534]
icu-74.2-build/icu/source/i18n/rulebasedcollator.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def535]
icu-74.2-build/icu/source/i18n/rulebasedcollator.cpp:654:5: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
# 652| return length;
# 653| }
# 654|-> uprv_memcpy(dest, settings->reorderCodes, length * 4);
# 655| return length;
# 656| }
Error: CLANG_WARNING: [#def536]
icu-74.2-build/icu/source/i18n/rulebasedcollator.cpp:670:13: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
# 668| }
# 669| if(length == settings->reorderCodesLength &&
# 670|-> uprv_memcmp(reorderCodes, settings->reorderCodes, length * 4) == 0) {
# 671| return;
# 672| }
Error: CLANG_WARNING: [#def537]
icu-74.2-build/icu/source/i18n/rulebasedcollator.cpp:1377:12: warning[core.NullDereference]: Dereference of null pointer (loaded from variable 'nfdQCYesLimit')
# 1375| } else {
# 1376| // s is NUL-terminated
# 1377|-> if(*nfdQCYesLimit == 0) { return; }
# 1378| destLengthEstimate = -1;
# 1379| }
Error: CPPCHECK_WARNING: [#def538]
icu-74.2-build/icu/source/i18n/scriptset.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def539]
icu-74.2-build/icu/source/i18n/search.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def540]
icu-74.2-build/icu/source/i18n/selfmt.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def541]
icu-74.2-build/icu/source/i18n/simpletz.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def542]
icu-74.2-build/icu/source/i18n/smpdtfmt.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def543]
icu-74.2-build/icu/source/i18n/smpdtfst.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def544]
icu-74.2-build/icu/source/i18n/sortkey.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def545]
icu-74.2-build/icu/source/i18n/standardplural.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def546]
icu-74.2-build/icu/source/i18n/string_segment.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def547]
icu-74.2-build/icu/source/i18n/strmatch.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def548]
icu-74.2-build/icu/source/i18n/strrepl.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def549]
icu-74.2-build/icu/source/i18n/stsearch.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def550]
icu-74.2-build/icu/source/i18n/stsearch.cpp:295:9: warning[deadcode.DeadStores]: Value stored to 'status' is never read
# 293| /* test for nullptr */
# 294| if (result == 0) {
# 295|-> status = U_MEMORY_ALLOCATION_ERROR;
# 296| return 0;
# 297| }
Error: CPPCHECK_WARNING: [#def551]
icu-74.2-build/icu/source/i18n/timezone.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def552]
icu-74.2-build/icu/source/i18n/titletrn.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def553]
icu-74.2-build/icu/source/i18n/tmutfmt.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def554]
icu-74.2-build/icu/source/i18n/tolowtrn.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def555]
icu-74.2-build/icu/source/i18n/toupptrn.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def556]
icu-74.2-build/icu/source/i18n/translit.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-476): [#def557]
icu-74.2-build/icu/source/i18n/translit.cpp:1351: warning[nullPointer]: Possible null pointer dereference: result
# 1349| umtx_unlock(®istryMutex);
# 1350| U_ASSERT(result != nullptr); // fail if no registry
# 1351|-> return *result;
# 1352| }
# 1353|
Error: CLANG_WARNING: [#def558]
icu-74.2-build/icu/source/i18n/translit.cpp:1351:5: warning[core.uninitialized.UndefReturn]: Returning null reference
# 1349| umtx_unlock(®istryMutex);
# 1350| U_ASSERT(result != nullptr); // fail if no registry
# 1351|-> return *result;
# 1352| }
# 1353|
Error: CPPCHECK_WARNING: [#def559]
icu-74.2-build/icu/source/i18n/transreg.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def560]
icu-74.2-build/icu/source/i18n/transreg.cpp:355:5: warning[core.uninitialized.UndefReturn]: Returning null reference
# 353|
# 354| ResourceBundle& TransliteratorSpec::getBundle() const {
# 355|-> return *res;
# 356| }
# 357|
Error: CPPCHECK_WARNING: [#def561]
icu-74.2-build/icu/source/i18n/tridpars.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def562]
icu-74.2-build/icu/source/i18n/tzfmt.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def563]
icu-74.2-build/icu/source/i18n/tzfmt.cpp:2131:9: warning[deadcode.DeadStores]: Value stored to 'numDigits' is never read
# 2129| if (numDigits < minDigits || decVal < minVal) {
# 2130| decVal = -1;
# 2131|-> numDigits = 0;
# 2132| } else {
# 2133| parsedLen = idx - start;
Error: CLANG_WARNING: [#def564]
icu-74.2-build/icu/source/i18n/tzfmt.cpp:2202:54: warning[core.UndefinedBinaryOperatorResult]: The left operand of '/' is a garbage value due to array index out of bounds
# 2200| result.append(sep);
# 2201| }
# 2202|-> result.append((char16_t)(0x0030 + fields[idx]/10));
# 2203| result.append((char16_t)(0x0030 + fields[idx]%10));
# 2204| }
Error: CPPCHECK_WARNING: [#def565]
icu-74.2-build/icu/source/i18n/tzgnames.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def566]
icu-74.2-build/icu/source/i18n/tzgnames.cpp:660:17: warning[core.CallAndMessage]: Called C++ object pointer is null
# 658| // If not BasicTimeZone... only if the instance is not an ICU's implementation.
# 659| // We may get a wrong answer in edge case, but it should practically work OK.
# 660|-> tmptz->getOffset(date - kDstCheckRange, false, raw, sav, status);
# 661| if (sav != 0) {
# 662| useStandard = false;
Error: CLANG_WARNING: [#def567]
icu-74.2-build/icu/source/i18n/tzgnames.cpp:1188:9: warning[core.NullDereference]: Access to field 'refCount' results in a dereference of a null pointer (loaded from field 'fRef')
# 1186| U_ASSERT(fRef->refCount > 0);
# 1187| // Just decrement the reference count
# 1188|-> fRef->refCount--;
# 1189| }
# 1190| umtx_unlock(&gTZGNLock);
Error: CPPCHECK_WARNING: [#def568]
icu-74.2-build/icu/source/i18n/tznames.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-476): [#def569]
icu-74.2-build/icu/source/i18n/tznames.cpp:385: warning[nullPointer]: Possible null pointer dereference: mzID
# 383| this->isTZID = true;
# 384| } else {
# 385|-> this->id.setTo(*mzID);
# 386| this->isTZID = false;
# 387| }
Error: CPPCHECK_WARNING: [#def570]
icu-74.2-build/icu/source/i18n/tznames_impl.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def571]
icu-74.2-build/icu/source/i18n/tzrule.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def572]
icu-74.2-build/icu/source/i18n/ucal.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def573]
icu-74.2-build/icu/source/i18n/ucol.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def574]
icu-74.2-build/icu/source/i18n/ucol.cpp:75:12: warning[core.CallAndMessage]: Called C++ object pointer is null
# 73| return 0;
# 74| }
# 75|-> return rbc->cloneBinary(buffer, capacity, *status);
# 76| }
# 77|
Error: CLANG_WARNING: [#def575]
icu-74.2-build/icu/source/i18n/ucol.cpp:556:38: warning[core.CallAndMessage]: Called C++ object pointer is null
# 554| // OK to crash if coll==nullptr: We do not want to check "this" pointers.
# 555| if(rbc != nullptr || coll == nullptr) {
# 556|-> const UnicodeString &rules = rbc->getRules();
# 557| U_ASSERT(rules.getBuffer()[rules.length()] == 0);
# 558| *length = rules.length();
Error: CLANG_WARNING: [#def576]
icu-74.2-build/icu/source/i18n/ucol.cpp:571:9: warning[core.CallAndMessage]: Called C++ object pointer is null
# 569| const RuleBasedCollator *rbc = RuleBasedCollator::rbcFromUCollator(coll);
# 570| if(rbc != nullptr || coll == nullptr) {
# 571|-> rbc->getRules(delta, rules);
# 572| }
# 573| if(buffer != nullptr && bufferLen > 0) {
Error: CLANG_WARNING: [#def577]
icu-74.2-build/icu/source/i18n/ucol.cpp:600:18: warning[core.CallAndMessage]: Called C++ object pointer is null
# 598| result = nullptr;
# 599| } else {
# 600|-> result = rbc->internalGetLocaleID(type, *status);
# 601| }
# 602|
Error: CPPCHECK_WARNING: [#def578]
icu-74.2-build/icu/source/i18n/ucol_res.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def579]
icu-74.2-build/icu/source/i18n/ucol_sit.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def580]
icu-74.2-build/icu/source/i18n/ucol_sit.cpp:363:25: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
# 361| if(len) {
# 362| if(len < capacity) {
# 363|-> uprv_strcat(destination, "_");
# 364| }
# 365| len++;
Error: CLANG_WARNING: [#def581]
icu-74.2-build/icu/source/i18n/ucol_sit.cpp:371:48: warning[core.NullDereference]: Array access (from variable 'destination') results in a null pointer dereference
# 369| for(j = 0; j < s->entries[i].length(); j++) {
# 370| if(len + j < capacity) {
# 371|-> destination[len+j] = uprv_toupper(s->entries[i][j]);
# 372| }
# 373| }
Error: CPPCHECK_WARNING: [#def582]
icu-74.2-build/icu/source/i18n/ucoleitr.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def583]
icu-74.2-build/icu/source/i18n/ucsdet.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def584]
icu-74.2-build/icu/source/i18n/udat.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def585]
icu-74.2-build/icu/source/i18n/udateintervalformat.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def586]
icu-74.2-build/icu/source/i18n/uitercollationiterator.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def587]
icu-74.2-build/icu/source/i18n/ulistformatter.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def588]
icu-74.2-build/icu/source/i18n/ulocdata.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def589]
icu-74.2-build/icu/source/i18n/umsg.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def590]
icu-74.2-build/icu/source/i18n/unesctrn.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def591]
icu-74.2-build/icu/source/i18n/uni2name.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: COMPILER_WARNING (CWE-457): [#def592]
icu-74.2-build/icu/source/i18n/unicode/numberformatter.h:769:28: warning[-Wuninitialized]: ‘MEM <unsigned char> [(struct FractionSignificantSettings *)&settings + 12B]’ is used uninitialized
# 769 | : fType(type), fUnion(union_) {}
# | ^~~~~~~~~~~~~~
icu-74.2-build/icu/source/i18n/number_rounding.cpp: scope_hint: In function ‘icu_74::number::Precision::constructFraction(int, int)’
icu-74.2-build/icu/source/i18n/number_rounding.cpp:281:33: note: ‘MEM <unsigned char> [(struct FractionSignificantSettings *)&settings + 12B]’ was declared here
# 281 | FractionSignificantSettings settings;
# | ^~~~~~~~
# 767|
# 768| Precision(const PrecisionType& type, const PrecisionUnion& union_)
# 769|-> : fType(type), fUnion(union_) {}
# 770|
# 771| Precision(UErrorCode errorCode) : fType(RND_ERROR) {
Error: COMPILER_WARNING (CWE-457): [#def593]
icu-74.2-build/icu/source/i18n/unicode/numberformatter.h:769:28: warning[-Wuninitialized]: ‘MEM <unsigned int> [(struct FractionSignificantSettings *)&settings + 8B]’ is used uninitialized
# 769 | : fType(type), fUnion(union_) {}
# | ^~~~~~~~~~~~~~
icu-74.2-build/icu/source/i18n/number_rounding.cpp: scope_hint: In function ‘icu_74::number::Precision::constructFraction(int, int)’
icu-74.2-build/icu/source/i18n/number_rounding.cpp:281:33: note: ‘MEM <unsigned int> [(struct FractionSignificantSettings *)&settings + 8B]’ was declared here
# 281 | FractionSignificantSettings settings;
# | ^~~~~~~~
# 767|
# 768| Precision(const PrecisionType& type, const PrecisionUnion& union_)
# 769|-> : fType(type), fUnion(union_) {}
# 770|
# 771| Precision(UErrorCode errorCode) : fType(RND_ERROR) {
Error: CPPCHECK_WARNING: [#def594]
icu-74.2-build/icu/source/i18n/units_complexconverter.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def595]
icu-74.2-build/icu/source/i18n/units_converter.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def596]
icu-74.2-build/icu/source/i18n/units_data.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def597]
icu-74.2-build/icu/source/i18n/units_router.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def598]
icu-74.2-build/icu/source/i18n/units_router.cpp:126:13: warning[core.CallAndMessage]: Called C++ object pointer is null
# 124| // Set up the rounder for this preference's precision
# 125| if (rounder != nullptr && rounder->fPrecision.isBogus()) {
# 126|-> if (converterPreference->precision.length() > 0) {
# 127| rounder->fPrecision = parseSkeletonToPrecision(converterPreference->precision, status);
# 128| } else {
Error: CLANG_WARNING: [#def599]
icu-74.2-build/icu/source/i18n/units_router.cpp:136:24: warning[core.CallAndMessage]: Called C++ object pointer is null
# 134| }
# 135|
# 136|-> return RouteResult(converterPreference->converter.convert(quantity, rounder, status),
# 137| converterPreference->targetUnit.copy(status));
# 138| }
Error: CPPCHECK_WARNING: [#def600]
icu-74.2-build/icu/source/i18n/unum.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def601]
icu-74.2-build/icu/source/i18n/unum.cpp:180:15: warning[core.CallAndMessage]: Called C++ object pointer is null
# 178| const RuleBasedNumberFormat* rbnf = dynamic_cast<const RuleBasedNumberFormat*>(nf);
# 179| U_ASSERT(rbnf != nullptr);
# 180|-> res = rbnf->clone();
# 181| }
# 182|
Error: CLANG_WARNING: [#def602]
icu-74.2-build/icu/source/i18n/unum.cpp:467:9: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
# 465| *status = U_BUFFER_OVERFLOW_ERROR;
# 466| } else if (sp.size() == outBufLength) {
# 467|-> uprv_strncpy(outBuf, sp.data(), sp.size());
# 468| *status = U_STRING_NOT_TERMINATED_WARNING;
# 469| } else {
Error: CLANG_WARNING: [#def603]
icu-74.2-build/icu/source/i18n/unum.cpp:471:9: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
# 469| } else {
# 470| U_ASSERT(outBufLength > 0);
# 471|-> uprv_strcpy(outBuf, sp.data());
# 472| }
# 473| return sp.size();
Error: CLANG_WARNING: [#def604]
icu-74.2-build/icu/source/i18n/unum.cpp:776:9: warning[core.CallAndMessage]: Called C++ object pointer is null
# 774| U_ASSERT(rbnf != nullptr);
# 775| if (tag == UNUM_DEFAULT_RULESET) {
# 776|-> rbnf->setDefaultRuleSet(val, *status);
# 777| } else {
# 778| *status = U_UNSUPPORTED_ERROR;
Error: CPPCHECK_WARNING: [#def605]
icu-74.2-build/icu/source/i18n/upluralrules.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def606]
icu-74.2-build/icu/source/i18n/uregex.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def607]
icu-74.2-build/icu/source/i18n/uregex.cpp:699:30: warning[core.NullDereference]: Array access (from variable 'dest') results in a null pointer dereference
# 697| int32_t copyLength = fullLength;
# 698| if (copyLength < destCapacity) {
# 699|-> dest[copyLength] = 0;
# 700| } else if (copyLength == destCapacity) {
# 701| *status = U_STRING_NOT_TERMINATED_WARNING;
Error: CLANG_WARNING: [#def608]
icu-74.2-build/icu/source/i18n/uregex.cpp:1330:19: warning[core.NullDereference]: Array access (from variable 'buf') results in a null pointer dereference
# 1328| static inline void appendToBuf(char16_t c, int32_t *idx, char16_t *buf, int32_t bufCapacity) {
# 1329| if (*idx < bufCapacity) {
# 1330|-> buf[*idx] = c;
# 1331| }
# 1332| (*idx)++;
Error: CLANG_WARNING: [#def609]
icu-74.2-build/icu/source/i18n/uregex.cpp:1551:23: warning[core.NullDereference]: Array access (from variable 'dest') results in a null pointer dereference
# 1549| //
# 1550| if (destIdx < capacity) {
# 1551|-> dest[destIdx] = 0;
# 1552| } else if (U_SUCCESS(*status)) {
# 1553| if (destIdx == *destCapacity) {
Error: CLANG_WARNING: [#def610]
icu-74.2-build/icu/source/i18n/uregex.cpp:1712:23: warning[core.NullDereference]: Array access (from variable 'dest') results in a null pointer dereference
# 1710| //
# 1711| if (destIdx < destCap) {
# 1712|-> dest[destIdx] = 0;
# 1713| } else if (destIdx == destCap) {
# 1714| *status = U_STRING_NOT_TERMINATED_WARNING;
Error: CLANG_WARNING: [#def611]
icu-74.2-build/icu/source/i18n/uregex.cpp:1900:38: warning[core.NullDereference]: Array access (from variable 'destBuf') results in a null pointer dereference
# 1898| // Output an empty string, and then we are done.
# 1899| if (destIdx < destCapacity) {
# 1900|-> destBuf[destIdx] = 0;
# 1901| }
# 1902| if (i < destFieldsCapacity-1) {
Error: CPPCHECK_WARNING: [#def612]
icu-74.2-build/icu/source/i18n/usearch.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def613]
icu-74.2-build/icu/source/i18n/usearch.cpp:2335:22: warning[deadcode.DeadStores]: Although the value stored to 'maxLimit' is used in the enclosing expression, the value is never actually read from 'maxLimit'
# 2333| // across the start index will be truncated.
# 2334| int32_t nba = nextBoundaryAfter(strsrch, minLimit, *status);
# 2335|-> mLimit = maxLimit = (nba > 0) && (startIdx > nba) ? nba : startIdx;
# 2336| }
# 2337|
Error: CPPCHECK_WARNING: [#def614]
icu-74.2-build/icu/source/i18n/uspoof.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-476): [#def615]
icu-74.2-build/icu/source/i18n/uspoof.cpp:247: warning[nullPointer]: Possible null pointer dereference: result
# 245| result = nullptr;
# 246| }
# 247|-> return result->asUSpoofChecker();
# 248| }
# 249|
Error: CLANG_WARNING: [#def616]
icu-74.2-build/icu/source/i18n/uspoof.cpp:247:12: warning[core.CallAndMessage]: Called C++ object pointer is null
# 245| result = nullptr;
# 246| }
# 247|-> return result->asUSpoofChecker();
# 248| }
# 249|
Error: CPPCHECK_WARNING: [#def617]
icu-74.2-build/icu/source/i18n/uspoof_build.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def618]
icu-74.2-build/icu/source/i18n/uspoof_conf.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def619]
icu-74.2-build/icu/source/i18n/uspoof_impl.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def620]
icu-74.2-build/icu/source/i18n/utf16collationiterator.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def621]
icu-74.2-build/icu/source/i18n/utf16collationiterator.cpp:266:25: warning[core.NullDereference]: Dereference of null pointer
# 264| return U_SENTINEL;
# 265| }
# 266|-> c = *pos++;
# 267| }
# 268| } else if(c == 0 && limit == nullptr) {
Error: CLANG_WARNING: [#def622]
icu-74.2-build/icu/source/i18n/utf16collationiterator.cpp:305:25: warning[core.NullDereference]: Dereference of null pointer
# 303| return U_SENTINEL;
# 304| }
# 305|-> c = *--pos;
# 306| }
# 307| }
Error: CPPCHECK_WARNING: [#def623]
icu-74.2-build/icu/source/i18n/utf8collationiterator.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def624]
icu-74.2-build/icu/source/i18n/utrans.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: COMPILER_WARNING (CWE-457): [#def625]
icu-74.2-build/icu/source/i18n/utrans.cpp:115:21: warning[-Wmaybe-uninitialized]: ‘empty’ may be used uninitialized
# 115 | (*func->replace)(rep, start, limit, text.getBuffer(), text.length());
# | ^
icu-74.2-build/icu/source/i18n/utrans.cpp:115:21: note: by argument 4 of type ‘const UChar *’ to ‘void <Td0e> (void * *, int32_t, int32_t, const UChar *, int32_t)’
icu-74.2-build/icu/source/i18n/remtrans.cpp: scope_hint: In member function ‘handleTransliterate’
icu-74.2-build/icu/source/i18n/remtrans.cpp:63:19: note: ‘empty’ declared here
# 63 | UnicodeString empty;
# | ^
# 113| int32_t limit,
# 114| const UnicodeString& text) {
# 115|-> (*func->replace)(rep, start, limit, text.getBuffer(), text.length());
# 116| }
# 117|
Error: CPPCHECK_WARNING: [#def626]
icu-74.2-build/icu/source/i18n/vtzone.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def627]
icu-74.2-build/icu/source/i18n/vzone.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def628]
icu-74.2-build/icu/source/i18n/zonemeta.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def629]
icu-74.2-build/icu/source/i18n/zonemeta.cpp:351:21: warning[deadcode.DeadStores]: Value stored to 'idInCache' is never read
# 349| U_ASSERT(key != nullptr);
# 350| if (key != nullptr) {
# 351|-> idInCache = (const char16_t *)uhash_put(gCanonicalIDCache, (void *)key, (void *)canonicalID, &status);
# 352| U_ASSERT(idInCache == nullptr);
# 353| }
Error: CLANG_WARNING: [#def630]
icu-74.2-build/icu/source/i18n/zonemeta.cpp:359:21: warning[deadcode.DeadStores]: Value stored to 'canonicalInCache' is never read
# 357| const char16_t *canonicalInCache = (const char16_t*)uhash_get(gCanonicalIDCache, canonicalID);
# 358| if (canonicalInCache == nullptr) {
# 359|-> canonicalInCache = (const char16_t *)uhash_put(gCanonicalIDCache, (void *)canonicalID, (void *)canonicalID, &status);
# 360| U_ASSERT(canonicalInCache == nullptr);
# 361| }
Error: CPPCHECK_WARNING: [#def631]
icu-74.2-build/icu/source/i18n/zrule.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def632]
icu-74.2-build/icu/source/i18n/ztrans.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def633]
icu-74.2-build/icu/source/io/locbund.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def634]
icu-74.2-build/icu/source/io/sprintf.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def635]
icu-74.2-build/icu/source/io/sscanf.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def636]
icu-74.2-build/icu/source/io/ufile.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def637]
icu-74.2-build/icu/source/io/ufmt_cmn.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def638]
icu-74.2-build/icu/source/io/uprintf.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def639]
icu-74.2-build/icu/source/io/uprntf_p.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def640]
icu-74.2-build/icu/source/io/uscanf.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def641]
icu-74.2-build/icu/source/io/uscanf_p.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def642]
icu-74.2-build/icu/source/io/ustdio.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def643]
icu-74.2-build/icu/source/io/ustream.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def644]
icu-74.2-build/icu/source/io/ustream.cpp:129:21: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
# 127| int32_t uBuffIdx = 0;
# 128| while (uBuffIdx < uBuffSize) {
# 129|-> U16_NEXT(uBuffer, uBuffIdx, uBuffSize, ch32);
# 130| if (u_isWhitespace(ch32)) {
# 131| if (!initialWhitespace) {
Error: CPPCHECK_WARNING: [#def645]
icu-74.2-build/icu/source/tools/ctestfw/ctest.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def646]
icu-74.2-build/icu/source/tools/ctestfw/ctest.c:614:13: warning[deadcode.DeadStores]: Value stored to 'curNode' is never read
# 612| while (strncmp_nullcheck ( name, nextNode->name, nameLen) != 0 )
# 613| {
# 614|-> curNode = nextNode;
# 615| nextNode = nextNode -> sibling;
# 616|
Error: CPPCHECK_WARNING: [#def647]
icu-74.2-build/icu/source/tools/ctestfw/datamap.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def648]
icu-74.2-build/icu/source/tools/ctestfw/tstdtmod.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def649]
icu-74.2-build/icu/source/tools/ctestfw/uperf.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def650]
icu-74.2-build/icu/source/tools/ctestfw/uperf.cpp:357:13: warning[core.uninitialized.Branch]: Branch condition evaluates to a garbage value
# 355| do {
# 356| this->runIndexedTest( index, false, name );
# 357|-> if (!name || (name[0] == 0))
# 358| break;
# 359| if (!testname) {
Error: CPPCHECK_WARNING: [#def651]
icu-74.2-build/icu/source/tools/escapesrc/escapesrc.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def652]
icu-74.2-build/icu/source/tools/escapesrc/escapesrc.cpp:321:10: warning[deadcode.DeadStores]: Value stored to 'len' during its initialization is never read
# 319| bool fixLine(int /*no*/, std::string &linestr) {
# 320| const char *line = linestr.c_str();
# 321|-> size_t len = linestr.size();
# 322|
# 323| // no u' in the line?
Error: CLANG_WARNING: [#def653]
icu-74.2-build/icu/source/tools/escapesrc/escapesrc.cpp:341:9: warning[deadcode.DeadStores]: Although the value stored to 'len' is used in the enclosing expression, the value is never actually read from 'len'
# 339|
# 340| // reset and find all u' cases
# 341|-> pos = len = linestr.size();
# 342| while((pos>0) && (pos = linestr.rfind("u'", pos)) != std::string::npos) {
# 343| //printf("found singlequote at %d\n", pos);
Error: CLANG_WARNING: [#def654]
icu-74.2-build/icu/source/tools/escapesrc/escapesrc.cpp:350:9: warning[deadcode.DeadStores]: Although the value stored to 'len' is used in the enclosing expression, the value is never actually read from 'len'
# 348|
# 349| // reset and find all u8" cases
# 350|-> pos = len = linestr.size();
# 351| while((pos>0) && (pos = linestr.rfind("u8\"", pos)) != std::string::npos) {
# 352| if(fixAt(linestr, pos)) return true;
Error: CPPCHECK_WARNING: [#def655]
icu-74.2-build/icu/source/tools/genbrk/genbrk.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def656]
icu-74.2-build/icu/source/tools/gencfu/gencfu.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def657]
icu-74.2-build/icu/source/tools/gencnval/gencnval.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def658]
icu-74.2-build/icu/source/tools/gendict/gendict.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def659]
icu-74.2-build/icu/source/tools/gennorm2/extradata.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def660]
icu-74.2-build/icu/source/tools/gennorm2/gennorm2.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def661]
icu-74.2-build/icu/source/tools/gennorm2/n2builder.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def662]
icu-74.2-build/icu/source/tools/gennorm2/n2builder.cpp:263:34: warning[core.NonNullParamChecker]: Forming reference to null pointer
# 261| while(++i<buffer.length()) {
# 262| uint8_t cc=buffer.ccAt(i); // !=0 if after last starter
# 263|-> if(i>lastStarterIndex && norms.combinesWithCCBetween(*starterNorm, prevCC, cc)) {
# 264| // The starter combines with a mark that reorders before the current one.
# 265| return false;
Error: CLANG_WARNING: [#def663]
icu-74.2-build/icu/source/tools/gennorm2/n2builder.cpp:291:8: warning[core.NonNullParamChecker]: Forming reference to null pointer
# 289| return false; // forward-combining starter at the very end
# 290| }
# 291|-> if(norms.combinesWithCCBetween(*starterNorm, prevCC, 256)) {
# 292| // The starter combines with another mark.
# 293| return false;
Error: CPPCHECK_WARNING: [#def664]
icu-74.2-build/icu/source/tools/gennorm2/norms.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def665]
icu-74.2-build/icu/source/tools/genrb/derb.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def666]
icu-74.2-build/icu/source/tools/genrb/filterrb.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def667]
icu-74.2-build/icu/source/tools/genrb/genrb.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def668]
icu-74.2-build/icu/source/tools/genrb/genrb.cpp:629:13: warning[deadcode.DeadStores]: Value stored to 'dirlen' is never read
# 627|
# 628| inputDir = inputDirBuf.data();
# 629|-> dirlen = inputDirBuf.length();
# 630| }
# 631| }else{
Error: CPPCHECK_WARNING: [#def669]
icu-74.2-build/icu/source/tools/genrb/parse.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def670]
icu-74.2-build/icu/source/tools/genrb/parse.cpp:300:15: warning[core.NullDereference]: Dereference of null pointer (loaded from variable 'line')
# 298| if(!uprv_isInvariantUString(tokenValue->fChars, tokenValue->fLength)) {
# 299| *status = U_INVALID_FORMAT_ERROR;
# 300|-> error(*line, "invariant characters required for table keys, binary data, etc.");
# 301| return nullptr;
# 302| }
Error: CLANG_WARNING: [#def671]
icu-74.2-build/icu/source/tools/genrb/parse.cpp:871:20: warning[core.CallAndMessage]: Called C++ object pointer is null
# 869| uint32_t ce32 = data->getCE32(c);
# 870| if (ce32 == icu::Collation::FALLBACK_CE32) {
# 871|-> ce32 = data->base->getCE32(c);
# 872| }
# 873| if (c == 0x0340 || c == 0x0341 || c == 0x0343 || c == 0x0344) {
Error: CLANG_WARNING: [#def672]
icu-74.2-build/icu/source/tools/genrb/parse.cpp:927:20: warning[core.CallAndMessage]: Called C++ object pointer is null
# 925| uint32_t ce32 = data->getCE32(c);
# 926| if (ce32 == icu::Collation::FALLBACK_CE32) {
# 927|-> ce32 = data->base->getCE32(c);
# 928| }
# 929| // Can't reject complex CE32s, because search collations have expansions.
Error: CLANG_WARNING: [#def673]
icu-74.2-build/icu/source/tools/genrb/parse.cpp:987:20: warning[core.CallAndMessage]: Called C++ object pointer is null
# 985| uint32_t ce32 = data->getCE32(c);
# 986| if (ce32 == icu::Collation::FALLBACK_CE32) {
# 987|-> ce32 = data->base->getCE32(c);
# 988| umutablecptrie_set(builder.getAlias(), c, ce32, status);
# 989| }
Error: CLANG_WARNING: [#def674]
icu-74.2-build/icu/source/tools/genrb/parse.cpp:1467:21: warning[deadcode.DeadStores]: Value stored to 'token' is never read
# 1465| /* then, we cannot handle aliases */
# 1466| if(token == TOK_OPEN_BRACE) {
# 1467|-> token = getToken(state, &tokenValue, &comment, &line, status);
# 1468| TableResource *collationRes;
# 1469| if (keepCollationType(subtag)) {
Error: CLANG_WARNING: [#def675]
icu-74.2-build/icu/source/tools/genrb/parse.cpp:1481:21: warning[deadcode.DeadStores]: Value stored to 'token' is never read
# 1479| } else if(token == TOK_COLON) { /* right now, we'll just try to see if we have aliases */
# 1480| /* we could have a table too */
# 1481|-> token = peekToken(state, 1, &tokenValue, &line, &comment, status);
# 1482| u_UCharsToChars(tokenValue->fChars, typeKeyword, u_strlen(tokenValue->fChars) + 1);
# 1483| if(uprv_strcmp(typeKeyword, "alias") == 0) {
Error: CPPCHECK_WARNING: [#def676]
icu-74.2-build/icu/source/tools/genrb/prscmnts.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def677]
icu-74.2-build/icu/source/tools/genrb/read.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def678]
icu-74.2-build/icu/source/tools/genrb/read.c:202:21: warning[deadcode.DeadStores]: Value stored to 'len' is never read
# 200| ustr_uscat(token, pTarget,len, status);
# 201| isFollowingCharEscaped = false;
# 202|-> len=0;
# 203| if(c == CR || c == LF){
# 204| if(isNLUnescaped == false && prevC!=CR){
Error: CLANG_WARNING: [#def679]
icu-74.2-build/icu/source/tools/genrb/read.c:256:13: warning[deadcode.DeadStores]: Value stored to 'len' is never read
# 254| pTarget = target;
# 255| ustr_uscat(token, pTarget,len, status);
# 256|-> len=0;
# 257|
# 258| if (U_FAILURE(*status)) {
Error: CLANG_WARNING: [#def680]
icu-74.2-build/icu/source/tools/genrb/read.c:301:17: warning[deadcode.DeadStores]: Value stored to 'len' is never read
# 299| pTarget = target;
# 300| ustr_uscat(token, pTarget,len, status);
# 301|-> len=0;
# 302| if (U_FAILURE(*status)) {
# 303| return TOK_ERROR;
Error: CPPCHECK_WARNING: [#def681]
icu-74.2-build/icu/source/tools/genrb/reslist.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-476): [#def682]
icu-74.2-build/icu/source/tools/genrb/reslist.cpp:243: warning[nullPointer]: Possible null pointer dereference: prev
# 241|
# 242| /* end of list */
# 243|-> prev->fNext = res;
# 244| res->fNext = nullptr;
# 245| }
Error: CPPCHECK_WARNING: [#def683]
icu-74.2-build/icu/source/tools/genrb/rle.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def684]
icu-74.2-build/icu/source/tools/genrb/wrtjava.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def685]
icu-74.2-build/icu/source/tools/genrb/wrtjava.cpp:260:15: warning[deadcode.DeadStores]: Value stored to 'current' during its initialization is never read
# 258| if(bufLen+(tabCount*4) > columnCount ){
# 259| uint32_t len = 0;
# 260|-> char* current = buf;
# 261| uint32_t add;
# 262| while(len < bufLen){
Error: CLANG_WARNING: [#def686]
icu-74.2-build/icu/source/tools/genrb/wrtjava.cpp:268:21: warning[deadcode.DeadStores]: Value stored to 'idx' is never read
# 266| uint32_t idx = strrch(current,add,'\\');
# 267| if (idx > add) {
# 268|-> idx = add;
# 269| } else {
# 270| int32_t num =idx-1;
Error: CPPCHECK_WARNING: [#def687]
icu-74.2-build/icu/source/tools/genrb/wrtxml.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def688]
icu-74.2-build/icu/source/tools/genrb/wrtxml.cpp:848:9: warning[deadcode.DeadStores]: Value stored to 'sid' is never read
# 846| }
# 847|
# 848|-> sid = printContainer(res, bin_unit, binary_restype, m_type, id, status);
# 849|
# 850| write_tabs(out);
Error: CLANG_WARNING: [#def689]
icu-74.2-build/icu/source/tools/genrb/wrtxml.cpp:898:13: warning[deadcode.DeadStores]: Value stored to 'len' is never read
# 896| i = 0;
# 897| while(i <res->fLength){
# 898|-> len = itostr(temp, res->fData[i], 16, 2);
# 899| write_utf8_file(out, UnicodeString(temp));
# 900| i += 1;
Error: CPPCHECK_WARNING: [#def690]
icu-74.2-build/icu/source/tools/gensprep/gensprep.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def691]
icu-74.2-build/icu/source/tools/gensprep/gensprep.c:237:9: warning[core.NonNullParamChecker]: Null pointer passed to 2nd parameter expecting 'nonnull'
# 235| if(options[NORMALIZE].doesOccur){ /* this option might be set by @normalize;; in the source file */
# 236| /* set up directory for NormalizationCorrections.txt */
# 237|-> uprv_strcpy(filename,icuUniDataDir);
# 238| basename=filename+uprv_strlen(filename);
# 239| if(basename>filename && *(basename-1)!=U_FILE_SEP_CHAR) {
Error: CPPCHECK_WARNING: [#def692]
icu-74.2-build/icu/source/tools/gensprep/store.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def693]
icu-74.2-build/icu/source/tools/gensprep/store.c:379:13: warning[deadcode.DeadStores]: Value stored to 'trieWord' is never read
# 377| if((savedTrieWord- _SPREP_TYPE_THRESHOLD) == USPREP_PROHIBITED){
# 378| /* turn on the first bit in trie word */
# 379|-> trieWord += 0x01;
# 380| }else{
# 381| /*
Error: CPPCHECK_WARNING: [#def694]
icu-74.2-build/icu/source/tools/gentest/gentest.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def695]
icu-74.2-build/icu/source/tools/icuexportdata/icuexportdata.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def696]
icu-74.2-build/icu/source/tools/icuinfo/icuinfo.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def697]
icu-74.2-build/icu/source/tools/icupkg/icupkg.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def698]
icu-74.2-build/icu/source/tools/icupkg/icupkg.cpp:307:9: warning[cplusplus.NewDeleteLeaks]: Potential leak of memory pointed to by 'pkg'
# 305| }
# 306| if(argc<2 || 3<argc || autoPrefix>1) {
# 307|-> printUsage(pname, false);
# 308| return U_ILLEGAL_ARGUMENT_ERROR;
# 309| }
Error: CPPCHECK_WARNING: [#def699]
icu-74.2-build/icu/source/tools/makeconv/gencnvex.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def700]
icu-74.2-build/icu/source/tools/makeconv/gencnvex.c:315:11: warning[deadcode.DeadStores]: Although the value stored to 'j' is used in the enclosing expression, the value is never actually read from 'j'
# 313|
# 314| /* leave the map alone for the initial mappings with desired flags */
# 315|-> for(i=j=0; i<count; ++i) {
# 316| flag=mappings[map[i]].f;
# 317| if(flag!=0 && flag!=3) {
Error: CLANG_WARNING: [#def701]
icu-74.2-build/icu/source/tools/makeconv/gencnvex.c:738:10: warning[deadcode.DeadStores]: Although the value stored to 'high' is used in the enclosing expression, the value is never actually read from 'high'
# 736| uniqueCount=1;
# 737|
# 738|-> prev=high=low;
# 739| for(i=start+1; i<limit; ++i) {
# 740| m=mappings+map[i];
Error: CLANG_WARNING: [#def702]
icu-74.2-build/icu/source/tools/makeconv/gencnvex.c:978:9: warning[deadcode.DeadStores]: Value stored to 'codePoints' is never read
# 976| value=0;
# 977| m=mappings+map[subStart];
# 978|-> codePoints=UCM_GET_CODE_POINTS(table, m);
# 979| if(m->uLen==1) {
# 980| /* do not include this in generateFromUTable() */
Error: CPPCHECK_WARNING: [#def703]
icu-74.2-build/icu/source/tools/makeconv/genmbcs.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-457): [#def704]
icu-74.2-build/icu/source/tools/makeconv/genmbcs.cpp:126: warning[uninitvar]: Uninitialized variable: buffer
# 124|
# 125| *s=0;
# 126|-> return buffer;
# 127| }
# 128|
Error: CLANG_WARNING: [#def705]
icu-74.2-build/icu/source/tools/makeconv/genmbcs.cpp:1389:50: warning[core.DivideZero]: Division by zero
# 1387| printf("fromUnicode number of %d-byte stage 3 mapping entries: 0x%lx=%lu\n",
# 1388| (int)stage3Width,
# 1389|-> (unsigned long)mbcsData->stage3Top/stage3Width,
# 1390| (unsigned long)mbcsData->stage3Top/stage3Width);
# 1391| #if 0
Error: CPPCHECK_WARNING: [#def706]
icu-74.2-build/icu/source/tools/makeconv/makeconv.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def707]
icu-74.2-build/icu/source/tools/pkgdata/pkgdata.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: COMPILER_WARNING: [#def708]
icu-74.2-build/icu/source/tools/pkgdata/pkgdata.cpp: scope_hint: In function ‘pkg_executeOptions(UPKGOptions_*)’
icu-74.2-build/icu/source/tools/pkgdata/pkgdata.cpp:986:109: warning[-Wformat-truncation=]: ‘__snprintf_chk’ output may be truncated before the last format character
# 986 | snprintf(libFileNames[LIB_FILE_VERSION_TMP], sizeof(libFileNames[LIB_FILE_VERSION_TMP]), "%s%s%s",
# | ^
/usr/include/bits/stdio2.h:68:35: note: ‘__snprintf_chk’ output 1 or more bytes (assuming 257) into a destination of size 256
# 68 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
# | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 69 | __glibc_objsize (__s), __fmt,
# | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 70 | __va_arg_pack ());
# | ~~~~~~~~~~~~~~~~~
# 984| #else
# 985| if (noVersion && !reverseExt) {
# 986|-> snprintf(libFileNames[LIB_FILE_VERSION_TMP], sizeof(libFileNames[LIB_FILE_VERSION_TMP]), "%s%s%s",
# 987| libFileNames[LIB_FILE],
# 988| FILE_SUFFIX,
Error: COMPILER_WARNING: [#def709]
icu-74.2-build/icu/source/tools/pkgdata/pkgdata.cpp: scope_hint: In function ‘pkg_executeOptions(UPKGOptions_*)’
icu-74.2-build/icu/source/tools/pkgdata/pkgdata.cpp:991:109: warning[-Wformat-truncation=]: ‘%s’ directive output may be truncated writing up to 1 bytes into a region of size between 0 and 256
# 991 | snprintf(libFileNames[LIB_FILE_VERSION_TMP], sizeof(libFileNames[LIB_FILE_VERSION_TMP]), "%s%s%s%s%s",
# | ^~
/usr/include/bits/stdio2.h:68:35: note: ‘__snprintf_chk’ output 1 or more bytes (assuming 258) into a destination of size 256
# 68 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
# | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 69 | __glibc_objsize (__s), __fmt,
# | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 70 | __va_arg_pack ());
# | ~~~~~~~~~~~~~~~~~
# 989| pkgDataFlags[SOBJ_EXT]);
# 990| } else {
# 991|-> snprintf(libFileNames[LIB_FILE_VERSION_TMP], sizeof(libFileNames[LIB_FILE_VERSION_TMP]), "%s%s%s%s%s",
# 992| libFileNames[LIB_FILE],
# 993| FILE_SUFFIX,
Error: COMPILER_WARNING: [#def710]
icu-74.2-build/icu/source/tools/pkgdata/pkgdata.cpp: scope_hint: In function ‘pkg_executeOptions(UPKGOptions_*)’
icu-74.2-build/icu/source/tools/pkgdata/pkgdata.cpp:1000:111: warning[-Wformat-truncation=]: ‘__snprintf_chk’ output may be truncated before the last format character
# 1000 | snprintf(libFileNames[LIB_FILE_VERSION_MAJOR], sizeof(libFileNames[LIB_FILE_VERSION_TMP]), "%s%s%s",
# | ^
/usr/include/bits/stdio2.h:68:35: note: ‘__snprintf_chk’ output 1 or more bytes (assuming 257) into a destination of size 256
# 68 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
# | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 69 | __glibc_objsize (__s), __fmt,
# | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 70 | __va_arg_pack ());
# | ~~~~~~~~~~~~~~~~~
# 998| #endif
# 999| if (noVersion && !reverseExt) {
# 1000|-> snprintf(libFileNames[LIB_FILE_VERSION_MAJOR], sizeof(libFileNames[LIB_FILE_VERSION_TMP]), "%s%s%s",
# 1001| libFileNames[LIB_FILE],
# 1002| FILE_SUFFIX,
Error: COMPILER_WARNING: [#def711]
icu-74.2-build/icu/source/tools/pkgdata/pkgdata.cpp: scope_hint: In function ‘pkg_executeOptions(UPKGOptions_*)’
icu-74.2-build/icu/source/tools/pkgdata/pkgdata.cpp:1005:101: warning[-Wformat-truncation=]: ‘__snprintf_chk’ output may be truncated before the last format character
# 1005 | snprintf(libFileNames[LIB_FILE_VERSION], sizeof(libFileNames[LIB_FILE_VERSION]), "%s%s%s",
# | ^
/usr/include/bits/stdio2.h:68:35: note: ‘__snprintf_chk’ output 1 or more bytes (assuming 257) into a destination of size 256
# 68 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
# | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 69 | __glibc_objsize (__s), __fmt,
# | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 70 | __va_arg_pack ());
# | ~~~~~~~~~~~~~~~~~
# 1003| pkgDataFlags[SO_EXT]);
# 1004|
# 1005|-> snprintf(libFileNames[LIB_FILE_VERSION], sizeof(libFileNames[LIB_FILE_VERSION]), "%s%s%s",
# 1006| libFileNames[LIB_FILE],
# 1007| FILE_SUFFIX,
Error: COMPILER_WARNING: [#def712]
icu-74.2-build/icu/source/tools/pkgdata/pkgdata.cpp: scope_hint: In function ‘pkg_executeOptions(UPKGOptions_*)’
icu-74.2-build/icu/source/tools/pkgdata/pkgdata.cpp:1010:113: warning[-Wformat-truncation=]: ‘%s’ directive output may be truncated writing up to 1 bytes into a region of size between 0 and 256
# 1010 | snprintf(libFileNames[LIB_FILE_VERSION_MAJOR], sizeof(libFileNames[LIB_FILE_VERSION_MAJOR]), "%s%s%s%s%s",
# | ^~
/usr/include/bits/stdio2.h:68:35: note: ‘__snprintf_chk’ output 1 or more bytes (assuming 258) into a destination of size 256
# 68 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
# | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 69 | __glibc_objsize (__s), __fmt,
# | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 70 | __va_arg_pack ());
# | ~~~~~~~~~~~~~~~~~
# 1008| pkgDataFlags[SO_EXT]);
# 1009| } else {
# 1010|-> snprintf(libFileNames[LIB_FILE_VERSION_MAJOR], sizeof(libFileNames[LIB_FILE_VERSION_MAJOR]), "%s%s%s%s%s",
# 1011| libFileNames[LIB_FILE],
# 1012| FILE_SUFFIX,
Error: COMPILER_WARNING: [#def713]
icu-74.2-build/icu/source/tools/pkgdata/pkgdata.cpp: scope_hint: In function ‘pkg_executeOptions(UPKGOptions_*)’
icu-74.2-build/icu/source/tools/pkgdata/pkgdata.cpp:1017:101: warning[-Wformat-truncation=]: ‘%s’ directive output may be truncated writing up to 1 bytes into a region of size between 0 and 256
# 1017 | snprintf(libFileNames[LIB_FILE_VERSION], sizeof(libFileNames[LIB_FILE_VERSION]), "%s%s%s%s%s",
# | ^~
/usr/include/bits/stdio2.h:68:35: note: ‘__snprintf_chk’ output between 1 and 258 bytes into a destination of size 256
# 68 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
# | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 69 | __glibc_objsize (__s), __fmt,
# | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 70 | __va_arg_pack ());
# | ~~~~~~~~~~~~~~~~~
# 1015| reverseExt ? pkgDataFlags[SO_EXT] : version_major);
# 1016|
# 1017|-> snprintf(libFileNames[LIB_FILE_VERSION], sizeof(libFileNames[LIB_FILE_VERSION]), "%s%s%s%s%s",
# 1018| libFileNames[LIB_FILE],
# 1019| FILE_SUFFIX,
Error: COMPILER_WARNING: [#def714]
icu-74.2-build/icu/source/tools/pkgdata/pkgdata.cpp: scope_hint: In function ‘pkg_executeOptions(UPKGOptions_*)’
icu-74.2-build/icu/source/tools/pkgdata/pkgdata.cpp:1035:100: warning[-Wformat-truncation=]: ‘__snprintf_chk’ output may be truncated before the last format character
# 1035 | snprintf(libFileNames[LIB_FILE_VERSION], sizeof(libFileNames[LIB_FILE_VERSION]), "%s.%s", libFileNames[LIB_FILE], pkgDataFlags[A_EXT]);
# | ^
/usr/include/bits/stdio2.h:68:35: note: ‘__snprintf_chk’ output 2 or more bytes (assuming 257) into a destination of size 256
# 68 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
# | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 69 | __glibc_objsize (__s), __fmt,
# | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 70 | __va_arg_pack ());
# | ~~~~~~~~~~~~~~~~~
# 1033|
# 1034| if(IN_STATIC_MODE(mode)) {
# 1035|-> snprintf(libFileNames[LIB_FILE_VERSION], sizeof(libFileNames[LIB_FILE_VERSION]), "%s.%s", libFileNames[LIB_FILE], pkgDataFlags[A_EXT]);
# 1036| libFileNames[LIB_FILE_VERSION_MAJOR][0]=0;
# 1037| if(o->verbose) {
Error: COMPILER_WARNING: [#def715]
icu-74.2-build/icu/source/tools/pkgdata/pkgdata.cpp: scope_hint: In function ‘pkg_installLibrary(char const*, char const*, signed char)’
icu-74.2-build/icu/source/tools/pkgdata/pkgdata.cpp:1141:33: warning[-Wformat-truncation=]: ‘%s’ directive output may be truncated writing up to 255 bytes into a region of size between 247 and 502
# 1141 | "cd %s && %s %s %s%s%s",
# | ^~
#......
# 1145 | installDir, PKGDATA_FILE_SEP_STRING, libFileNames[LIB_FILE_VERSION]);
# | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/bits/stdio2.h:68:35: note: ‘__snprintf_chk’ output 11 or more bytes (assuming 521) into a destination of size 512
# 68 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
# | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 69 | __glibc_objsize (__s), __fmt,
# | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 70 | __va_arg_pack ());
# | ~~~~~~~~~~~~~~~~~
# 1139| auto ret = snprintf(cmd,
# 1140| sizeof(cmd),
# 1141|-> "cd %s && %s %s %s%s%s",
# 1142| targetDir,
# 1143| pkgDataFlags[INSTALL_CMD],
Error: COMPILER_WARNING: [#def716]
icu-74.2-build/icu/source/tools/pkgdata/pkgdata.cpp: scope_hint: In function ‘pkg_executeOptions(UPKGOptions_*)’
icu-74.2-build/icu/source/tools/pkgdata/pkgdata.cpp:1314:97: warning[-Wformat-truncation=]: ‘.’ directive output may be truncated writing 1 byte into a region of size between 0 and 256
# 1314 | snprintf(libFileNames[LIB_FILE_VERSION], sizeof(libFileNames[LIB_FILE_VERSION]), "%s%s%s.%s",
# | ^
/usr/include/bits/stdio2.h:68:35: note: ‘__snprintf_chk’ output 2 or more bytes (assuming 258) into a destination of size 256
# 68 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
# | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 69 | __glibc_objsize (__s), __fmt,
# | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 70 | __va_arg_pack ());
# | ~~~~~~~~~~~~~~~~~
# 1312| */
# 1313| if (uprv_strcmp(pkgDataFlags[SOBJ_EXT], pkgDataFlags[SO_EXT]) != 0 && uprv_strcmp(pkgDataFlags[A_EXT], pkgDataFlags[SO_EXT]) == 0) {
# 1314|-> snprintf(libFileNames[LIB_FILE_VERSION], sizeof(libFileNames[LIB_FILE_VERSION]), "%s%s%s.%s",
# 1315| libFileNames[LIB_FILE],
# 1316| pkgDataFlags[LIB_EXT_ORDER][0] == '.' ? "." : "",
Error: CLANG_WARNING: [#def717]
icu-74.2-build/icu/source/tools/pkgdata/pkgdata.cpp:2196:24: warning[deadcode.DeadStores]: Although the value stored to 'n' is used in the enclosing expression, the value is never actually read from 'n'
# 2194| p.adoptInstead( popen(cmdBuf.data(), "r") );
# 2195|
# 2196|-> if (p.isNull() || (n = fread(buf, 1, items-1, p.getAlias())) <= 0) {
# 2197| fprintf(stderr, "%s: Error calling '%s'\n", progname, cmd);
# 2198| *buf = 0;
Error: CPPCHECK_WARNING: [#def718]
icu-74.2-build/icu/source/tools/pkgdata/pkgtypes.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def719]
icu-74.2-build/icu/source/tools/toolutil/collationinfo.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def720]
icu-74.2-build/icu/source/tools/toolutil/dbgutil.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def721]
icu-74.2-build/icu/source/tools/toolutil/denseranges.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def722]
icu-74.2-build/icu/source/tools/toolutil/filestrm.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def723]
icu-74.2-build/icu/source/tools/toolutil/filetools.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def724]
icu-74.2-build/icu/source/tools/toolutil/flagparser.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def725]
icu-74.2-build/icu/source/tools/toolutil/package.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def726]
icu-74.2-build/icu/source/tools/toolutil/pkg_genc.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def727]
icu-74.2-build/icu/source/tools/toolutil/pkg_gencmn.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def728]
icu-74.2-build/icu/source/tools/toolutil/pkg_gencmn.cpp:315:18: warning[deadcode.DeadStores]: Although the value stored to 's' is used in the enclosing expression, the value is never actually read from 's'
# 313|
# 314| /* create the output filename */
# 315|-> filename=s=buffer;
# 316| uprv_strcpy(filename, destDir);
# 317| s=filename+uprv_strlen(filename);
Error: CPPCHECK_WARNING: [#def729]
icu-74.2-build/icu/source/tools/toolutil/pkg_icu.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def730]
icu-74.2-build/icu/source/tools/toolutil/pkgitems.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def731]
icu-74.2-build/icu/source/tools/toolutil/ppucd.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def732]
icu-74.2-build/icu/source/tools/toolutil/swapimpl.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def733]
icu-74.2-build/icu/source/tools/toolutil/swapimpl.cpp:402:9: warning[deadcode.DeadStores]: Value stored to 'offset' is never read
# 400| count=(indexes[UCASE_IX_EXC_LENGTH]+indexes[UCASE_IX_UNFOLD_LENGTH])*2;
# 401| ds->swapArray16(ds, inBytes+offset, count, outBytes+offset, pErrorCode);
# 402|-> offset+=count;
# 403|
# 404| U_ASSERT(offset==size);
Error: CLANG_WARNING: [#def734]
icu-74.2-build/icu/source/tools/toolutil/swapimpl.cpp:510:9: warning[deadcode.DeadStores]: Value stored to 'offset' is never read
# 508| offset+=count;
# 509| count=indexes[UBIDI_IX_JG_LIMIT2]-indexes[UBIDI_IX_JG_START2];
# 510|-> offset+=count;
# 511|
# 512| U_ASSERT(offset==size);
Error: CLANG_WARNING: [#def735]
icu-74.2-build/icu/source/tools/toolutil/swapimpl.cpp:637:9: warning[deadcode.DeadStores]: Value stored to 'offset' is never read
# 635| count=indexes[_NORM_INDEX_CANON_SET_COUNT]*2;
# 636| ds->swapArray16(ds, inBytes+offset, count, outBytes+offset, pErrorCode);
# 637|-> offset+=count;
# 638| }
# 639|
Error: CLANG_WARNING: [#def736]
icu-74.2-build/icu/source/tools/toolutil/swapimpl.cpp:839:9: warning[deadcode.DeadStores]: Value stored to 'offset' is never read
# 837| utrie_swapAnyVersion(ds, inBytes + offset, count, outBytes + offset, pErrorCode);
# 838| }
# 839|-> offset = top;
# 840|
# 841| // Swap all of the string tries.
Error: CLANG_WARNING: [#def737]
icu-74.2-build/icu/source/tools/toolutil/swapimpl.cpp:846:9: warning[deadcode.DeadStores]: Value stored to 'offset' is never read
# 844| top = indexes[EmojiProps::IX_RGI_EMOJI_ZWJ_SEQUENCE_TRIE_OFFSET + 1];
# 845| ds->swapArray16(ds, inBytes + offset, top - offset, outBytes + offset, pErrorCode);
# 846|-> offset = top;
# 847|
# 848| U_ASSERT(offset == size);
Error: CPPCHECK_WARNING: [#def738]
icu-74.2-build/icu/source/tools/toolutil/toolutil.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def739]
icu-74.2-build/icu/source/tools/toolutil/ucbuf.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def740]
icu-74.2-build/icu/source/tools/toolutil/ucm.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def741]
icu-74.2-build/icu/source/tools/toolutil/ucm.cpp:796:10: warning[deadcode.DeadStores]: Although the value stored to 'bLen' is used in the enclosing expression, the value is never actually read from 'bLen'
# 794|
# 795| s=line;
# 796|-> uLen=bLen=0;
# 797|
# 798| /* parse code points */
Error: CPPCHECK_WARNING: [#def742]
icu-74.2-build/icu/source/tools/toolutil/ucmstate.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def743]
icu-74.2-build/icu/source/tools/toolutil/udbgutil.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def744]
icu-74.2-build/icu/source/tools/toolutil/unewdata.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def745]
icu-74.2-build/icu/source/tools/toolutil/uoptions.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def746]
icu-74.2-build/icu/source/tools/toolutil/uparse.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def747]
icu-74.2-build/icu/source/tools/toolutil/uparse.cpp:160:17: warning[deadcode.DeadStores]: Value stored to 'limit' is never read
# 158| } else if(i+1<fieldCount) {
# 159| *pErrorCode=U_PARSE_ERROR;
# 160|-> limit=line+length;
# 161| i=fieldCount;
# 162| break;
Error: CLANG_WARNING: [#def748]
icu-74.2-build/icu/source/tools/toolutil/uparse.cpp:161:17: warning[deadcode.DeadStores]: Value stored to 'i' is never read
# 159| *pErrorCode=U_PARSE_ERROR;
# 160| limit=line+length;
# 161|-> i=fieldCount;
# 162| break;
# 163| }
Error: CPPCHECK_WARNING: [#def749]
icu-74.2-build/icu/source/tools/toolutil/writesrc.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def750]
icu-74.2-build/icu/source/tools/toolutil/xmlparser.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def751]
icu-74.2-build/icu/source/tools/toolutil/xmlparser.cpp:251:21: warning[deadcode.DeadStores]: Value stored to 'length' is never read
# 249|
# 250| if(attName==UNICODE_STRING("encoding", 8)) {
# 251|-> length=attValue.extract(0, 0x7fffffff, charsetBuffer, (int32_t)sizeof(charsetBuffer));
# 252| charset=charsetBuffer;
# 253| break;
Error: CLANG_WARNING: [#def752]
icu-74.2-build/icu/source/tools/toolutil/xmlparser.cpp:724:13: warning[core.CallAndMessage]: Called C++ object pointer is null
# 722| text.append(*s);
# 723| } else if(recurse) /* must be a UXMLElement */ {
# 724|-> ((const UXMLElement *)node)->appendText(text, recurse);
# 725| }
# 726| }
Scan Properties
analyzer-version-clang | 18.1.7 |
analyzer-version-cppcheck | 2.14.2 |
analyzer-version-gcc | 14.1.1 |
analyzer-version-gcc-analyzer | 14.1.1 |
analyzer-version-shellcheck | 0.10.0 |
enabled-plugins | clang, cppcheck, gcc, shellcheck |
exit-code | 0 |
host | ip-172-16-1-128.us-west-2.compute.internal |
mock-config | fedora-41-x86_64 |
project-name | icu-74.2-1.fc41 |
store-results-to | /tmp/tmpblk1phyn/icu-74.2-1.fc41.tar.xz |
time-created | 2024-07-03 13:23:19 |
time-finished | 2024-07-03 13:32:46 |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpblk1phyn/icu-74.2-1.fc41.tar.xz' '--gcc-analyze' '--gcc-set-env' '/tmp/tmpblk1phyn/icu-74.2-1.fc41.src.rpm' |
tool-version | csmock-3.5.3-1.el9 |