help-libtasn1
[Top][All Lists]
Advanced

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

Re: [PATCH] Fix a potential buffer overflow in `lib/coding.c'.


From: Simon Josefsson
Subject: Re: [PATCH] Fix a potential buffer overflow in `lib/coding.c'.
Date: Fri, 26 Aug 2011 16:18:41 +0200
User-agent: Gnus/5.110018 (No Gnus v0.18) Emacs/23.2 (gnu/linux)

Simon Josefsson <address@hidden> writes:

> Btw, I wasn't able to trigger this by modifying tests/Test_encoding.c by
> calling into:
>
>   data_size = SIZE_MAX;
>   result = asn1_der_coding (asn1_element, "", data, &data_size, NULL);
>
> I also tried 'SIZE_MAX - c' where c is 1 and 2.

I forgot to mention that the error code in these cases where MEM_ERROR
rather than a crash.

/Simon



reply via email to

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