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

Make comparison overflow-aware in ECDHKeyAgreement.engineGenerateSecret()

XMLWordPrintable

    • b05
    • Not verified

        This is analogous to what was done in XDHKeyAgreement::engineGenerateSecret via JDK-8201317.

        - if (offset + secretLen > sharedSecret.length) {
        + if (secretLen > sharedSecret.length - offset) {

              igerasim Ivan Gerasimov
              igerasim Ivan Gerasimov
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: