sdp-cpp icon indicating copy to clipboard operation
sdp-cpp copied to clipboard

Failure to parse attribute leads to null pointer exception in toString method

Open gizahNL opened this issue 2 years ago • 1 comments

I have an SDP file that contains an "a=source-filter: incl IN IP4 239.1.2.1 192.168.10.50" line, which doesn't seem to get parsed correctly, however a null attribute is added is added in MediaDescription. Null isn't checked when MediaDescription toString method is called, leading to a null pointer exception.

gizahNL avatar Jan 03 '24 08:01 gizahNL

It also fails to parse "a=ts-refclk:ptp=IEEE1588-2008:00-00-00-00-00-00-00-00:127", and also causes null pointer exceptions. I suspect it expects a space between the : and ptp in this case.

gizahNL avatar Jan 04 '24 08:01 gizahNL