Skip to content

ext/openssl: avoid redundant input/output copies.#21926

Open
devnexen wants to merge 1 commit intophp:masterfrom
devnexen:openssl_perf_improv_2
Open

ext/openssl: avoid redundant input/output copies.#21926
devnexen wants to merge 1 commit intophp:masterfrom
devnexen:openssl_perf_improv_2

Conversation

@devnexen
Copy link
Copy Markdown
Member

@devnexen devnexen commented May 1, 2026

Switch the PKCS12/PKCS7/CMS readers to BIO_new_mem_buf so the parsers work on the PHP string directly. Also adds a missing NULL check in pkcs12_read.

openssl_seal/openssl_open write straight into a zend_string instead of an emalloc buffer that gets copied via zend_string_init.

Switch the PKCS12/PKCS7/CMS readers to BIO_new_mem_buf so the parsers
work on the PHP string directly. Also adds a missing NULL check in
pkcs12_read.

openssl_seal/openssl_open write straight into a zend_string instead
of an emalloc buffer that gets copied via zend_string_init.
@devnexen devnexen marked this pull request as ready for review May 1, 2026 21:23
@devnexen devnexen requested a review from bukka as a code owner May 1, 2026 21:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant