EnricoMi opened a new pull request, #46626:
URL: https://github.com/apache/arrow/pull/46626

   ### Rationale for this change
   Arrow deals with secrets like encryption / decryption keys which must be 
kept private. One way of leaking such secrets is through memory allocation 
where another process allocates memory that previously hold the secret, because 
that memory was not cleared before being freed.
   
   ### What changes are included in this PR?
   Uses various implementations of securely clearing memory, notably
   - `SecureZeroMemory`(Windows)
   - `memset_s`(STDC)
   - `OPENSSL_cleanse` (OpenSSL >= 3)
   - `explicit_bzero`(glibc 2.25+)
   - volatile `memset` (fallback).
   
   ### Are these changes tested?
   Unit tests.
   
   ### Are there any user-facing changes?
   This only adds the `SecureString` class and tests. Using this new 
infrastructure is done in follow-up pull requests.
   
   * GitHub Issue: #31603


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscr...@arrow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to