Commit cae28117 authored by Benno Fünfstück's avatar Benno Fünfstück Committed by Max Kellermann

fix mpd crash on invalid utf8 stream title

parent 09112c68
ver 0.19.12 (not yet released) ver 0.19.12 (not yet released)
* fix assertion failure on malformed UTF-8 tag
* fix build failure on non-Linux systems * fix build failure on non-Linux systems
* fix LimitRTTIME in systemd unit file * fix LimitRTTIME in systemd unit file
......
...@@ -40,9 +40,9 @@ FindInvalidUTF8(const char *p, const char *const end) ...@@ -40,9 +40,9 @@ FindInvalidUTF8(const char *p, const char *const end)
/* now call the other SequenceLengthUTF8() overload /* now call the other SequenceLengthUTF8() overload
which also validates the continuations */ which also validates the continuations */
const size_t t = SequenceLengthUTF8(p); const size_t t = SequenceLengthUTF8(p);
assert(s == t);
if (t == 0) if (t == 0)
return p; return p;
assert(s == t);
p += s; p += s;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment