[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Question on asn1_read_value (buffer/truncation)
From: |
Simon Josefsson |
Subject: |
Re: Question on asn1_read_value (buffer/truncation) |
Date: |
Mon, 06 Dec 2010 14:55:26 +0100 |
User-agent: |
Gnus/5.110011 (No Gnus v0.11) Emacs/23.2 (gnu/linux) |
Jeffrey Walton <address@hidden> writes:
> On Sun, Nov 28, 2010 at 3:40 PM, Simon Josefsson <address@hidden> wrote:
>> Jeffrey Walton <address@hidden> writes:
>>
>>> On Sun, Nov 28, 2010 at 2:54 PM, Simon Josefsson <address@hidden> wrote:
>>>> Jeffrey Walton <address@hidden> writes:
>>>>
>>>>> Hi All,
>>>>>
>>>>> I've read the documentation on asn1_read_value at asn1_read_value. I'm
>>>>> not clear on what happens if the buffer provided to asn1_read_value is
>>>>> too small.
>>>>>
>>>>> Does (1) asn1_read_value fail, (2) does the function copy bytes up to
>>>>> size of the buffer and return truncation, or (3) copy up to size of
>>>>> the buffer and succeed?
>>>>
>>>> See the 'Returns' description:
>>>>
>>>> ASN1_MEM_ERROR: The value vector isn't big enough to store the
>>>> result. In this case LEN will contain the number of bytes needed.
>>>>
>>>> The contents of the buffer is undefined at that point.
>>> OK. Thanks.
>>>
>>> BTW, the copy I consulted does not offer return values:
>>> http://www.gnu.org/software/libtasn1/manual/libtasn1.html. Perhaps I
>>> should be using a different set of docs?
>>
>> You've found a bug in the C->Texinfo converter. I'll fix it (or change
>> the function document to match the syntax that the converter expects)
>> once savannah is back up again.
> Ooops. I wasn't looking this time :( Those critters can't hide from me.
Should be fixed in just released v2.9. Thanks!
>> The content for both is built from the same source code, but the
>> presentation is different. Some people prefer one, some the other...
> I still uses man pages - its what I learned nearly 20 years ago as an
> undergrad. Dinosaur.
Help on improving the man pages are welcome as well..
/Simon
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: Question on asn1_read_value (buffer/truncation),
Simon Josefsson <=