[gnutls-dev] Re: OpenCDK indexing fails if a public key is at offset 0

Simon Josefsson jas at extundo.com
Mon Sep 18 11:18:05 CEST 2006


"Adam Langley" <alangley at gmail.com> writes:

> (from the opencdk sources included in gnutls-1.4.4:
>
> keydb.c:208
>
> *r_off is set to 0 and, at line, 223, if processing hasn't set this
> not a non-zero number CDK_EOF is returned. However, if we are
> searching for a key at offset 0, this returns CDK_EOF anyway.
>
> I suggest setting *r_off to 0xffffffffu and testing != to this value
> at 223. (I've made this patch locally and it's working fine for me. I
> guess we have to hope noone has >4GB of key data.)

Makes sense to me.  I believe I have fixed this in gnutls CVS trunk,
please check.

Thanks,
Simon




More information about the Gnutls-devel mailing list