Fix parsing of animation clock values
This is not so much as for the fix (as far as i can see there's no real animation support) and more than opening the file attached to the Qt bug crashes QtSvg so we get crashing apps, crashing kio thumbnailer while browsing that folder, etc. etc.
Color animation duration parsing mixed seconds and milliseconds.
Factor out a common function for all clock value parsing, and add checking for overflow and illegal values as a driveby..
Fixes: QTBUG-94878
Pick-to: 6.2 6.1 5.15
Change-Id: Ie1d974cd2db55a3d65d7ce02c373021021070489
Reviewed-by: Paul Olav Tvete paul.tvete@qt.io
(cherry picked from commit 1da0a668)