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

Off-by-one bug when searching arrays in AlpnGreaseTest

XMLWordPrintable

    • b02
    • generic
    • generic

        It was noted during the backport of JDK-8254631 to 8u [1] that the original fix has an off-by-one error while comparing the 2 arrays in the test [2]. This means that there could be, in theory, a grease array in the client hello not detected. This case is not realistic given the client hello structure, but we should fix it anyways.

        --
        [1] - https://mail.openjdk.java.net/pipermail/jdk8u-dev/2021-May/013911.html
        [2] - https://github.com/openjdk/jdk/blob/fe5cccc1ec76a5c29b1f55af311823f84483395b/test/jdk/sun/security/ssl/ALPN/AlpnGreaseTest.java#L86

              kdriver Kevin Driver
              mbalao Martin Balao Alonso
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Created:
                Updated:
                Resolved: