Skip to content

ICU-20958 Prevent SEGV_MAPERR in UnicodeString::doAppend() - #971

Merged
FrankYFTang merged 1 commit into
unicode-org:masterfrom
FrankYFTang:ICU-20958
Feb 3, 2020
Merged

FrankYFTang merged 1 commit into
unicode-org:masterfrom
FrankYFTang:ICU-20958

Conversation

@FrankYFTang

Copy link
Copy Markdown
Contributor
Checklist

@FrankYFTang
FrankYFTang requested a review from sffc January 31, 2020 09:24
Comment thread icu4c/source/common/unistr.cpp Resolved
Comment thread icu4c/source/test/intltest/ustrtest.cpp Resolved
Comment thread icu4c/source/test/intltest/ustrtest.cpp Resolved
Comment thread icu4c/source/common/unistr.cpp Resolved
Comment thread icu4c/source/test/intltest/ustrtest.cpp Resolved
Comment thread icu4c/source/test/intltest/ustrtest.cpp Resolved
Comment thread icu4c/source/test/intltest/ustrtest.cpp Resolved
@sffc

sffc commented Jan 31, 2020

Copy link
Copy Markdown
Member

There are lots of + operations all over this file. Have you verified that this is the only one where overflow matters?

@FrankYFTang

Copy link
Copy Markdown
Contributor Author

There are lots of + operations all over this file. Have you verified that this is the only one where overflow matters?

no

@sffc

sffc commented Feb 3, 2020

Copy link
Copy Markdown
Member

LGTM please squash

@jira-pull-request-webhook

Copy link
Copy Markdown

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

~ Your Friendly Jira-GitHub PR Checker Bot

@FrankYFTang
FrankYFTang merged commit b7d08bc into unicode-org:master Feb 3, 2020
@srl295 srl295 changed the title ICU-20958 Prevent SEGV_MAPERR in append ICU-20958 Prevent SEGV_MAPERR in UnicodeString::doAppend() Feb 5, 2020
@FrankYFTang
FrankYFTang deleted the ICU-20958 branch February 18, 2020 19:15
@carnil

carnil commented Mar 18, 2020 •

Copy link
Copy Markdown

Unless mistaken this issue is present before 3d77fc1 as well (which did out split a new doAppend() from the more general doReplace(), but the overflow is present before. I have not checked where exactly it might be introduced but hope this information help any downstream which ship as well older versions of icu.

Looks indeed that for instance Ubuntu issued a USN https://usn.ubuntu.com/4305-1/ fixing versions back to 4.8.1.1 based ones.

srl295 pushed a commit to srl295/icu that referenced this pull request Mar 24, 2020
srl295 pushed a commit to srl295/icu that referenced this pull request Mar 25, 2020
Backport of:
ICU-20958 Prevent SEGV_MAPERR in append

See unicode-org#971

(cherry picked from commit b7d08bc)
srl295 pushed a commit that referenced this pull request Mar 27, 2020
Backport of:
ICU-20958 Prevent SEGV_MAPERR in append

See #971

(cherry picked from commit b7d08bc)
srl295 pushed a commit to srl295/icu that referenced this pull request May 22, 2020
srl295 pushed a commit to srl295/icu that referenced this pull request May 22, 2020
srl295 pushed a commit to srl295/icu that referenced this pull request May 22, 2020
srl295 pushed a commit that referenced this pull request May 26, 2020
srl295 pushed a commit to srl295/icu that referenced this pull request May 26, 2020
srl295 pushed a commit to srl295/icu that referenced this pull request May 26, 2020
srl295 pushed a commit that referenced this pull request May 26, 2020
srl295 pushed a commit that referenced this pull request May 26, 2020
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.

5 participants