[gnutls-devel] libtasn1 | Fix memleaks in asn1_array2tree() (!29)
Development of GNU's TLS library
gnutls-devel at lists.gnutls.org
Tue Jul 23 15:31:28 CEST 2019
Tim Rühsen commented on a discussion on lib/structure.c: https://gitlab.com/gnutls/libtasn1/merge_requests/29#note_194864834
> if (*definitions == NULL)
> *definitions = p;
>
> - if (move == DOWN)
> + if (move == DOWN) {
> + if (p_last && p_last->down) {
> + _asn1_delete_node_from_list (e_list, p_last->down);
> + _asn1_remove_node (p_last->down, 0);
> + }
> _asn1_set_down (p_last, p);
> - else if (move == RIGHT)
> + } else if (move == RIGHT) {
> + if (p_last && p_last->right) {
> + _asn1_delete_node_from_list (e_list, p_last->right);
> + _asn1_remove_node (p_last->down, 0);
Bu maybe we should first get all the other things straight. E.g. fuzzing will provide us with many test cases for regression testing once we make up or rewrite the code.
--
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/libtasn1/merge_requests/29#note_194864834
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/20190723/ffe506d6/attachment-0001.html>
More information about the Gnutls-devel
mailing list