Project

General

Profile

Bug #2012

invalid Url from own urlparse()

Added by MinGyoon Woo over 10 years ago. Updated over 10 years ago.

Status:
Fixed
Priority:
Normal
Category:
Muxers
Target version:
-
Start date:
2014-03-22
Due date:
% Done:

100%

Estimated time:
(Total: 0.00 h)
Found in version:
3.9.467
Affected Versions:

Description

I compiled 3.9.467 with several option.
When I config the IPTV,

a. compiled with ENABLE_URIPARSER
works fine.

b. compiled without ENABLE_URIPARSER
urlparse() in iptv.c invoke the error "invalid Url"


Subtasks

Bug #2018: IPTV unicastRejected

Actions

History

#1

Updated by MinGyoon Woo over 10 years ago

I found problem and fix that.

/src/url.c line 101
#define URL_RE "^(\\w+)://(("UC"+)(:("PC"+))?)?("HC"+)(:([0-9]+))?(/.*)?"
is wrong, should be
#define URL_RE "([A-Za-z]+)://(("UC"+)(:("PC"+))?
)?("HC"+)(:([0-9]+))?(/.*)?"
for Non posix standard.

#2

Updated by Adam Sutton over 10 years ago

  • Status changed from New to Fixed
  • % Done changed from 0 to 100

Applied in changeset tvheadend|commit:85e01365b72962bd304214ab3271f07f04e74831.

#3

Updated by MinGyoon Woo over 10 years ago

Adam, I found mistyping from your correction in git master.

url.c line 101
#define URL_RE "^([A-Za-z)://(("UC"+)(:("PC"+))?)?("HC"+)(:([0-9]+))?(/.*)?"
is wrong. You missed ']' and wrong '^'. I believe '^''s meaning is exclude.
It should be
#define URL_RE "([A-Za-z]+)://(("UC"+)(:("PC"+))?)?("HC"+)(:([0-9]+))?(/.*)?"

Also available in: Atom PDF