id3tag: Correctly validate the year from v1 tags before passing to GstDateTime
By using strtoul(), invalid values will get mapped to MAXULONG and we would have to check errno. They won't get mapped to 0. To solve this, use the signed g_ascii_strtoll(). This will map errors to 0 or G_MAXINT64 or G_MININT64, and the valid range for GstDateTime is > 0 and <= 9999 so we can directly check for this here. Fixes gstreamer#384
parent
e8450397
Loading
Loading
Pipeline
#33355
passed
with stages
in
1 hour, 11 minutes, and 5 seconds
Loading
-
🐠 @tpmmentioned in merge request !349 (merged)
-
🐠 @tpmmentioned in issue gstreamer#402 (closed)
Please register or sign in to comment