Thanks Dan. I linked with libcurl4-openssl-dev (7.68.0-1ubuntu2.19) and the
memory errors disappeared.

On Mon, Sep 18, 2023 at 11:30 AM Dan Fandrich via curl-library <
curl-library@lists.haxx.se> wrote:

> On Mon, Sep 18, 2023 at 09:26:36AM -0400, Anass Meskini via curl-library
> wrote:
> > When I run my program in valgrind, I see memory errors. What am I doing
> wrong?
>
> Both these instances occur in GnuTLS, which deliberately uses some
> undefined
> memory in its operation. It has code to mark these areas as undefined,
> however,
> to stop Valgrind complaining, but this support may not have been enabled
> in the
> GnuTLS library you're using, or it might be inadequate.  You might need to
> compile your own to make sure it's enabled (_gnutls_memory_mark_defined is
> the
> function) and then ask on a GnuTLS forum if you can't get it going.
>
> Dan
> --
> Unsubscribe: https://lists.haxx.se/mailman/listinfo/curl-library
> Etiquette:   https://curl.se/mail/etiquette.html
>
-- 
Unsubscribe: https://lists.haxx.se/mailman/listinfo/curl-library
Etiquette:   https://curl.se/mail/etiquette.html

Reply via email to