Skip to content

tests/tls-certificate: Add a unit test

Two commits:

  1. New unit test in gio/tests/tls-certificate.c; test whether g_tls_certificate_new_from_pem() can handle a non-nul-terminated PEM.

Helps #2416 (closed)

  1. Patch to gio/gtlscertificate.c; avoid reading past the end of data buffers, which causes valgrind to raise an Invalid read error.

Closes #2416 (closed)

Merge request reports