Withdrawn: 8329728: Read long lines in ClassListParser

Ioi Lam iklam at openjdk.org
Wed May 1 20:35:02 UTC 2024


On Mon, 8 Apr 2024 04:51:31 GMT, Ioi Lam <iklam at openjdk.org> wrote:

> Today the `ClassListParser` has a hard-coded limit of 4096 chars for each line in the CDS class list file. However, it's possible for a line to be much longer than than (64KB for the class name, plus extra information that can include path names, IDs, etc).
> 
> I wrote a utility class `LineReader` that automatically allocates a buffer before calling `fgets()`. Hopefully this can be useful for other cases where we call `fgets()` with a fixed buffer size.
> 
> Max line width is limited to 4M to simplify testing (and avoid running into corner cases when we approach INT_MAX).

This pull request has been closed without being integrated.

-------------

PR: https://git.openjdk.org/jdk/pull/18669


More information about the hotspot-dev mailing list