Skip to content

ICU-20824 Fix - avoid potential out-of-bounds array access (undefined behaviour) #3494

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

oshai
Copy link

@oshai oshai commented May 8, 2025

This is a backport of a fix from mapnik clone of this class: mapnik/mapnik#4096

Also suggested to icu as:
https://unicode-org.atlassian.net/browse/ICU-20824

We encountered it in mapnik and fixed it in our own mapnik 3.0 fork. I think it worth backporting the fix to here as well.


Thank you for your pull request!

TODO: Fill out the checklist below.

Checklist

  • Required: Issue filed: ICU-20824
  • Required: The PR title must be prefixed with a JIRA Issue number. Example: "ICU-20824 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 May 8, 2025

CLA assistant check
All committers have signed the CLA.

@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

@markusicu
Copy link
Member

Could you please add a test case? Presumably in srtest.cpp.

@markusicu markusicu self-assigned this May 8, 2025
@markusicu markusicu requested a review from srl295 May 8, 2025 16:30
… behaviour)

This is a backport of a fix from mapnik clone of this class:
mapnik/mapnik#4096

Also suggested to icu as:
https://unicode-org.atlassian.net/browse/ICU-20824

We encountered it in mapnik and fixed it in our own mapnik 3.0 fork. I think it worth backporting the fix to here as well.
@jira-pull-request-webhook
Copy link

Notice: the branch changed across the force-push!

  • icu4c/source/extra/scrptrun/srtest.cpp is now changed in the branch

View Diff Across Force-Push

~ Your Friendly Jira-GitHub PR Checker Bot

@oshai
Copy link
Author

oshai commented May 8, 2025

Could you please add a test case? Presumably in srtest.cpp.

added the test case from the jira issue.

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