Commit graph

32542 commits

Author SHA1 Message Date
Frank Tang
9832f48e22 ICU-22636 Return U_BRK_RULE_SYNTAX when status number is too large
See #2793
2024-01-19 17:16:54 -08:00
Fredrik Roubert
7cec4a9308 ICU-21107 Replace use of adapter and binder classes removed in C++17. 2024-01-19 19:49:44 +09:00
Frank Tang
c8336085bb ICU-22637 Rewrite custom timezone parser
See #2792
2024-01-19 01:44:52 -08:00
Frank Tang
3eb8923b97 ICU-22638 Use parseNumber to fix buffer-overflow
See #2795
2024-01-19 01:43:35 -08:00
Fredrik Roubert
7b690aa8c7 ICU-22639 Revert now obsolete bug workarounds.
This reverts changes from commit 47b9a517be.
This reverts changes from commit 214ae60d94.
2024-01-19 13:11:49 +09:00
Fredrik Roubert
c5160765d4 ICU-22639 Clone the calendar so we don't mess with the real one. 2024-01-19 08:07:22 +09:00
Fredrik Roubert
ca53838b83 ICU-22576 Remove now obsolete pre-C11 backward compatibility code. 2024-01-19 08:05:24 +09:00
Fredrik Roubert
d0672fa8ab ICU-21107 Simplify type_traits expressions for C++17. 2024-01-18 20:28:39 +09:00
Fredrik Roubert
981057143c ICU-21107 Remove CI jobs using MSVC too old to support C11.
Versions before VS 2019 don't have C11 standard library features:

https://learn.microsoft.com/en-us/cpp/overview/visual-cpp-language-conformance?view=msvc-170#c-standard-library-features-1
2024-01-18 13:03:45 +09:00
Mihai Nita
47b9a517be ICU-21107 Specify language standard versions C11 & C++17 also for MSVC
ICU-21107 Specify language standard versions C11 & C++17 also for MSVC
2024-01-17 09:26:22 -08:00
Fredrik Roubert
4a8cd80973 ICU-21107 Clarify the C11 & C++17 requirement in the userguide. 2024-01-17 17:48:10 +09:00
Fredrik Roubert
2d65456a3b ICU-21107 Specify language standard versions C11 & C++17 also for Bazel.
This is copied (with C11 added) from:

https://github.com/tensorflow/tensorflow/blob/v2.15.0/.bazelrc

There were until now no versions specified at all, relying on the
default (or commandline overrides) to be sufficiently recent.
2024-01-17 16:26:57 +09:00
Fredrik Roubert
078b88a11a ICU-21107 Specify language standard versions C11 & C++17 also for MSVC.
There were until now no versions specified at all, relying on the
default (or commandline overrides) to be sufficiently recent.
2024-01-16 22:22:05 +09:00
Fredrik Roubert
214ae60d94 ICU-21107 Bugfix: Break up statement to force execution order. 2024-01-16 22:22:05 +09:00
Fredrik Roubert
ab72ab1d4a ICU-22520 Replace char arrays with icu::CharString & icu::MemoryPool. 2024-01-13 17:05:58 +09:00
Frank Tang
509405c9f2 ICU-22626 Fix leakage when 2 '=' in PluralRules
See #2782
2024-01-12 09:36:29 -08:00
yumaoka
dc7014fda6 ICU-22620 tz2023d updates 2024-01-11 11:41:23 -05:00
Fredrik Roubert
a837e0d399 ICU-22532 Set a value for _POSIX_C_SOURCE to get symlink() declared.
ISO C99 and later do not support implicit function declarations.
2024-01-11 17:35:28 +09:00
Frank Tang
23d1fc5989 ICU-22549 Fix incorrect pointer
Remove the adjustment of data pointer to avoid buffer-overflow
Fix bug https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=65632
2024-01-10 12:36:39 -08:00
Fredrik Roubert
906093f31b ICU-22520 Make icu::CharString comparable with itself. 2024-01-10 17:30:32 +09:00
Fredrik Roubert
87ca023447 ICU-22520 Replace char arrays with icu::CharString. 2024-01-10 12:19:44 +09:00
Frank Tang
ed970751ef ICU-22520 Add test case for oss-fuzz issue #65635. 2024-01-10 12:19:44 +09:00
Frank Tang
3f054adaf3 ICU-22549 Fix fuzzer to call Locale with null-terminiate string 2024-01-05 01:18:48 -08:00
Frank Tang
cfba9a8caf ICU-22549 Reland PR2770 w/ fix
Reland PR2770 w/ the fix that null termination the input to Locale
constuctor.
2024-01-05 01:18:10 -08:00
Fredrik Roubert
539e8f41a3 ICU-22532 Compiler warning: conversion from 'double' to 'int32_t'.
The definition of kOneDay is 1.0 * U_MILLIS_PER_DAY so there's no
reason whatsoever to not just use U_MILLIS_PER_DAY directly here.
2024-01-04 09:40:40 +09:00
Frank Yung-Fong Tang
52ff51e82c ICU-22549 Revert "Improve fuzzer to test more locale"
See #2770
2024-01-03 14:19:32 -08:00
Shane F. Carr
1a60a038e1 ICU-21952 Add withoutLocale functions to LocalizedNumber[Range]Formatter
See #2483
2023-12-28 22:04:02 -08:00
Fredrik Roubert
02740597ce ICU-22520 Replace char arrays with icu::CharString. 2023-12-29 11:30:57 +09:00
Manish Goregaokar
74abcfe288 ICU-22481 Add toml support to gendict
(and use it in CI)
2023-12-27 22:59:57 -08:00
Fredrik Roubert
7eb56fee1e ICU-22520 Remove now superfluous intermediate buffers. 2023-12-28 11:13:38 +09:00
Fredrik Roubert
5fa7d4c7ff ICU-22520 Delete unused internal feature alternateTags. 2023-12-28 11:13:38 +09:00
Fredrik Roubert
03a870a23c ICU-22520 Replace uprv_malloc() / uprv_free() with icu::CharString. 2023-12-28 10:27:35 +09:00
Fredrik Roubert
9a91599fd4 ICU-22520 Replace uprv_malloc() / uprv_free() with icu::LocalPointer. 2023-12-23 10:42:55 +09:00
Steven R. Loomis
9d3e12b820 ICU-22601 v74.2 fix dangling LICENSE file
- 'git archive' works on a subtree so did not include LICENSE
- we copy the LICENSE file from the build dir
- broken by ICU-22309
2023-12-22 09:28:09 -08:00
Fredrik Roubert
887005b68a ICU-22520 Remove unnecessary copying of statically allocated strings. 2023-12-22 08:43:55 +09:00
Fredrik Roubert
daa0171501 ICU-22608 Add necessary using statements for namespace icu. 2023-12-22 08:12:47 +09:00
Frank Tang
23dd2b8b54 ICU-22549 Add PluralRule Fuzzer 2023-12-21 14:21:33 -08:00
Fredrik Roubert
ef78f2a863 ICU-21107 Update configure files from configure.ac using autoreconf. 2023-12-21 09:31:55 +09:00
Fredrik Roubert
45d351ca4e ICU-21107 Update ICU4C minimum standard version from C99 to C11. 2023-12-21 09:31:55 +09:00
Frank Tang
fc6e282d98 ICU-22549 Limit Normalizer2 Fuzzer for 5K of input
To avoid timeout
2023-12-19 13:58:03 -08:00
Fredrik Roubert
1384d9f395 ICU-22532 Remove redundant 'void' from empty C++ parameter lists.
https://releases.llvm.org/16.0.0/tools/clang/tools/extra/docs/clang-tidy/checks/modernize/redundant-void-arg.html
2023-12-19 09:27:18 +09:00
Fredrik Roubert
85b7f5fda2 ICU-22604 Use 'void' for empty C parameter lists (-Wstrict-prototypes). 2023-12-19 09:27:01 +09:00
Frank Tang
838227ce95 ICU-22614 Fix buffer overflow in TimeZoneNames
See #2752
2023-12-18 16:26:06 -08:00
Frank Tang
11d1148e56 ICU-22549 Improve fuzzer to test more locale
We found bogus locale cause crash in DateFormat so here
we enhance the fuzzer to also test locale name which are not
return by the available locale list.
2023-12-18 13:31:06 -08:00
Frank Tang
4ba5d9191b ICU-22549 Add DateFormatSymbols fuzzer 2023-12-15 16:17:38 -08:00
Frank Tang
7bef50e71d ICU-22609 Fix nulldef w/ bogus locale in DateFormat::create* 2023-12-15 16:14:56 -08:00
Frank Tang
5cf5ec1adb ICU-22549 Add TimeZoneNames fuzzer 2023-12-15 11:30:45 -08:00
Frank Tang
77759422dd ICU-22549 Add Normalizer2 Fuzzer
ICU-22549 Remove unnecessary include files
2023-12-15 11:30:33 -08:00
Mihai Nita
e76094c55a ICU-22605 Exclude the data files from the -sources.jar 2023-12-15 09:08:22 -08:00
Frank Tang
19af9e7ce3 ICU-22602 Fix stack overflow inside flattenVariables
Limit the recursive call of flattenVariables to maximum depth 3500
since Java on my machine throw stack overflow exception around 3900.
2023-12-14 15:14:21 -08:00