[gnutls-devel] libtasn1 | Fix memory leak in asn1_array2tree() (#14)

Development of GNU's TLS library gnutls-devel at lists.gnutls.org
Mon Jul 22 15:48:39 CEST 2019



Tim Rühsen created an issue:


  There is another memory leak, a reproducer has been added in branch `tmp-memleak-a` (use `./configure --enable-valgrind-tests`:
```
==25685== 152 bytes in 1 blocks are definitely lost in loss record 1 of 1
==25685==    at 0x4837B65: calloc (vg_replace_malloc.c:762)
==25685==    by 0x4851C0D: _asn1_add_static_node (parser_aux.c:71)
==25685==    by 0x4853AAC: asn1_array2tree (structure.c:200)
==25685==    by 0x10923B: main (reproducers.c:76)
```

The `asn1_static_node` is
```
const asn1_static_node tab[] = {
{ "a", CONST_DOWN, "" },
{ "b", 0, "" },
{ "c", 0, "" },
{ NULL, 0, NULL }
};
```

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/libtasn1/issues/14
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/20190722/2813548e/attachment.html>


More information about the Gnutls-devel mailing list