After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 752337 - dashdemux: invalid periods are accepted by the parser
dashdemux: invalid periods are accepted by the parser
Status: RESOLVED DUPLICATE of bug 752336
Product: GStreamer
Classification: Platform
Component: gst-plugins-bad
git master
Other Linux
: Normal normal
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2015-07-13 16:12 UTC by Florin Apostol
Modified: 2016-02-25 13:29 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Florin Apostol 2015-07-13 16:12:33 UTC
According to the description of the xs:duration xml datatype (http://books.xmlschemata.org/relaxng/ch19-77073.html) the format for duration mandates that the year precedes the month, eg: P1M2Y is invalid (parts order is significant and Y must precede M).

However, the implementation of gst_mpdparser_get_xml_prop_duration does not care about the order of these and will accept a P1M2Y duration. More, because of the algorithm logic, it will also accept a P1Y2Y duration (the last value will override a previous one).

gst_mpdparser_get_xml_prop_duration implementation should be strengthen to reject invalid formats.
Comment 1 Vincent Penquerc'h 2015-10-16 09:51:47 UTC

*** This bug has been marked as a duplicate of bug 752336 ***