help-libtasn1
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 2/4] Make _asn1_ordering_* return error values and check them


From: Nikos Mavrogiannopoulos
Subject: Re: [PATCH 2/4] Make _asn1_ordering_* return error values and check them.
Date: Sat, 26 Apr 2014 12:02:38 +0200

On Sat, Apr 26, 2014 at 1:49 AM, Kurt Roeckx <address@hidden> wrote:
> My current understanding of things is I think that second
> "p = p->right" is wrong.  (The tests actually pass if I
> remove it.)  This second one is also not present in the
> _asn1_ordering_set() function.  I see no good reason why
> we need to move one more entry right.

It looks like a copy paste error, and given that it is not present in
the _asn1_ordering_set() it is most likely one.

> But I think that the return ASN1_VALUE_NOT_FOUND is
> also wrong.  If the set contains 0 or 1 entries there
> is nothing to sort and we can just return.

Looks reasonable.

> That would give the following diff that works for me:

I've combined that to your previous patch and committed it. I've also
added the test that triggered the issue in libtasn1.

regards,
Nikos



reply via email to

[Prev in Thread] Current Thread [Next in Thread]