tests/tls-certificate: Add a unit test
Two commits:
- 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)
- 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)