[gnutls-devel] GnuTLS | tests/tls13-early-data-neg2: avoid a small memory leak (!1969)

Read-only notification of GnuTLS library development activities gnutls-devel at lists.gnutls.org
Thu Jun 26 19:03:27 CEST 2025



Alexander Sosedkin created a merge request: https://gitlab.com/gnutls/gnutls/-/merge_requests/1969

Project:Branches: asosedkin/gnutls:tls13-early-data-neg2-fixes to gnutls/gnutls:master
Author:   Alexander Sosedkin




<!-- Add a description of the new feature/bug fix. Reference any relevant bugs. -->

I've been struggling with making tests/tls13-early-data-neg2 pass under valgrind on a slow machine, and here are a few changes that won't hurt.
The test also seems to rely on receiving session tickets in time for the timeout guesstimated in session.c (`ertt`),
which might not be a reliable strategy.

* tests/tls13-early-data-neg2: retry interruptable calls

Signed-off-by: Alexander Sosedkin <asosedkin at redhat.com>

* tests/tls13-early-data-neg2: avoid a small memory leak

Signed-off-by: Alexander Sosedkin <asosedkin at redhat.com>

## Checklist
 * [x] Commits have `Signed-off-by:` with name/author being identical to the commit author
 * [ ] Code modified for feature
 * [ ] Test suite updated with functionality tests
 * [ ] Test suite updated with negative tests
 * [ ] Documentation updated / NEWS entry present (for non-trivial changes)
 * [x] CI timeout is 2h or higher (see Settings/CICD/General pipelines/Timeout)

## Reviewer's checklist:
 * [ ] Any issues marked for closing are addressed
 * [ ] There is a test suite reasonably covering new functionality or modifications
 * [ ] Function naming, parameters, return values, types, etc., are consistent and according to `CONTRIBUTION.md`
 * [ ] This feature/change has adequate documentation added
 * [ ] No obvious mistakes in the code

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/merge_requests/1969
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/20250626/74703460/attachment-0001.html>


More information about the Gnutls-devel mailing list