Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
GSoC
GSoC2018
macOS
vlc
Commits
3e7b45b0
Commit
3e7b45b0
authored
Dec 12, 2008
by
ivoire
Browse files
realrtsp: fix read after the end of the string if the input buffer length isn't a multiple of 4.
parent
520eaf2f
Changes
1
Show whitespace changes
Inline
Side-by-side
modules/access/rtsp/real_sdpplin.c
View file @
3e7b45b0
...
...
@@ -54,10 +54,11 @@ static char *b64_decode(const char *in, char *out, int *size) {
k
=
0
;
/*CONSTANTCONDITION*/
for
(
j
=
0
;
j
<
strlen
(
in
);
j
+=
4
)
{
int
in_len
=
strlen
(
in
);
for
(
j
=
0
;
j
<
in_len
;
j
+=
4
)
{
char
a
[
4
],
b
[
4
];
for
(
i
=
0
;
i
<
4
;
i
++
)
{
for
(
i
=
0
;
i
<
4
&&
j
+
i
<
in_len
;
i
++
)
{
int
c
=
in
[
i
+
j
];
if
(
dtable
[
c
]
&
0x80
)
{
...
...
@@ -388,3 +389,4 @@ void sdpplin_free(sdpplin_t *description) {
free
(
description
->
range
);
free
(
description
);
}
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