IBM / OpenJCEPlus

This project makes use of Java and C/C++. This project will create OpenJCEPlus and OpenJCEPlusFIPS cryptographic providers which are implementations of the Java™ Cryptography Extensions (JCE) APIs. The actual cryptographic code will come from the OpenCryptographyKitC project which is based on OpenSSL.
Apache License 2.0
5 stars 12 forks source link

Fix memory leak by passing input and output with their offsets in function calls instead of updating pointer #315

Closed gin-nader closed 3 weeks ago

gin-nader commented 3 weeks ago

The inputOffset and outputOffset should not be added to the pointers; otherwise, this causes a memory leak.

Back-ported from: #305

Signed-off-by: Tom Ginader Thomas.Ginader@ibm.com

jasonkatonica commented 3 weeks ago

ppc64_aix, x86_64_linux, ppc64le_linux, s390x_linux, x86_64_windows