sdp-cpp
sdp-cpp copied to clipboard
Failure to parse attribute leads to null pointer exception in toString method
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.
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.