- Notifications
You must be signed in to change notification settings - Fork4.9k
Commitd9f37e6
committed
Add checks for valid multibyte character length in UtfToLocal, LocalToUtf.
This is mainly to suppress "uninitialized variable" warnings from veryrecent versions of gcc. But it seems like a good robustness thing anyway,not to mention that we might someday decide to support 6-byte UTF8.Per report from Karol Trzcionka. No back-patch since there's no reasonat the moment to think this is more than cosmetic.1 parente2bd904 commitd9f37e6
1 file changed
+15
-0
lines changedLines changed: 15 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
382 | 382 |
| |
383 | 383 |
| |
384 | 384 |
| |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
385 | 390 |
| |
386 | 391 |
| |
387 | 392 |
| |
| |||
437 | 442 |
| |
438 | 443 |
| |
439 | 444 |
| |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
440 | 450 |
| |
441 | 451 |
| |
442 | 452 |
| |
| |||
546 | 556 |
| |
547 | 557 |
| |
548 | 558 |
| |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
549 | 564 |
| |
550 | 565 |
| |
551 | 566 |
| |
|
0 commit comments
Comments
(0)