Skip to content

Conversation

poliudian-iv
Copy link

@poliudian-iv poliudian-iv commented Sep 29, 2025

When analyzing chromium code
During the analysis chromium code with clang-sa, cppcheck and clang-tidy, we find a number of bugs.

Fix bugs from static analyzer (first part)
icu4c/source/common/cmemory.h - "Arguments must not be overlapping buffers"
icu4c/source/i18n/dtptngen.cpp - "Arguments must not be overlapping buffers"
icu4c/source/common/normalizer2impl.cpp - "Dereference of null pointer"(icu4c/source/source/i18n/rulebasedcollator.cpp:1376)
icu4c/source/i18n/uspoof.cpp - "Dereference of null pointer"
icu4c/source/common/uresbund.cpp - "Access of the field 'fResBuf' at negative byte offset -1" when fResPathLen == 0
icu4c/source/i18n/calendar.cpp - "Division by zero" (getActualMaximum can return 0)

I can't create account in Jira for creating issue and getting number
I would be grateful if reviewers can help with creating issue for getting ticket number

Checklist

  • Required: Issue filed: ICU-23228
  • Required: The PR title must be prefixed with a JIRA Issue number. Example: "ICU-1234 Fix xyz"
  • Required: Each commit message must be prefixed with a JIRA Issue number. Example: "ICU-1234 Fix xyz"
  • Issue accepted (done by Technical Committee after discussion)
  • Tests included, if applicable
  • API docs and/or User Guide docs changed or added, if applicable

@CLAassistant
Copy link

CLAassistant commented Sep 29, 2025

CLA assistant check
All committers have signed the CLA.

@poliudian-iv poliudian-iv changed the title Fix bugs from static analyzer ICU-23228: Fix bugs from static analyzer Sep 30, 2025
@poliudian-iv poliudian-iv changed the title ICU-23228: Fix bugs from static analyzer ICU-23228 Fix bugs from static analyzer Sep 30, 2025
@jira-pull-request-webhook
Copy link

Hooray! The files in the branch are the same across the force-push. 😃

~ Your Friendly Jira-GitHub PR Checker Bot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants