rtmp: panic when given url is incomplete
Issue #73
resolved
I noticed that if I give rtmp.Dial a dodgy url, like "rtmp://a.rtmp.youtube.com/live2" we get a panic in parseURL, line 86. If we were to change a param remotely and messed this, it would cause revid to crash. It could be debated that revid should check the validity of the url though.
Comments (6)
-
-
reporter Fyi, Dan just fixed this in PR #170
-
I made a further improvement. It was not returning an error when it should have.
-
I meant to raise this this morning. I noticed that you error on rtmp://addr/ where I didn't. That should be added, I think.
-
Yes, the rtmp://addr case should be considered invalid, just like the next case rtmp://addr/
-
reporter - changed status to resolved
- Log in to comment
I agree that parseURL should handle this.