Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
If an attribute had an empty value (which is apparently possible with some tokens), the copy function would fail to initialize the pointer causing an invalid free when the attributes array is freed. Ensure pValue is zeroed on copy if the attri bute length is 0, and also ensure the attribute length is correctly set to 0. Then belt&suspender approach ensure the buffer is allocated with OPENSSL_zalloc instead of OPENSSL_malloc, which will eansure by default all addresses and legth are a safe default NULL/0 value. Signed-off-by: Simo Sorce <simo@redhat.com>
- Loading branch information