Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Stefan Strogin
flac
Commits
c6e53da2
Commit
c6e53da2
authored
Aug 25, 2005
by
Josh Coalson
Browse files
fix bug in utf8len()
parent
b4de1692
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/libFLAC/format.c
View file @
c6e53da2
...
...
@@ -267,7 +267,7 @@ static __inline unsigned utf8len_(const FLAC__byte *utf8)
return
1
;
}
else
if
((
utf8
[
0
]
&
0xE0
)
==
0xC0
&&
(
utf8
[
1
]
&
0xC0
)
==
0x80
)
{
if
((
utf8
[
0
]
&
0x
01
)
==
0xC0
)
/* overlong sequence check */
if
((
utf8
[
0
]
&
0x
FE
)
==
0xC0
)
/* overlong sequence check */
return
0
;
return
2
;
}
...
...
src/plugin_common/tags.c
View file @
c6e53da2
...
...
@@ -46,7 +46,7 @@ static __inline unsigned local__utf8len(const FLAC__byte *utf8)
return
1
;
}
else
if
((
utf8
[
0
]
&
0xE0
)
==
0xC0
&&
(
utf8
[
1
]
&
0xC0
)
==
0x80
)
{
if
((
utf8
[
0
]
&
0x
01
)
==
0xC0
)
/* overlong sequence check */
if
((
utf8
[
0
]
&
0x
FE
)
==
0xC0
)
/* overlong sequence check */
return
0
;
return
2
;
}
...
...
Write
Preview
Supports
Markdown
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