Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for ssrc-group semantics parsing #54

Merged
merged 1 commit into from
Feb 20, 2017
Merged

Fix for ssrc-group semantics parsing #54

merged 1 commit into from
Feb 20, 2017

Conversation

murillo128
Copy link
Contributor

@murillo128 murillo128 commented Feb 20, 2017

Fix for #53

ssrc-group-attr = "ssrc-group:" semantics *(SP ssrc-id)
semantics = "FEC" / "FID" / token
; Matches RFC 3388 definition and
; IANA registration rules in this doc.

token-char = %x21 / %x23-27 / %x2A-2B / %x2D-2E / %x30-39
/ %x41-5A / %x5E-7E

token = 1*(token-char)

 ssrc-group-attr = "ssrc-group:" semantics *(SP ssrc-id)
 semantics       = "FEC" / "FID" / token
                    ; Matches RFC 3388 definition and
                    ; IANA registration rules in this doc.

 token-char =          %x21 / %x23-27 / %x2A-2B / %x2D-2E / %x30-39
                         / %x41-5A / %x5E-7E

  token =               1*(token-char)
@murillo128 murillo128 changed the title Fix for ssrc-group semantics parsing #53 Fix for ssrc-group semantics parsing Feb 20, 2017
@clux
Copy link
Owner

clux commented Feb 20, 2017

Ah, wow. Thanks for this - didn't know that was the proper definition of a token. The whole grammar could probably do with an overhaul of various (\w*) matches to get this a bit more likely to happen in the future now.

push: "ssrcGroups",
reg: /^ssrc-group:(\w*) (.*)/,
// token-char = %x21 / %x23-27 / %x2A-2B / %x2D-2E / %x30-39 / %x41-5A / %x5E-7E
reg: /^ssrc-group:([\x21\x23\x24\x25\x26\x27\x2A\x2B\x2D\x2E\w]*) (.*)/,
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is %x30-39 / %x41-5A / %x5E-7E covered by the trailing \w?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes

@clux clux merged commit 79dc0a1 into clux:master Feb 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants