Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8367976

Validate and clamp jdk.httpclient.bufsize

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • None
    • core-libs

      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

            vyazici Volkan Yazici
            vyazici Volkan Yazici
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: