Bug#501077: gnutls: openssl-compat out of bounds memory access when getting certificate issuer DN

Simon Josefsson simon at josefsson.org
Mon Oct 6 09:02:01 UTC 2008


Thomas Viehmann <tv at beamnet.de> writes:

> Hi,
>
> thanks for the swift reply.
>
> On 2008-10-06 10:20:59.00 Simon Josefsson <simon at josefsson.org> wrote:
> Thanks for the report and patch.  It is solved in the just released
>> v2.6.0.
> The patch might be tiny, but comparing
>
> http://bugs.debian.org/501077
>
> to
> http://git.savannah.gnu.org/gitweb/?p=gnutls.git;a=commitdiff;h=b5d38b2c1c2583934815eebbc9cd4c4ea43c11c1
>
> I'd say mine was more correct:
>
> -  if (gnutls_x509_extract_certificate_dn (&cert[1], dn) < 0)
> +  if (gnutls_x509_extract_certificate_issuer_dn (cert, dn) < 0)
>                                       ^^^^^^

Hi!  Ouch, I applied it manually and made a mistake.  I applied the
corrected version to master and the v2.6.x branch.

/Simon





More information about the Pkg-gnutls-maint mailing list