Validate and clamp jdk.httpclient.bufsize

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 26
    • Affects Version/s: 9
    • Component/s: core-libs
    • b21

      The `jdk.httpclient.bufsize` system property[1] is used by `HttpClient` through the `jdk.internal.net.http.common.Utils#BUFSIZE` constant. The user-provided value is not validated (e.g., negative values are accepted) and, as hinted by [~dfuchs], can be clamped[2].

      [1]: https://docs.oracle.com/en/java/javase/25/docs/api/java.net.http/module-summary.html
      [2]: https://github.com/openjdk/jdk/pull/26876/files#r2333555522

            Assignee:
            Volkan Yazici
            Reporter:
            Volkan Yazici
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: