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

Re: going back to stone axes



At  5:42 PM 2/29/96 -0500, David P. Kemp wrote:
>> From: frantz@netcom.com (Bill Frantz)
>> This code assumes that either: (1) All the data will be in memory, so the
>> system which uses it should have a packet buffer whose length is greater
>> than 0x7fffffff, or (2) The calling code will be willing to continue to
>> fill a shorter buffer from the network while it is parsing *data.
>
>... and Carl notes that the code exit()'s if length is greater than
>2^32.
>...
>A previous poster questioned whether a "tiny subset" of ASN.1 would be
>useful for anything.  Certainly it is - using only UNIVERSAL tags
>and limiting lengths to something reasonable gets rid of 99.7% of the
>code complexity without compromising the ability to do anything
>desirable (short of MPEG logos :-) with ASN.1 format certificates.

Reliable code should check that all data processed is within the packet
read.  A simpler encoding scheme might allow this check to be preformed
fewer times, but probably won't make a great deal of difference in the
total scheme of things.

------------------------------------------------------------------------
Bill Frantz       | The CDA means  | Periwinkle  --  Computer Consulting
(408)356-8506     | lost jobs and  | 16345 Englewood Ave.
frantz@netcom.com | dead teenagers | Los Gatos, CA 95032, USA