bugFreeSDP - Bugs: bug #9570, Attribute parsing (a=) is faulty

 
 

bug #9570: Attribute parsing (a=) is faulty

Submitted by:  None
Submitted on:  Tue 06 Jul 2004 06:12:40 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: Federico Montesino Pouzols <fedemp>
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Tue 01 Mar 2005 05:35:14 PM UTC, comment #1:

fixed in cvs.

Federico Montesino Pouzols <fedemp>
Project AdministratorIn charge of this item.
Tue 06 Jul 2004 06:12:40 PM UTC, original submission:

Parsing of "unidentified" attribute values fails to correctly parse lines such as:
a=X-ConferenceModel: small

The RFC-2327 syntax is:
a=<attribute>:<value>

RFC-2327 also states:
"... Attribute values are byte strings, and MAY use any byte value except 0x00 (Nul), 0x0A (LF), and 0x0D (CR). ..."

My interpretation (and the reason for this buge report) is that spaces are allowed.

In parser.c, the call to sscanf() from fsdp_parse() apparently fails to parse the space (before "small") as part of fsdp_buf[1].

I know this may seem retarded, but the value should be preserved exactly (including the space) in case the user needs to marshall the contents of the data structure back to ASCII.

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 3 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Tue 01 Mar 2005 05:35:13 PM UTCfedempStatusNone=>Fixed
  Assigned toNone=>fedemp
  Open/ClosedOpen=>Closed

Back to the top


Powered by Savane 3.1-cleanup1