Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
cae28117
Commit
cae28117
authored
Nov 14, 2015
by
Benno Fünfstück
Committed by
Max Kellermann
Dec 15, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix mpd crash on invalid utf8 stream title
parent
09112c68
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
NEWS
NEWS
+1
-0
TagString.cxx
src/tag/TagString.cxx
+1
-1
No files found.
NEWS
View file @
cae28117
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
...
...
src/tag/TagString.cxx
View file @
cae28117
...
@@ -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
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment