[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: |
Kurt Roeckx |
Subject: |
Re: [PATCH 2/4] Make _asn1_ordering_* return error values and check them. |
Date: |
Sat, 26 Apr 2014 12:40:07 +0200 |
User-agent: |
Mutt/1.5.23 (2014-03-12) |
On Sat, Apr 26, 2014 at 12:02:38PM +0200, Nikos Mavrogiannopoulos wrote:
> 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.
I already changed my mind about that one, but I'm not really sure.
It seems that that asn1_der_coding() also skips it. When I don't
skip it the _asn1_ordering_set_of() actually seems to try and
read too much entries, the if (der_len - counter > 0) check
fails, it just continues, and probably does some weird things as
result. valgrind is also complaining.
Kurt
- [PATCH 4/4] Fix memory leak., (continued)
- [PATCH 4/4] Fix memory leak., Kurt Roeckx, 2014/04/20
- [PATCH 3/4] _asn1_ordering_*(): Fix memory leak in case of error, Kurt Roeckx, 2014/04/20
- [PATCH 2/4] Make _asn1_ordering_* return error values and check them., Kurt Roeckx, 2014/04/20
- Re: [PATCH 2/4] Make _asn1_ordering_* return error values and check them., Nikos Mavrogiannopoulos, 2014/04/21
- Re: [PATCH 2/4] Make _asn1_ordering_* return error values and check them., Kurt Roeckx, 2014/04/24
- Re: [PATCH 2/4] Make _asn1_ordering_* return error values and check them., Nikos Mavrogiannopoulos, 2014/04/25
- Re: [PATCH 2/4] Make _asn1_ordering_* return error values and check them., Kurt Roeckx, 2014/04/24
- Re: [PATCH 2/4] Make _asn1_ordering_* return error values and check them., Kurt Roeckx, 2014/04/24
- Re: [PATCH 2/4] Make _asn1_ordering_* return error values and check them., Kurt Roeckx, 2014/04/25
- Re: [PATCH 2/4] Make _asn1_ordering_* return error values and check them., Nikos Mavrogiannopoulos, 2014/04/26
- Re: [PATCH 2/4] Make _asn1_ordering_* return error values and check them.,
Kurt Roeckx <=
- Re: [PATCH 2/4] Make _asn1_ordering_* return error values and check them., Nikos Mavrogiannopoulos, 2014/04/26
- Re: [PATCH 2/4] Make _asn1_ordering_* return error values and check them., Kurt Roeckx, 2014/04/26
- Re: [PATCH 2/4] Make _asn1_ordering_* return error values and check them., Kurt Roeckx, 2014/04/26
- Re: [PATCH 2/4] Make _asn1_ordering_* return error values and check them., Kurt Roeckx, 2014/04/26