libtasn1, asn1_read_value, and truncation
Nikos Mavrogiannopoulos
nmav at gnutls.org
Sat Nov 27 19:51:19 CET 2010
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
More information about the Gnutls-devel
mailing list