dash: Fix stripping of space at the beginning/end of durations
authorSebastian Dröge <sebastian@centricular.com>
Sun, 27 Nov 2016 10:20:11 +0000 (12:20 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Sun, 27 Nov 2016 10:20:11 +0000 (12:20 +0200)
commiteef53ef6ed7aad892e4a1fe90a512df1ab0890ff
treeba969fc5076a80fd2519cecf6fe0c30e45779f3b
parent7488a8fb3544634a1629ce0c804dc3c3ab4314ed
dash: Fix stripping of space at the beginning/end of durations

The way how strchr() was called here, it could easily read after the end
of the string. Use g_ascii_isspace() instead.

Detected by asan in the unit test.
ext/dash/gstmpdparser.c