[gnutls-devel] GnuTLS | tests/suite/mini-record-timing.c: Add check for gnutls_malloc (!2001)
Read-only notification of GnuTLS library development activities
gnutls-devel at lists.gnutls.org
Sun Aug 3 03:57:04 CEST 2025
Merge request https://gitlab.com/gnutls/gnutls/-/merge_requests/2001 was reviewed by Daiki Ueno
--
Daiki Ueno started a new discussion on tests/suite/mini-record-timing.c: https://gitlab.com/gnutls/gnutls/-/merge_requests/2001#note_2665232742
> key->data = gnutls_malloc(4);
> + if (key->data == NULL) {
> + return GNUTLS_E_MEMORY_ERROR;
The documentation says:
```
* The callback function will only be called once per handshake. The
* callback function should return 0 on success, while -1 indicates
* an error.
```
Return -1 (and possibly print the error), instead of `GNUTLS_E_MEMORY_ERROR`.
--
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/merge_requests/2001
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gnupg.org/pipermail/gnutls-devel/attachments/20250803/c5ad6044/attachment-0001.html>
More information about the Gnutls-devel
mailing list