You could be more forgiving for UDP content greater than Content-Length:

if the actual length is greater than the number
specified in Content-Length then it does no harm to try to
parse n bytes of the content (where n equals Content-Length)
 - if the content is sensible, then you can still use it.





-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Arun
Sent: 01 July 2008 07:28
To: Benjamin Jacob; [email protected]
Subject: Re: [Sip-implementors] SDP Content length

Thanks jacob.

--- Regards Arun S
----- Original Message -----
From: "Benjamin Jacob" <[EMAIL PROTECTED]>
To: <[email protected]>
Cc: "Arun" <[EMAIL PROTECTED]>
Sent: Tuesday, July 01, 2008 11:57 AM
Subject: Re: [Sip-implementors] SDP Content length


> To rephrase a confused line :
> 1. If UDP, if incorrect SDP length received(greater or less
> than advertised in the Content length) or invalid Content length,
respond 
> with an error.
>
>
> ----- Original Message ----
> From: Benjamin Jacob <[EMAIL PROTECTED]>
> To: [email protected]
> Cc: Arun <[EMAIL PROTECTED]>
> Sent: Tuesday, July 1, 2008 11:53:27 AM
> Subject: Re: [Sip-implementors] SDP Content length
>
>
>>From the various torture tests drafts/ RFCs:
> 1. If UDP, if incorrect/invalid(-ve for e.g.) length (greater or less
than 
> advertised in the Content length) , respond with an error.
> 2. If TCP :
>    a. If Content length is greater than the actual packet received,
you 
> have to wait, as the rest of the SDP could be in the next packet.
>    b. If Content length is less than the actual packet received,
respond 
> with an error.
>    c. If invalid Content length, respond with an error.
>
> - Benjamin Jacob.
>
>
> ----- Original Message ----
> From: Arun <[EMAIL PROTECTED]>
> To: [email protected]
> Sent: Tuesday, July 1, 2008 10:54:58 AM
> Subject: [Sip-implementors] SDP Content length
>
> Hi all,
> I have a problem here with the SDP content length.
>
> Wat if the content length is less than or greater than the actual sdp
> packet.
> Should that packet be processed properly or it is to be discarded.
>
> Is it a malformed packet if content length is greater or less than the
> length of the SDP packet.
>
>
>
>
> _______________________________________________
> Sip-implementors mailing list
> [email protected]
> https://lists.cs.columbia.edu/cucslists/listinfo/sip-implementors
>
>
>
> 


_______________________________________________
Sip-implementors mailing list
[email protected]
https://lists.cs.columbia.edu/cucslists/listinfo/sip-implementors

Reply via email to