Commit 97e7619
[icu] Fix
ICU 77 `getKeywordValue()` changed to return
`U_STRING_NOT_TERMINATED_WARNING` when the value is exactly
the same size as the given buffer size. In this case, the
buffer is not null-terminated[1].
This patch fixes `LookupAndValidateUnicodeExtensions()` for
this change.
[1] https://unicode-org.github.io/icu/userguide/strings/#using-c-strings-nul-terminated-vs-length-parameters
Bug: 458186954
Change-Id: Iaff890f93cc392d4deb71ab881ab4bcce97f5b34
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/7137918
Auto-Submit: Koji Ishii <[email protected]>
Commit-Queue: Jakob Linke <[email protected]>
Reviewed-by: Jakob Linke <[email protected]>
Reviewed-by: Michael Lippautz <[email protected]>
Cr-Commit-Position: refs/heads/main@{#103662}LookupAndValidateUnicodeExtensions() for ICU 771 parent c48578c commit 97e7619
2 files changed
Lines changed: 21 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2445 | 2445 | | |
2446 | 2446 | | |
2447 | 2447 | | |
2448 | | - | |
| 2448 | + | |
2449 | 2449 | | |
2450 | 2450 | | |
2451 | 2451 | | |
| |||
2459 | 2459 | | |
2460 | 2460 | | |
2461 | 2461 | | |
2462 | | - | |
| 2462 | + | |
| 2463 | + | |
2463 | 2464 | | |
2464 | 2465 | | |
2465 | 2466 | | |
| |||
2468 | 2469 | | |
2469 | 2470 | | |
2470 | 2471 | | |
| 2472 | + | |
| 2473 | + | |
| 2474 | + | |
2471 | 2475 | | |
2472 | 2476 | | |
2473 | 2477 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
0 commit comments