Uploaded image for project: 'WildFly OpenSSL'
  1. WildFly OpenSSL
  2. WFSSL-76

Add parameter validation in ByteBufferUtils#expand method

XMLWordPrintable

      Add parameter validation in ByteBufferUtils#expand method. There is an implicit assumption that the input parameter is not null and that capacity is not negative. Appropriate checks should be added to the beginning of the method to make sure this is the case.

      To complete this task, you first need to fork the WildFly OpenSSL repository.

      An example of how to add a check to make sure a parameter is not null can be found here:
      https://github.com/wildfly-security/wildfly-elytron/blob/0bc21f17dab0507f7a5cdf7d2e7ea14d44eae12a/credential/base/src/main/java/org/wildfly/security/credential/PasswordCredential.java#L51

              kathyyy Kathy C (Inactive)
              fjuma1@redhat.com Farah Juma
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: