fix mpd crash on invalid utf8 stream title
This commit is contained in:
parent
09112c6869
commit
cae2811762
1
NEWS
1
NEWS
@ -1,4 +1,5 @@
|
|||||||
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)
|
|||||||
/* 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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user