This fixes the buffer overflow in `EVP_EncodeBlock()` (CVE-2026-121481) by returning `-1` for invalid inputs. It also provides a similar guard for `EVP_DecodeBlock()`, and fixes the incorrect length check in the `base64encode()` function of `http_client.c`. Also updates the documentation and adds new tests.
nhorman
previously approved these changes
t8m
requested changes
bob-beck
added
the
hold: discussion
label
This fixes the buffer overflow in `EVP_EncodeBlock()` (CVE-2026-121481) by calling `OPENSSL_assert()` for inputs that lead to undefined behavior. The same fix is applied to `EVP_DecodeBlock()`, and the incorrect length check in `base64encode()` of `http_client.c` is fixed. Also updates the documentation and adds new tests to document the existing behavior for zero-length inputs.
…ock() This fixes the buffer overflow in `EVP_EncodeBlock()` (CVE-2026-121481) by calling `OPENSSL_assert()` for inputs that lead to undefined behavior. The same fix is applied to `EVP_DecodeBlock()`, and the incorrect length check in `base64encode()` of `http_client.c` is fixed. Also updates the documentation and adds new tests to document the existing behavior for zero-length inputs.
…ncodeBlock() This fixes the buffer overflow in `EVP_EncodeBlock()` (CVE-2026-121481) by calling `OPENSSL_assert()` for inputs that lead to undefined behavior. The same fix is applied to `EVP_DecodeBlock()`, and the incorrect length check in `base64encode()` of `http_client.c` is fixed. Also updates the documentation and adds new tests to document the existing behavior for zero-length inputs.