gnutls-devel
[Top][All Lists]
Advanced

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

Re: libtasn1, asn1_read_value, and truncation


From: Nikos Mavrogiannopoulos
Subject: Re: libtasn1, asn1_read_value, and truncation
Date: Sat, 27 Nov 2010 19:51:19 +0100
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.15) Gecko/20101027 Thunderbird/3.0.10

On 11/26/2010 06:57 AM, Jeffrey Walton wrote:
> Hi All,
> 
> How does one detect if/when libtasn1 truncates the value during
> asn1_read_value. It is not clear to me from the online documentation
> (http://www.gnu.org/software/libtasn1/manual/libtasn1.html).
> 
> Should GnuTLS infer truncation *if* the reported length of the value
> (from asn1_read_value) is the same as the size of the buffer? (The
> strategy is similar to interpreting return values from snprintf).

It would return an error that the provided buffer is not long enough.

regards,
Nikos



reply via email to

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