Integrated: 8346785: Potential infinite loop in JavadocTokenizer.ensures
Nizar Benalla
nbenalla at openjdk.org
Fri Apr 25 10:13:15 UTC 2025
On Mon, 14 Apr 2025 10:59:48 GMT, Nizar Benalla <nbenalla at openjdk.org> wrote:
> Please review this patch to fix a potential infinite loop in `JavadocTokenizer.ensure` when `map.length` and `size + need` approach Interger.MAX_VALUE.
>
> While I couldn't reproduce the issue even with large inputs (~1.9GB java file where almost the entire file is one javadoc comment), the fix is about correctness and prevention of UB in extreme cases.
>
> TIA
This pull request has now been integrated.
Changeset: f66b9ba7
Author: Nizar Benalla <nbenalla at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/f66b9ba7bc1f426c430c5a99842685008c5a9dda
Stats: 8 lines in 1 file changed: 4 ins; 3 del; 1 mod
8346785: Potential infinite loop in JavadocTokenizer.ensures
Reviewed-by: liach, hannesw
-------------
PR: https://git.openjdk.org/jdk/pull/24620
More information about the compiler-dev
mailing list