[Bug 752336] dashdemux: duration field could overflow

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Thu Sep 17 09:29:02 PDT 2015


https://bugzilla.gnome.org/show_bug.cgi?id=752336

--- Comment #9 from Florin Apostol <florin.apostol at oregan.net> ---
(In reply to Vincent Penquerc'h from comment #8)
> This will let through something like H1Y1 still. Unless maybe there is only
> partlal ordering being mandated (date ordered within itself, HMS ordered
> between itself, but it's fine to have date-hms or hms-date) ?
> 
No, the order is important. More, it is separated by T.
It will not accept P1H1Y. It will search for P. From there, it will search for
number + character. If the character is not YMD, it will fail.

Let's move the code into a separate function that receives a string and let's
add a unit test to test all the scenarios you can think of!

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list