forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit1c634f6
committed
ICU: check for U_STRING_NOT_TERMINATED_WARNING.
Fixes memory error in cases where the length of the language namereturned by uloc_getLanguage() is exactly ULOC_LANG_CAPACITY, in whichcase the status is set to U_STRING_NOT_TERMINATED_WARNING.Also check in call sites for other ICU functions that are expected toreturn a C string to be safe (no bug is known at these other callsites).Reported-by: Alexander LakhinDiscussion:https://postgr.es/m/2098874d-c111-41e4-9063-30bcf135226b@gmail.com1 parent6de31ce commit1c634f6
2 files changed
+15
-29
lines changedLines changed: 11 additions & 18 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2468 | 2468 |
| |
2469 | 2469 |
| |
2470 | 2470 |
| |
2471 |
| - | |
| 2471 | + | |
2472 | 2472 |
| |
2473 | 2473 |
| |
2474 | 2474 |
| |
| |||
2504 | 2504 |
| |
2505 | 2505 |
| |
2506 | 2506 |
| |
2507 |
| - | |
| 2507 | + | |
2508 | 2508 |
| |
2509 | 2509 |
| |
2510 | 2510 |
| |
| |||
2639 | 2639 |
| |
2640 | 2640 |
| |
2641 | 2641 |
| |
2642 |
| - | |
| 2642 | + | |
| 2643 | + | |
2643 | 2644 |
| |
2644 | 2645 |
| |
2645 | 2646 |
| |
| |||
2681 | 2682 |
| |
2682 | 2683 |
| |
2683 | 2684 |
| |
2684 |
| - | |
| 2685 | + | |
2685 | 2686 |
| |
2686 | 2687 |
| |
2687 | 2688 |
| |
| |||
2765 | 2766 |
| |
2766 | 2767 |
| |
2767 | 2768 |
| |
2768 |
| - | |
2769 | 2769 |
| |
2770 | 2770 |
| |
2771 | 2771 |
| |
| |||
2789 | 2789 |
| |
2790 | 2790 |
| |
2791 | 2791 |
| |
2792 |
| - | |
| 2792 | + | |
2793 | 2793 |
| |
2794 | 2794 |
| |
2795 | 2795 |
| |
| |||
2811 | 2811 |
| |
2812 | 2812 |
| |
2813 | 2813 |
| |
2814 |
| - | |
2815 |
| - | |
2816 | 2814 |
| |
2817 |
| - | |
| 2815 | + | |
2818 | 2816 |
| |
2819 |
| - | |
2820 |
| - | |
2821 |
| - | |
2822 |
| - | |
2823 |
| - | |
2824 |
| - | |
| 2817 | + | |
2825 | 2818 |
| |
2826 |
| - | |
| 2819 | + | |
2827 | 2820 |
| |
2828 | 2821 |
| |
2829 | 2822 |
| |
| |||
2878 | 2871 |
| |
2879 | 2872 |
| |
2880 | 2873 |
| |
2881 |
| - | |
| 2874 | + | |
2882 | 2875 |
| |
2883 | 2876 |
| |
2884 | 2877 |
| |
| |||
2901 | 2894 |
| |
2902 | 2895 |
| |
2903 | 2896 |
| |
2904 |
| - | |
| 2897 | + | |
2905 | 2898 |
| |
2906 | 2899 |
| |
2907 | 2900 |
| |
|
Lines changed: 4 additions & 11 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2252 | 2252 |
| |
2253 | 2253 |
| |
2254 | 2254 |
| |
2255 |
| - | |
| 2255 | + | |
2256 | 2256 |
| |
2257 | 2257 |
| |
2258 | 2258 |
| |
| |||
2272 | 2272 |
| |
2273 | 2273 |
| |
2274 | 2274 |
| |
2275 |
| - | |
2276 |
| - | |
2277 | 2275 |
| |
2278 |
| - | |
| 2276 | + | |
2279 | 2277 |
| |
2280 |
| - | |
2281 |
| - | |
2282 |
| - | |
2283 |
| - | |
2284 |
| - | |
2285 |
| - | |
| 2278 | + | |
2286 | 2279 |
| |
2287 |
| - | |
| 2280 | + | |
2288 | 2281 |
| |
2289 | 2282 |
| |
2290 | 2283 |
| |
|
0 commit comments
Comments
(0)