-
Task
-
Resolution: Done
-
Major
-
None
-
False
-
False
-
Undefined
-
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